I'm writing a shell script for cleanup of older files from various sub-directories inside a main directory
The structure of directories is as below:
Now, files inside online directory are in the format
Now, the goal is to gzip the files which are older than 15 days from online directory and then move them to archive directory. When the zip files in archive directory are older than 60 days, then I need to delete them
I can't go with actual timestamp of the file as the files are generated on unexpected dates in few cases although the file name has correct time stamp
So, I need to use the date from file name to apply the above intelligence. Is there any quick solution to this problem?
Some example files from input directory:
Expected zip files in archive directory:
I want a sample Date validation script using if loops.
The script should first compare "year".If the year is lesser than the current year,It should go for "month" checking.
I have the script that splits the date into year,month and date.I want only the checking part.
My if loop checking is not... (4 Replies)
Hi
I have below file with 3 rd column as date ....i want to make 3 column to mm/dd/yyyy .
in the below file 2 row date is like 1/23/1994 so i want to append '0'
to month i,e. 01/23/1994 and in the 3 row date is like 6/4/1994 ---so i want this to 06/04/1994
Source:... (1 Reply)
Hi,
I've made a very basic date validation script, but the syntax of the until condtion is wrong, could someone have a quick look and correct it please?:)
Thanks for any help.
echo -n "Please enter your date of birth (dd-mm-yyyy): "
read dob
day=${dob:0:2} month=${dob:3:2} year=${dob:6:4}... (1 Reply)
the user have to input the date format in mmddmmhhyyyy (month,date,minutes,hour,year)
i want a shell script to check whether the user has properly input in the above said manner.
kindly advice (2 Replies)
I have a script which is take date as parameter
sh abc.sh <2010-02-01>
#!/sh/bin
my_date=$1
#Here i want to two diffrent dates
## 3 Days before
##date14query=$mydate - 4 (it will be 2010-01-28)
##date24query=$mydate +4 (it will be 2010-01-05)
#Please Help (3 Replies)
Hi,
I have a script which runs on specific sunday. If that script runs on the sunday i want to execute another script on following wednesday.
I have a log for that server. My wednesday scripts needs to check the sunday run log timestamp and if it matches it should run. Please help.
Thanks,... (1 Reply)
Dears,
I am working on a batch that processes file with name containing date prefix eg., 20101222_file.dat.
The logic is to process files in order. Eg., 20101225 must be processed only after 20101222.
Ok first glance it looked simple, it use a variable to check this date value as number and... (2 Replies)
File contains below data,how to validate the date using awk command or any command.
date formate is fixed as "YYYYMMDD"
test1|20120405
test2|20121405
output should be:
test1|20120405
Thanks (2 Replies)
Hi Experts,
I have a date validation script in that i will validate the date for a given format and search in the logs for that date. The script logic is very simple like below.
Validate_Date()
{
is_valid=1
while
do
date_format=$(date "+$1")
echo -e "Please enter the $2 date like... (6 Replies)
Hi folks,
I new to shell script .
I want to know how to validate a String as valid date
example:
20150712 ---> valid date
20160524-->valid
201605T12-->invalid date
12341234--->invalid date
we need to valid string( yyyymmdd) to date in SunOS 5.10
please give some idea to validate... (9 Replies)
Discussion started by: srinadhreddy27
9 Replies
LEARN ABOUT DEBIAN
unmass
UNMASS(1) General Commands Manual UNMASS(1)NAME
unmass - extract game archive files
SYNOPSIS
unmass [options] file
DESCRIPTION
This manual page documents briefly the unmass command.
unmass is a tool to extract game archives. It supports the following archive types: Crismon Land, Baldur's Gate 2, Civilization 4, Doom
(WADs), Dune 2, Etherlords 2, Final Fantasy 7 and 8, Flashpoint, Knights of Xentar, Metal Gear Solid (DARs), Moorhuhn 2 and 3, Megaman Leg-
ends, Oni, Operation Flashpoint, Princess Maker 2, Quake 1, RollCage, Swine, Unreal Tournament umods, Virtua Fighter bitmaps, MEA exe's,
some economy file format.
OPTIONS -h, --help
Show summary of options.
-e <archive file> <file name> [...<file name>]
Opens the archive and extract files.
--modules
Prints out list of modules for archive loading.
--list <archive file>
Opens the archive and prints list of the files inside.
EXAMPLES
Display list of files contained inside archive 'battle.lgp'
unmass -list battle.lgp
Opens 'battle.lgp' and extracts file 'aabc.txt' and all files ending
with 'dat' into current directory
unmass -e battle.lgp aabc.txt *dat
SEE ALSO pak(1).
AUTHOR
unmass was written by Miro Janosik.
This manual page was written by Gurkan Sengun <gurkan@phys.ethz.ch>, for the Debian project (but may be used by others).
July 9, 2007 UNMASS(1)