04-16-2012
Yes, that worked! I was exploring the sed command, but was using it wrong. This helped a lot, thanks!
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
Hi,
I need a command that to copy files from others and to keep files' ownership.
Example: I copy file.txt from users "abc" to my local, and file.txt is own by user "abc" in local.
Thanks in advance! (3 Replies)
Discussion started by: need_help
3 Replies
2. UNIX for Advanced & Expert Users
I need help in forming a script to copy files from one location which has a sub directory structure to another location with similar sub directory structure,
say location 1,
/home/rick/tmp_files/1-12/00-25/
here 1-12 are the number of sub directories under tmp_files and 00-25 are sub... (1 Reply)
Discussion started by: pharos467
1 Replies
3. Shell Programming and Scripting
Create a script that copies files from one specified directory to another specified directory, in the order they were created in the original directory between specified times. Copy the files at a specified interval. (2 Replies)
Discussion started by: allways4u21
2 Replies
4. Shell Programming and Scripting
Hello,
Question is related to Perl:
I need to search few of the files from the array of file names.
And after grepping the file names from an array I need to link these files to original location. The original location in this case is ref_path as input from the user.
##$ref_path is... (3 Replies)
Discussion started by: aarora1
3 Replies
5. Shell Programming and Scripting
I have file file1.txt in location 'loc1'. Now i want a copy of this file in location 'loc2' with a new file called test.txt.
Please help me how to do this in shell script. (1 Reply)
Discussion started by: vel4ever
1 Replies
6. Shell Programming and Scripting
I have folder ABC and files in ABC are links.
I want to create the same ABC folder in different path and copy the actual files from source ABC dir.
Can anyone provide command for this?
Thanks in advance. (2 Replies)
Discussion started by: venkatababu
2 Replies
7. UNIX for Advanced & Expert Users
I have folder ABC and files in ABC are links.
I want to create the same ABC folder in different path and copy the actual files from source ABC dir.
Can anyone provide HP-UX command for this?
note: cp -L is not working in HP-UX
Thanks in advance. (1 Reply)
Discussion started by: venkatababu
1 Replies
8. Shell Programming and Scripting
Hello everyone,
I am attempting to make a recycling bin type application in shell script (tcsh). I have the whole part of the application done where someone can recycle files from one location to the recycling bin (the lower half of the program), this is not a problem. However I wanted to make... (7 Replies)
Discussion started by: tastybrownies
7 Replies
9. Shell Programming and Scripting
I have below files in one location /test/files and also for each dates there are similar files
A20130924.0000-0005_file1
A20130924.0000-0005_file2
A20130924.0005-0010_file1
A20130924.0005-0010_file2
.
.
.
A20130924.2355-0000_file1
A20130924.2355-0000_file2
If i execute the script like... (4 Replies)
Discussion started by: Saidul
4 Replies
10. Shell Programming and Scripting
Hello All,
Since i'm relatively new in shell script need your guidance.
I'm copying files manually based on a specific word in a file name and its extension and then moving it into some destination folder.
so if filename contains hyr word and it has .md and .db extension; it will move to TUM/HYR... (13 Replies)
Discussion started by: prajaktaraut
13 Replies
post(8mh) post(8mh)
Name
post - deliver a message
Syntax
/usr/lib/mh/post [ options ] file
Description
The program is called by to deliver the message in the named file to local and remote users. In fact, all of the functions attributed to
on its reference page are performed by with acting as a relatively simple pre-processor. Thus, it is which parses the various header
fields, appends From: and Date: lines, and interacts with the transport system.
Normally, would not be called directly by the user.
It searches the To:, cc:, Bcc:, and Resent-xxx: header lines of the specified message for destination addresses, checks these addresses for
validity, and formats them so as to conform to ARPAnet Internet Message Format protocol (unless the -noformat flag is set). This will nor-
mally cause @local-site to be appended to each local destination address, as well as any local return addresses.
If a Bcc: field is encountered, the mail system will use its addresses for delivery. The Bcc: is removed from the message sent to original
recipients. The copied recipients will receive an entirely new message with a minimal set of headers. The mail system includes a copy of
the message sent to the original recipients in the body of the message.
This command consults the environment variable $SIGNATURE to determine the sender's personal name in constructing the From: line of the
message.
Options
-alias aliasfile
Specifies a file that should take aliases from. More than one file can be specified, each being preceded with the -alias option.
automatically consults the system alias file, If there is an Aliasfile entry in your also consults the file named in that entry.
-filter filterfile
-nofilter Filters (re-formats) messages sent to blind copy recipients. Recipients named in the Bcc: field normally receive a new message
which includes a copy of the message sent to the other recipients. If this option is specified, this copy of the message is fil-
tered according to the instructions in the named file. The default is -nofilter.
-format
-noformat Formats messages so as to conform to ARPAnet Internet Message Format protocol. This is the default behavior. You can stop from
formatting messages in this way by using the -noformat option.
-help Prints a list of the valid options to this command.
-msgid
-nomsgid Adds a Message-ID: or Resent-Message-ID: field to the header.
-mts smtp Specifies the mail system over which mail is sent. The only value allowed is smtp, which is the standard ULTRIX mail system.
Additional values are supported only for use with other mail systems.
-verbose
-noverbose
Informs the user of each step of the posting/filing process.
-watch
-nowatch Allows the user to watch the transport system's handling of the message (for example, local and fast delivery).
-width columns
Specifies the preferred length of the header components that contain addresses.
The default settings for are:
-alias /usr/lib/mh/MailAliases
-format
-nomsgid
-mts smtp
-noverbose
-nowatch
-width 72
-nofilter
Restrictions
For this version, the -mts option only supports the value smtp. Additional values are supported for use only with other mail systems.
Profile Components
The command does not consult the user's
Files
The system customization file.
The program to process Fcc:s.
The program to process Bcc:s.
The system alias file.
See Also
comp(1mh), mhmail(1mh), send(1mh), mh-alias(5mh), mh-mail(5mh), mtstailor(5mh)
Standard for the Format of ARPA Internet Text Messages (RFC 822)
post(8mh)