LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   A question about BASH (https://www.linuxquestions.org/questions/linux-newbie-8/a-question-about-bash-387130/)

operand 11-27-2005 09:01 PM

A question about BASH
 
Hi everyone:

I want to see the header of mails in my mailbox on Redhat Linux. So I wrote the following awkward shell :

mail < mail.input | awk '/U / {print}'

The content of file "mail.input" is just :

quit

How could I do this without the file "mail.input"?

Thanks for your attention and look forward to your replay.

Robhogg 11-27-2005 09:11 PM

Hi, operand.

You could try:

echo "quit" | mail | awk '/U / {print}'

Rob :)

operand 11-27-2005 09:49 PM

Quote:

Originally posted by Robhogg
Hi, operand.

You could try:

echo "quit" | mail | awk '/U / {print}'

Rob :)

Hi rob:

That works. Thanks a lot. ^_^ .

operand


All times are GMT -5. The time now is 12:15 PM.