Search Results

Search: Posts Made By: vilibit
278,027
Posted By Neo
Simple rules of the UNIX.COM forums:
RULES OF THE UNIX AND LINUX FORUMS

For the latest version of the community rules (the official community rules page), please visit here. (https://www.unix.com/misc.php?do=cfrules)


No flames,...
4,933
Posted By rdcwayx
do you mean you need tar and compress the folders...
do you mean you need tar and compress the folders under /back_YY.MM.DD?

for example, if there is a folder :

/back_YY.MM.DD/backup1/*

you need gtar the folder backup1, and saved as...
4,933
Posted By frans
I think you're right. for F in...
I think you're right.
for F in /back_YY.MM.DD/backup1 /back_YY.MM.DD/backup2
do echo ${F%/*}/${F#/*/}_${F:6:2}${F:9:2}${F:12:2}.tar.gz
done
result
/back_YY.MM.DD/backup1_YYMMDD.tar.gz...
Showing results 1 to 3 of 3

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