NetBash icon indicating copy to clipboard operation
NetBash copied to clipboard

Redirect to file

Open phdesign opened this issue 14 years ago • 1 comments

What do you think about supporting a redirect to file? E.g.

help > help.txt

We could easily check for the redirect arrow and rather than appending to console it provides the file (help.txt) for download. This would be great for getting an export of your database, logs etc...

The commands wouldn't need to know anything about it, we would simply strip the '> help.txt' from the arguments.

phdesign avatar Jan 17 '12 21:01 phdesign

I've implemented this here: https://github.com/phdesign/NetBash/compare/master...redirect-to-file

phdesign avatar Jan 18 '12 00:01 phdesign