Bash touch script
A simple bash line to generate touch commands from file in format:
filename|original-timestamp
by andreich 2 years, 2 months ago and tagged with: bash timestamp
1 2 3 4 |
while read LINE; do FILE_NAME=`echo $LINE | cut -d\| -f1`; FILE_DATE=`echo $LINE | cut -d\| -f2`; echo touch --date=\"$FILE_DATE\" $FILE_NAME; done < ~/input-file.txt > timestamps.sh |

Currently 0 comments