Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

rcvpack(1) [osx man page]

RCVPACK(1)							     [nmh-1.5]								RCVPACK(1)

NAME
rcvpack - append message to file SYNOPSIS
/usr/lib/mh/rcvpack file [-mbox] [-mmdf] [-version] [-help] DESCRIPTION
The rcvpack program will append a copy of the message to the file listed on its command line. If the -mbox switch is given (the default), then the messages are separated using mbox (uucp) style delimiters. This is the format used by most mail clients (elm, mailx, etc.). If the -mmdf switch is given, then the messages are separated by mmdf style delimiters. Each message in the file is separated by four CTRL-A's and a newline. rcvpack will correctly lock and unlock the file to serialize access to the file, when running multiple copies of rcvpack . In general, its use is obsoleted by the file action of slocal, although it might still have occasional uses in various shell scripts. FILES
/etc/nmh/mts.conf nmh mts configuration file SEE ALSO
rcvdist(1), rcvstore(1), rcvtty(1), slocal(1) BUGS
Only two return codes are meaningful, others should be. MH.6.8 11 June 2012 RCVPACK(1)

Check Out this Related Man Page

RCVPACK(1)                                                           [nmh-1.5]                                                          RCVPACK(1)

NAME
rcvpack - append message to file SYNOPSIS
/usr/lib/mh/rcvpack file [-mbox] [-mmdf] [-version] [-help] DESCRIPTION
The rcvpack program will append a copy of the message to the file listed on its command line. If the -mbox switch is given (the default), then the messages are separated using mbox (uucp) style delimiters. This is the format used by most mail clients (elm, mailx, etc.). If the -mmdf switch is given, then the messages are separated by mmdf style delimiters. Each message in the file is separated by four CTRL-A's and a newline. rcvpack will correctly lock and unlock the file to serialize access to the file, when running multiple copies of rcvpack . In general, its use is obsoleted by the file action of slocal, although it might still have occasional uses in various shell scripts. FILES
/etc/nmh/mts.conf nmh mts configuration file SEE ALSO
rcvdist(1), rcvstore(1), rcvtty(1), slocal(1) BUGS
Only two return codes are meaningful, others should be. MH.6.8 11 June 2012 RCVPACK(1)
Man Page

15 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

mailx command

Hi friends, i have seen the following line in some unix shell script . can some one explain me what exactly the statement is meant for ? ========================================================= mailx -s " Master Data Transmission Report for $TODAY at $TIME " < /etc/tr/tmp/$tmplog... (5 Replies)
Discussion started by: sveera
5 Replies

2. Shell Programming and Scripting

Retrieve message from file

Hey all, I have this file which contains a lot of messages in format like This is my message!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!Check This! This is my second message!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!! ... (5 Replies)
Discussion started by: mpang_
5 Replies

3. Shell Programming and Scripting

syntax of mailx

Hi, I have written a code : mailx -s "FOR TESTING" "abcd@yahooo.com" but it is not running and not giving any error msg and also not sending any mail. It takes infinite time. Please help me. (4 Replies)
Discussion started by: rinku
4 Replies

4. Shell Programming and Scripting

Pls Pls do help me

When i run this command, everything is ok. The file can be email and attached but soon after i download the file, the file cant be read. It's seem corrupted. Totally cant be read although i'm using context or wordfile. Original file generated at ek_bkup/alert/tbspace_datafile.log is OK..... ... (7 Replies)
Discussion started by: adzuanamir
7 Replies

5. Shell Programming and Scripting

to append data in a single row

Hi all, I need a logic in UNIX to append contents of a file in same row, where the original contents are found one below the other. For example. My i/p file contains: “user1”,”employee1”,”04/28/2009” “5678” “78” “user2”,”employee2”,”04/30/2009” I want my output... (8 Replies)
Discussion started by: Sgiri1
8 Replies

6. Shell Programming and Scripting

append some text message at the end of the file

Hi All, Please tell me how to append some text message at the end of the file. "File too large to view" example: xyz.log contains hhhhhhhhhhh hhhhhhjjjjjjjjj jjjjjjjjjjjjjjjjjjjjjj "File too large to view" Please advice (3 Replies)
Discussion started by: rajeshorpu
3 Replies

7. Shell Programming and Scripting

Help with awk command to extract messages

Need expert's opinion urgently. I have a file which contains messages. A message is separated by $ in this file. In each message we need to get string aftr :20: and send it to an output file. If :20: is not prsent in a message then we need to search for :20C: and send the corresponding string... (5 Replies)
Discussion started by: Opamps123
5 Replies

8. Shell Programming and Scripting

Sorting based on multiple delimiters

Hello, I have data where words are separated by a delimiter. In this case "=" The number of delimiters in a line can vary from 4to 8. The norm is 4. Is it possible to have a script where the file could be separated starting with highest number of delimiters and ending with the lowest An... (8 Replies)
Discussion started by: gimley
8 Replies

9. Shell Programming and Scripting

md5sum output append

Hi there, I have 2 fairly simple lines I am running and both work as expected, but I am trying to append the two of them to output a single line. The first command get the MAC times of each file :- find /media/Vista/Garmin/PCBSMP2/ -type f -printf "%A+ (a) %p\n%T+ (m) %p\n%C+ (c) %p\n" ... (9 Replies)
Discussion started by: kogorman
9 Replies

10. Shell Programming and Scripting

conditional append one line in file.

Hi, Unix gurus, I have a requirement as following: checking existing file, if the file only contain one line. then append "No data" else keep existing file as is. can i achieve this by in command line without write a script. :wall: Thanks in advance. (4 Replies)
Discussion started by: ken002
4 Replies

11. Shell Programming and Scripting

Replace char between chars - help needed

Hello, I have a csv file with "^" as text delimiters and "|" as field delimiters. It's converted from a xls file. One record looks like this: ^Tablete Internet^|Archos|501838|^Tableta Internet ARCHOS 80 G9 ...| ... (more lines) ... "501|838"^|330.00|USD|sl|12|0|Link|^router wireless 150... (10 Replies)
Discussion started by: go0ogl3
10 Replies

12. Shell Programming and Scripting

How to append a value to the output after using sed command?

Hi All, I have a file where I am converting newlines to comma separated values but I would like to append zero if the output is empty Here is the command I am using sed -n -e 'H;${x;s/\n/,/g;s/^,//;p;}' test1.txt test1.txt will have comma seperated values but sometimes this file can be... (6 Replies)
Discussion started by: rajeevm
6 Replies

13. Shell Programming and Scripting

Insert a hyphen between two delimiters using sed

Hey guys, I have a file that is delimited by | and I am trying to write a sed command to convert this: abc|def||ghi|jkl||||mnop into this: abc|def|-|ghi|jkl|-|-|-|mnop The output I am getting out of: sed -e "s/+//g" /tmp/opt.del > /tmp/opt2.del is like: ... (9 Replies)
Discussion started by: prohank
9 Replies

14. UNIX for Beginners Questions & Answers

How to append the multiple Delimiters up to requirement?

HI All, How to append the multiple delimiters to at end the file up to 69 fields. FinalDelimiter Count is 69 recrod Delimeter count is 10 so 69-10=59 this script will add upto 59 Delimiters to that records. this script will check each and every record in a file and append the delimiters... (4 Replies)
Discussion started by: vinod.peddiredd
4 Replies

15. Shell Programming and Scripting

Attchment in mailx command is not happening

Attchment in mailx command is not happening with -a option . Please find below command I tried mailx -s "test" -a abc.txt alokjyotibal@gmail.com (9 Replies)
Discussion started by: alokjyotibal
9 Replies