Search Results

Search: Posts Made By: Shandel
6,608
Posted By Shandel
unfortunately on my box i found util versione of...
unfortunately on my box i found util versione of "rename", so i found this code;

for file in *.zip
do
mv $file ${file}`date +%Y%m%d'
done

ls | xargs -l sh -c 'cp $0 ${0%.*}.trg'
...
6,608
Posted By Shandel
Thanks Ahamed, I have to do this as a...
Thanks Ahamed,
I have to do this as a postprocessing script after receiving the zip archive,
I can't rename all contents of the directory because of it's a shared directory

1- unzip file.zip ...
6,608
Posted By Shandel
Append timestamp create .trg file for all content of an unzipped archive
Hi,
I have a test.zip archive that contains
test.zip --> (file_1.txt, file_2.txt , file_3.txt)

I need to unzip the file like this,
file_1_timestamp.txt
file_1_timestamp.trg...
Showing results 1 to 3 of 3

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