cero's solution is correct you could use " to have the special meaning of new line saved while echoing that variable, you could directly try following and without saving the values of ls command as follows too.
Thanks,
R. Singh
Last edited by RavinderSingh13; 01-19-2017 at 08:00 AM..
Reason: Adding ls -l solution too successfully now.
Hi There,
I am having two output files having the following information:
Output1:
Name1 0
Name2 222
Name3 598
Name4 9800
Output2:
Name1 10
Name2 333
Name3 567
Name4 39003
as you can see the two output files have the same Name colom but different records for each name. Now, how... (4 Replies)
Hey all,
I am haivng n number of files all of them are of the same format but different details. i.e
File1 is having the folloeing details:
"Account1",123
"Account2",10
"Account3",12355
"Accountn",555
File2 is having the folloeing details:
"Account1",1234
"Account2",100... (5 Replies)
Hi All,
I am trying to list the various dates for which the file is available in a directory using the command below, (& subsequently pass the command output to a loop)
Command :
ls dir|grep 'filename'|cut -d '_' -f1|cut -c1-8|tr '\n' ','
However, it is giving me an extra comma... (6 Replies)
Greetings.
I have a nice bash shell script that runs a multi-step analysis well. I already have the SGE options set up to email me the progress of the run (started, completed, aborted), but a final step would be to code the shell script to email the final output (a .txt file) to the same email... (6 Replies)
Discussion started by: Twinklefingers
6 Replies
LEARN ABOUT HPUX
newmail
newmail(1) General Commands Manual newmail(1)NAME
newmail - notify users of new mail in mailboxes
SYNOPSIS
interval] [file-spec]...
DESCRIPTION
The utility monitors your incoming mailbox or specified mail folders.
The basic operation is that the program checks the folders each interval seconds (default 60) and lists any new mail that has arrived in
any of the mailboxes, indicating the sender's name, and the subject of the message.
Without any options, runs in the background at a default interval of 60 seconds to monitor the user's incoming mailbox. So that they are
suitable for display on an already active screen, messages are prefixed with a pair of pointer characters as follows:
If there is no subject, the message is displayed. If there is more than one folder, output lines are prefixed by the folder-name or the
prefix string specified by file-spec.
runs until you log out or explicitly kill it. It can internally reset itself if the mailbox shrinks in size and then grows again.
Options
recognizes the following options:
Set the time interval between mailbox checks
to the value specified, in seconds. The default is 60.
interval must be less than 2^32 seconds. If it is set to less than 10 seconds, warns that such short intervals are
not recommended.
Run the program within the current window in the foreground
with a more succinct output format.
The output formats become:
Operands
recognizes the following operand:
file-spec Specifies the name of a folder and an optional prefix string, in the form:
Metacharacters such as and indicate the folder directory. The default is the value of the environment variable or
EXAMPLES
Check incoming mailbox every 60 seconds:
Check incoming mailboxes of and every 15 seconds for new messages.
Monitor the incoming mailbox of user and the folder in your mail directory called Prefix all new messages in the incoming mailbox of with
the string and the new messages in the folder with Also, monitor folder
AUTHOR
was developed by HP.
newmail(1)