hi gooday
I need some help with a rename I am attempting.
I'd like to rename a bunch of files in a folder
example
list.dat.old to list_N.dat
query.dat.old to query_N.dat
note the two periods in (.dat.old) to become _N.dat
I tried using sed like this
ls *.dat.old | sed '/.dat.old/_N.dat'
this only works in the terminal and just gives a print out of the changed names
I'd like it to actually rename the files in batch from with a script that i'd call rename.sh that i can run.
thanks