![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| direct output to a file then email it | llsmr777 | UNIX for Dummies Questions & Answers | 2 | 11-21-2007 02:21 AM |
| Re-direct the error msg to log file | rony_daniel | Shell Programming and Scripting | 4 | 11-21-2006 03:05 PM |
| How to direct FTP command to use a specific IP add or NIC ? | pray44u | SUN Solaris | 5 | 06-02-2006 01:49 AM |
| Direct disk access | Lopatonosec | High Level Programming | 3 | 05-31-2005 01:39 PM |
| direct transmission of files via TCP/IP | darkspace | High Level Programming | 5 | 08-26-2002 03:00 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
How to direct awk output to expr?
Is there any way to combine the following two statements into one? I can't figure out how to get expr to take input from the output of the awk call - I've tried piping the output of the awk call into the expr call, and tried using a 'Here' document, nothing seems to work.
export CNT=`wc -l ${QV_FILENAME} | awk '{print $1}'` export FILE_RECCNT=`expr ${CNT} - 2` Thanks for any help that anyone can offer. |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|