Archives
Categories
Category Archives: bash
Saving both stdout and stderr while echoing to screen
As mentioned before, tee, a useful but horridly named utility, allows you to save stdout while echoing it to the screen. Sometimes, however, you need both stderr and stdout. Bash allows you to combine stderr and stdout by appending 2>&1 … Continue reading
Bash tricks: drop the first line of a file
I work with a bunch of data that often comes in text files. I regularly want to cut off the header / first line, but I thought that to use tail you had to know how many lines are in … Continue reading
Posted in bash, Data Munging
1 Comment
Saving output of a command and echoing to the screen
When using bash, it’s really nice to both save the output of a command to a file and print it on the screen. I couldn’t find something that did this so I wrote my own ruby script. A utility that … Continue reading
Posted in bash, Data Munging
Leave a comment