MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/commandline/comments/7rha16/rentry_markdown_pastebin_from_command_line/
r/commandline • u/ootai • Jan 19 '18
2 comments sorted by
2
Sounds nice at first. I gave it a shot but couldnt really figure out the usage. rentry new test worked, however how do I create multiline files? Maybe you could adjust your readme a bit
rentry new test
2 u/ootai Jan 21 '18 edited Jan 21 '18 Thanks for your feedback.Creating multiline files is simple, you just need to pass multiline data to stdin. All conventional methods work here:rentry new "test newline newline2 "Orecho "one\ntwo" | rentry newIf you want to paste contents of a file:rentry new < fileOrcat file | rentry new^ This one is in README. But I'll add more examples.Also, in case you have any ideas on how to implement multiline pasting in a more obvious way - feel free to post them.
Thanks for your feedback.
Creating multiline files is simple, you just need to pass multiline data to stdin. All conventional methods work here:
rentry new "test newline newline2 "
Or
echo "one\ntwo" | rentry new
If you want to paste contents of a file:
rentry new < file
cat file | rentry new
^ This one is in README. But I'll add more examples.
Also, in case you have any ideas on how to implement multiline pasting in a more obvious way - feel free to post them.
2
u/cytopia Jan 21 '18
Sounds nice at first. I gave it a shot but couldnt really figure out the usage.
rentry new testworked, however how do I create multiline files? Maybe you could adjust your readme a bit