08-29-2013
Hi jiam,
1. Did you receive any error message?
2. If you had got back to the prompt after the command executed then check if file outfile is created in current directory
This User Gave Thanks to krishmaths For This Post:
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi
How to create a directory structure with getting input from a file.
I have file in that following lines are written.
./activemq-4.1.2/activemq-core-4.1.2.jar
./activemq-4.1.2/backport-util-concurrent-2.1.jar
./camel-1.4.0/apache-camel-1.4.0.jar
./camel-1.4.0/lib/activation-1.1.jar... (12 Replies)
Discussion started by: itsjoy2u
12 Replies
2. UNIX for Dummies Questions & Answers
I am using a large unix server at my college. I have remote access to it on my laptop. I have installed a program on the large unix server, and want to write to the program. How do I alter parameters to read input and write output somewhere else?. I would like to read input and write output to my... (2 Replies)
Discussion started by: stonna
2 Replies
3. UNIX for Dummies Questions & Answers
Hi,
I have a data file looks like the following
ID STARTDATE ENDDATE
101 20090520 20090521
102 20090521 20090522
103 20090522 20090523
104 20090523 20090524
105 20090524 20090525
106 20090525 20090526
107 ... (3 Replies)
Discussion started by: naveen.kuppili
3 Replies
4. Shell Programming and Scripting
Being new to this area .I have been assigned a task which i am unable to do . Can any one please help me .
Hi I have requirement where i have input file XYZ_111_999_YYYYMMDD_1.TXT and with header and series of Numbers and Footer.
I want to create a mutiple output files with each file having a... (2 Replies)
Discussion started by: bhargavkr
2 Replies
5. Shell Programming and Scripting
I am looking help in awk, quick overview. we will get feed from external system . The input file looks like below.
Detail Id Info Id Order Id STATUS Status Date FileDetail
99127942 819718 CMOG223481502 PR 04-17-2011 06:01:34PM... (7 Replies)
Discussion started by: dvrbabu
7 Replies
6. Shell Programming and Scripting
Hi All,
I need help for doing the following.
I have a input file like:
aaaaaaaaaabbbbbbbbbbbbbbbbbbbb
cccbbbbbaaaaaadddddaaaabbbbbbb
now I am trying to generate a output csv file where i will have for e.g.
0-3 chars of each line as the first column in the csv, 4-10 chars of the line as... (3 Replies)
Discussion started by: babom
3 Replies
7. Shell Programming and Scripting
I have file A.txt
File A
1,Hi,234
2,Hello,345
1,Kal,980,
9,KJ,098
2,de,098
..
...
I have more then 600 lines...
I want separate the files as per 150 line.
First 150 lines ----File A1.xtx
Second 150 lines ---File A2.txt
Third 150 lines----File A3.txt.
... (4 Replies)
Discussion started by: asavaliya
4 Replies
8. Shell Programming and Scripting
Hi,
I was having the following issue
cat input
hello1, my name is unix.com. I am awesome. Hope you know this, hello2!
cat hello1.txt
Hi Friends
Hi Folks
Hi Well-Wishers
cat hello2.txt
Honey
Sweety
Darling
Required Output (8 Replies)
Discussion started by: jacobs.smith
8 Replies
9. Shell Programming and Scripting
In the below bash a file is downloaded when the program is opened and then that file is searched based on user input and the result is written to a new file.
For example, the bash is opened and the download.txt is downloaded, the user then enters the id (NA04520). The id is used to search... (5 Replies)
Discussion started by: cmccabe
5 Replies
10. Shell Programming and Scripting
I have a file number.txt.I need to get 2 inputs from the terminal like a=100 and b=200.If a and b are there in the file,then check if a < b,print "less".If a is not there in the file,print "a is missing" or if b is not there in the file,print "b is missing".
number.txt:
100 200 300 (2 Replies)
Discussion started by: aneeta13
2 Replies
LEARN ABOUT ULTRIX
binmail
binmail(1) General Commands Manual binmail(1)
Name
binmail - send or receive mail among users
Syntax
/bin/mail [+] [-i] [person...]
/bin/mail [+] [-i] -f file
Description
This is the old version 7 UNIX system mail program. The default command is described in and its binary is in the directory The program is
still used to actually deliver a mail message into the users system-wide mailbox ( ), however, the reading of these messages has been
replaced with the program Do not remove from your system.
The command with no argument prints a user's mail, message-by-message, in last-in, first-out order; the optional argument + displays the
mail messages in first-in, first-out order. For each message, it reads a line from the standard input to direct the disposition of the
message.
Issue the following commands from the program prompt:
<CR> Go on to next message
d Delete message and go on to the next.
p Print message again.
- Go back to previous message.
s [file...] Save the message in the named files (`mbox' default).
w [file...] Save the message, without a header, in the named files (`mbox' default).
m [person...] Mail the message to the named persons (yourself is default).
EOT (control-D) Put unexamined mail back in the mailbox and stop.
q Same as EOT.
!command Escape to the Shell to do command.
* Print a command summary.
An interrupt normally terminates the command; the mail file is unchanged.
When persons are named, takes the standard input up to an end-of-file (or a line with just `.') and adds it to each person's mail file.
The message is preceded by the sender's name and a postmark. Lines that look like postmarks are prepended with `>'. A person is usually a
user name recognized by To denote a recipient on a remote system, prefix person by the system name and exclamation mark. For further
information, see
The program sends a message to the screen that there is mail when the user logs in.
When is used to deliver mail, (usually calls to do this), a mailbox is created for the user in the directory if it doesn't already exist.
The mailbox is created with the mode 700 so that only its owner can access it. In addition, the directory has the mode 777 with the sticky
bit set. The mode is 777 so that other mail programs, notably can create the appropriate lock files to prevent another process from writ-
ing to the mailbox at the same time. The sticky bit set on the directory prevents one user from unlinking another user's mailbox.
Options
-f Displays mail messages contained in the specified file (next argument) in place of your mailbox file.
-i Notifies mail to continue after interrupts.
Restrictions
Race conditions sometimes result in a failure to remove a lock file.
Files
/etc/passwd to identify sender and locate persons
/usr/spool/mail/* incoming mail for user *
mbox saved mail
/tmp/ma* temp file
/usr/spool/mail/*.lock lock for mail directory
dead.letter unmailable text
See Also
mail(1), uucp(1c), uux(1c), write(1), sendmail(8)
binmail(1)