Celebrazio Net



Contact Us

Shell script One-Liners

May, 2019

Handy shell scripts - you do have a command line don't you?

# remove space from file names in current directory
for f in *\ *; do mv "$f" "${f// /_}"; done

# prepend string "Series_" to file names: 
for f in *.txt; do mv "$f" "Series_$f"; done



"With a PC, I always felt limited by the software available. On Unix, I am limited only by my knowledge."
-- Peter J. Schoenster





1998-2019 Celebrazio.net