Howdy,
I'm trying to figure out how to move multiple files based on their creation date. If anyone can enlighten me it would be most appreciated!!
Thanks!
:D (1 Reply)
Can any one help me to correct following script.
I have 2 directories DropZone and ProcessZone. File pattern is *VEHDESCSUM*.
Finding the 'no of files' in DropZone directory using ls *VEHDESCSUM* |wc -l
If DropZone has more than one file or 0 files then exit 1
If DropZone has one file then... (2 Replies)
Hi,
I have a requirement ,let us say 1000 files needs to be transferred in an hour from one path to another path and if the files (1000 files) are transferred within an hour ( say 40 mins), then the process should remain idle for the remaining time ( 20 mins). (3 Replies)
Hi,
I need a script that moves files based on date to a folder. The folder should be created based on file date. Example is :
Date file name
----- --------
Oct 08 07:39 10112012_073952.xls
Oct 09 07:39 10112012_073952.xls
Oct 10 07:39 ... (6 Replies)
Hi,
I have a directory having so many number of files. Now I want to move the files which are older than one month (lets say) from this directory to another directory (say BKP dir).
Simply, if file is olderthan one month move it from source1 dir to BKP1 dir.
My file names doesn't have... (7 Replies)
I have a log file that I want to archive out as it reaches 100MB. I am using the following to get the file size into a variable but get the error "line 5:
filesize=$(wc -c < logfile.log)
if
then
echo "is greater than 100M"
else
echo "is less than 100M"
fi
I'm sure there's something... (2 Replies)
Hi All,
I have multiple files in the folder, I want to move those files into the other folder on based of name
File names:
Template_server1_01==>
Template_server1_02==>To one directory /Server1
Template_server1_03==>
Template_server2_01==>
Template_server2_02==>To one... (9 Replies)
Hi all
I am trying to loop through a directory of files using a given search pattern. some of the files will be duplicated due to the pattern, but of the duplicate files i wanted to move the older files to another location.
Is there any straightforward way of doing this ?
One of ways I... (1 Reply)
Discussion started by: sthapa
1 Replies
LEARN ABOUT OPENSOLARIS
praliases
praliases(1) User Commands praliases(1)NAME
praliases - display system mail aliases
SYNOPSIS
praliases [-C configfile] [-f aliasfile] [key]
DESCRIPTION
The praliases utility displays system mail aliases. When no key is given, praliases displays the current system aliases, one per line, in
no particular order. The form is key:value. If a key is given, only that key is looked up and the appropriate key:value is displayed if
found.
OPTIONS
The following options are supported:
-C configfile Specifies a sendmail configuration file.
-f aliasfile Reads the specified file aliasfile instead of the default sendmail system aliases file.
OPERANDS
The following operands are supported:
key A specific alias key to look up.
EXIT STATUS
The following exit values are returned:
0 Successful operation.
>0 An error occurred.
FILES
/etc/mail/aliases Default sendmail system aliases file
/etc/mail/aliases.db Database versions of the /etc/mail/aliases file
/etc/mail/aliases.dir Database versions of the /etc/mail/aliases file
/etc/mail/aliases.pag
/etc/mail/sendmail.cf Default sendmail configuration file
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWsndmu |
+-----------------------------+-----------------------------+
SEE ALSO mailq(1), newaliases(1M), sendmail(1M), attributes(5)SunOS 5.11 29 Mar 2004 praliases(1)