![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Rules & FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| HP-UX HP-UX (Hewlett Packard UniX) is Hewlett-Packard's proprietary implementation of the Unix operating system, based on System V. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Compare 2 files and output result in pop up window | hongsh | UNIX for Dummies Questions & Answers | 2 | 05-23-2008 06:50 AM |
| Need to Output result to a non-delimitted file | cosec | Shell Programming and Scripting | 1 | 04-07-2008 01:51 AM |
| Outputting formatted Result log file from old 30000 lines result log<help required> | vikas.iet | Shell Programming and Scripting | 5 | 12-02-2007 06:43 PM |
| output result (period -1) | happyv | Shell Programming and Scripting | 4 | 05-18-2007 03:11 AM |
| any possible to run sql result and output to file | happyv | Shell Programming and Scripting | 7 | 03-02-2007 09:07 AM |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
awk to output cmd result
I was wondering if it was possible to tell awk to print the output of a command in the print.
Code:
.... | awk '{print $0}'
Code:
.... | awk '{print date $0}'
|
| Forum Sponsor | ||
|
|
|
|||
|
Code:
... | awk '{ "date" | getline date; print date " " $0 }'
Code:
... | awk -v date="`date`" '{ print date " " $0 }'
You have very clueful questions, keep it up! (-: Last edited by era; 04-27-2008 at 05:37 AM. Reason: UNIX95=1 tip |