05-08-2001
I would like to create an archive of backup files
In doing so I would like to be able to create a file basically called
filname.`date`.arch
With each try I get something completly different - so how do I get just say zip the entire directory >
filename.may092001.arch
Any ideas - I really botched that one - I need to know how to get all the other characters outta the date command and then use it as a variable to make the filename.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I need to create a file through a c-shell script which contains only the date and time that the file was created. Does anyone know a simple way to do this?
Thank you,
Paula (7 Replies)
Discussion started by: ccpjr29
7 Replies
2. Shell Programming and Scripting
Dear Sir/Madam,
I need a bit of your help. The problem is as follows :
I have to create a directory in unix whose name is that of system date in the dd_mon_yyyy format . I am able to extract a date in required format ina variable , but when i'm using this variable in mkdir it is not... (7 Replies)
Discussion started by: aarora_98
7 Replies
3. Shell Programming and Scripting
Hi,
can any one tell me how to achieve this...I will input the path and file name and it should rename it to current date and time...
this is what I tried...
#! /usr/bin/sh
set -x
cd /info_stg/vul/Scripts
TODAY_DATE_TIME=`date +%Y%m%d%H%M%S`
IN_FILE_PATH=`cat file.txt | awk -F, '{... (2 Replies)
Discussion started by: mgirinath
2 Replies
4. Shell Programming and Scripting
Hi Friends/Team,
I have written a small script but I dont understand what is the mistake in this one.. please help me identify and correct it.
file="touch `date +%b_%d`"
for i in $(cat /home/gmanju/servers)
do
echo $i >>file
remsh $i cat /var/opt/omni/server/log/opcmsg.log | grep -i... (1 Reply)
Discussion started by: gmanjunathbe
1 Replies
5. Shell Programming and Scripting
I have a perl script that automatically runs on Mondays.
I need to have it create a variable for last Monday's date thru that Sunday's date.
example: 04-01-2011 thru 04-08-2011
Its reporting numbers for the previous week beginning with Monday and ending on Sunday. So i dont have to go in... (7 Replies)
Discussion started by: bbraml
7 Replies
6. Shell Programming and Scripting
I need to automate a weekly process of piping a directory list to a csv file. Normally I do
ls -l > files_04182010.csv (04182010 being the date..)
Can someome show me how I would script this, so that when the script is ran it grabs the current date and formats it and allows me to use that... (8 Replies)
Discussion started by: jeffs42885
8 Replies
7. Shell Programming and Scripting
Hi,
I am quite new to Perl scripting and i need to create a .TXT file using perl, with fields (A,B,C,D,E), and this text file should be named with current file creation date "XYZ_CCYYMMDD.TXT" (i.e.XYZ_2011042514:33 PM).
Can anyone who has done this, please share their expertise on this... (5 Replies)
Discussion started by: msrahman
5 Replies
8. Shell Programming and Scripting
Hi guys,
I had a scenario...
1. I had to get the previous days date in yyyymmdd format
2. i had to create a file with Date inthe format yyyymmdd.txt format
both are different
thanks guys in advance.. (4 Replies)
Discussion started by: apple2685
4 Replies
9. UNIX for Dummies Questions & Answers
I want to create a directory based on date. I do not have date -d command. What I do have is:
either use "date" command to get current date
or DATE1=$(perl -e 'print scalar(localtime(time - 1 )), "\n";' |awk '{print $2,$3,$5}') |awk '{print $3}'can be modified to produce the desired year.... (3 Replies)
Discussion started by: newbie2010
3 Replies
10. UNIX for Beginners Questions & Answers
Hi, I can't seem to do this or find how to do it. Can someone please help:
I have a dir and within it I have dirs with date name example
Test1/
2017-08-12
2017-09-13
2017-10-14
2017-11-15
2017-11-16
what I want is a a script to scan the above and then take 2017-11-16 and increase this... (10 Replies)
Discussion started by: israr75
10 Replies
REARJ(1) Arj Software REARJ(1)
NAME
rearj - Converts other archive formats to .arj files
SYNOPSIS
rearj [options] <!listfile(s)|filespec(s)|wildname(s)>
DESCRIPTION
The rearj command can repackage other archive formats to arj.
OPTIONS
-+ Ignore REARJ_SW variable.
-a[suffix]
Convert archives within archives ("*" for all formats).
-bcommand
Execute command before extracting files.
-ccommand
Execute command on extracted files before counting them.
-d Delete original archives.
-e No error switch.
-f Convert diskette archives.
-g Skip creation of output archive.
-i[name]
Check integrity of rearj program.
-j Skip if output archive size is larger than the original.
-k Skip archive timestamping.
-l[name]
Write append log file (default name is rearj.log).
-m[date]
Select archives before date in YYMMDDHHMMSS format.
-n[date]
Select archives on or after date in YYMMDDHHMMSS format.
-o Allow overwrite of existing target archive.
-p Ignore long filenames under Windows 95.
-q Query for each archive to convert.
-r Recurse through subdirectories.
-s Skip verify of file count and total size.
-tsuffix
Create suffix type archives.
-u[bak]
Allow update of archive with backup (default is BAK).
-v Execute configured command on extracted files.
-wdir Assign work directory.
-x[!]file
Exclude by filename, wildname, or listfile.
-y[text]
Delete output archive and write text to log (testing mode).
-z Simulate operation.
ENVIRONMENT
REARJ_SW If set, its value will be used as command line options.
EXIT STATUS
0 Success.
1 File not found.
2 File is not a configured archive type.
3 Target archive already exists.
4 Not enough disk space.
5 User skipped or user did not select update option.
6 UNPACK command error.
7 PACK command error.
8 Target cannot support directories.
9 Wrong file count.
10 Wrong total size.
11 Internal archive REARJ error.
12 Rename archive error.
13 Invoked -v command error (found a virus?).
14 Output archive is larger.
EXAMPLE
rearj * -r -d
Convert all archives to ARJ format, searching all subdirectories, deleting original archives.
SEE ALSO
arj(1).
AUTHOR
This manual page was written by Ola Lundqvist <opal@debian.org> in pod format, then converted by Guillem Jover <guillem@debian.org> to
nroff format.
3.10 2003-03-10 REARJ(1)