Thursday, June 4, 2020
Show HN: Marcel – A Modern Shell https://ift.tt/3gViHSc
Show HN: Marcel – A Modern Shell Marcel is a shell. It is intended to be familiar to anyone who knows bash, but it emphasizes piping objects between commands, instead of strings. E.g., to explore the current directory recursively and find files changed in the past day: ls -r | select (file: now() - file.mtime < days(1)) Marcel is designed for interactive use. Python would be a fine scripting language if the integration with shell commands were better. So I made marcel's capabilities available as a module, marcel.api. The integration is extremely clean, (IMHO). To do the above example in Python: from marcel.api import * for file in ls(recursive=True) | select(lambda file: now() - file.mtime < days(1)): print(file) Check it out here: https://github.com/geophile/marcel. June 5, 2020 at 02:12AM
Subscribe to:
Post Comments (Atom)
Show HN: I got tired of Base64, so I made a numeric-only alternative https://ift.tt/GUAtM8l
Show HN: I got tired of Base64, so I made a numeric-only alternative I created numbase is an alternative to Base64 that encodes data into a ...
-
Show HN: An AI logo generator that can also generate SVG logos Hey everyone, I've spent the past 2 weeks building an AI logo generator, ...
-
Show HN: I Made an AI Social Media Manager to Automate Content Creation Hey HN, I am a Solopreneur, and I love building apps to automate bor...
-
To become a CA foundation course grad, you must complete the CA foundation coaching classes. In addition to attending these classes, you w...
No comments:
Post a Comment