Search Results

Search: Posts Made By: ghostdog74
6,146
Posted By ghostdog74
d=$(date +%Y%M%d) for file in Name*.txt do ...
d=$(date +%Y%M%d)
for file in Name*.txt
do
newfile=${file/Name/Name."$d".}
echo mv $file ${newfile//#}
done



Or if you have Python 2.4+ and don't mind, you can use this Python...
Showing results 1 to 1 of 1

 
All times are GMT -4. The time now is 08:36 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy