Skip to main content

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 01:42AM

Comments

Popular posts from this blog

Show HN: I built a tool to send you daily digest of your saved bookmarks https://ift.tt/357Ij8M

Show HN: I built a tool to send you daily digest of your saved bookmarks Bookmarks which you wanted to read, but simply forgot... It happened to me all the time. I bookmarked the articles to read later and simply forgot about them. Forever. I built Mailist to help with that. Already 2350 users enjoy their "weekly digests" composed from their bookmarks. It makes me super happy! So now, https://mailist.app Pro account allows you to send an email newsletter every day, built from your bookmarks. Does it sound interesting? The free version (weekly email) is available for everyone! Let me know what you think. PS. Unlike other tools, we care about your privacy and don't suggest promo content based on your saved links. April 27, 2020 at 03:50PM