4 ms·
The utility to do this is called sponge. http://linux.die.net/man/1/sponge http://linux.die.net/man/1/sponge uniq -u movies.csv | sponge movies.csv
by daurnimator 12y ago
The utility to do this is called sponge.
http://linux.die.net/man/1/sponge http://linux.die.net/man/1/sponge
uniq -u movies.csv | sponge movies.csv
- rmc 12y agosponge is cool. But on debian/ubuntu, it's packaged up in moreutils, which includes a few helpful tools. However a programme called parallel is in moreutils, and that's not as powerful as GNU's parallel. So I often end up uninstalling sponge/moreutils. :(
- _delirium 12y agoThere's some attempt underway to fix that fwiw: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=749355 https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=749355
- oftenwrong 12y agoGNU Parallel is an indispensable heavy lifter on the command line. I was expecting it to show up in the article.
- vacri 12y agomoreutils for my usage contains 'chronic', which prepended to a command, stops cron from alerting on any non-error output. Big fan.
- yekim 12y agoThanks for throwing this out there. Never heard of this command before! Definitely a good one for my bag o' tricks.