rename(3): program to modify a set file names

ken at rochester.UUCP ken at rochester.UUCP
Mon Mar 2 06:44:30 AEST 1987


I thought I would share my often used one-liner to change (for example)
.pas suffixes to .p:

ls *.pas | sed 's/\(.*\)\.pas$/mv & \1.p/' | sh

Adding and deleting portions is left as an exercise for the reader.

	Ken



More information about the Comp.sources.unix mailing list