Sponsored Content
Top Forums UNIX for Dummies Questions & Answers moving files based on condition Post 302603268 by ctsgnb on Wednesday 29th of February 2012 11:44:00 AM
Old 02-29-2012
@Corona : exactly, thx

@awais290
I am not sure about what you are trying to do, but if you are willing to loop over the badfile.txt to process every entry in it (to send the listed entry by mail, or do whatever you need), it would be better to scan it once its creation is finished.
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Moving files based on creation date

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)
Discussion started by: dgoyea
1 Replies

2. Shell Programming and Scripting

Moving file to directory based on condition.

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)
Discussion started by: ramanagh
2 Replies

3. Shell Programming and Scripting

Moving the files based on count and time.

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)
Discussion started by: Asaikarthik
3 Replies

4. Shell Programming and Scripting

How to compare 2 files & get only few columns based on a condition related to both files?

Hiiiii friends I have 2 files which contains huge data & few lines of it are as shown below File1: b.dat(which has 21 columns) SSR 1976 8 12 13 10 44.00 39.0700 70.7800 7.0 0 0.00 0 2.78 0.00 0.00 0 0.00 2.78 0 NULL ISC 1976 8 12 22 32 37.39 36.2942 70.7338... (6 Replies)
Discussion started by: reva
6 Replies

5. UNIX for Advanced & Expert Users

Moving multiple files based on the pattern

I want to search for a particular file name patterns and move them to a specific folder, is it possible to do it with awk or sed? (1 Reply)
Discussion started by: rudoraj
1 Replies

6. UNIX for Dummies Questions & Answers

Script moving files based on date

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)
Discussion started by: rockingvj
6 Replies

7. Shell Programming and Scripting

Moving files based on file creation

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)
Discussion started by: karumudi7
7 Replies

8. Shell Programming and Scripting

Moving files based on size (string to integer)

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)
Discussion started by: Flakman
2 Replies

9. Shell Programming and Scripting

Moving files based on file name

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)
Discussion started by: sharsour
9 Replies

10. Shell Programming and Scripting

Moving old files based on pattern

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
fastmail(1)						      General Commands Manual						       fastmail(1)

NAME
fastmail - quick batch mail interface SYNOPSIS
bcc-list] cc-list] comments] from-name] from-addr] in-reply-to] reply-to] references] subject] filename address-list DESCRIPTION
The command is a simple interface to the mail system that allows you to send a message without the overhead of an interactive mailer. It is particularly efficient in batch-processing mail to very large groups of people. All addresses should be full e-mail addresses, aliases in the file, or local login names. Options recognizes the following options: Include a header entry. Send blind carbon copies to the comma-separated list of addresses in bcc-list. Include a header entry. Send carbon copies to the comma-separated list of addresses in cc-list. Include a header entry with the string value comments. Debug. Display information on processing steps. Replace the user name in the header entry with from-name. If the user is and the user name is then the default line is: The option changes it to: Replace the address in the header entry with from-addr. In the example above, changes the original entry to Include the header entry with the string value in-reply-to. This is usually used to identify a message that you are replying to. Include the header entry with the single address given in replyto. This is the address where replies will usually be sent, instead of to the address given in the header entry, very common with mailing lists. Include a header entry containing the string value references. Include a header entry containing the value subject. If this option is omitted, the message is sent without a subject entry. Operands recognizes the following operands: address-list A list of one or more blank-separated addresses for the header line. These are the principal recipients of the mes- sage. filename Either the name of a file containing the message, or a dash to read from standard input. EXAMPLES
A Fully Specified Command This command has every option specified. The online execution displays the following debug messages: The received message has the following relevant header entries: The header entry is not transmitted. A Batch Process Suppose you are user on machine and you have a shell script named that contains the following lines: The command: would mail a copy of the file to and staggered ten seconds apart. would also silently receive a copy of the first message in the mail. Each resultant message would include the header lines: FILES
aliases file. Mail transport agent. Temporary file. AUTHOR
was developed by HP. SEE ALSO
elm(1), sendmail(1M). RFC 822 "Standard for the Format of Internet Text Messages" fastmail(1)
All times are GMT -4. The time now is 06:53 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy