A Scripter's Notes

Emacs, scripting and anything text oriented.

Posts in “Tcsh”

Count Down Timer in Shell

I was working on a tcsh script that did some cool stuff. But if a user ran that script not knowing the true impact of the script, it could make some bad irreversible changes.

While I could simply echo a warning statement and put a sleep 10, I wanted the wait time to be shown live.

Using sed

sed stands for stream editor.

This is the most common way of my sed usage:

echo [SOMETHING] | sed 's/old/NEW/g'


Full Category Index →