|
|||||||
| Forums | Search Forums | Register | Forum Rules | Man Pages | Albums | FAQ | Members | 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. |
|
|
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
what does awk 1 file mean?
I have a file with no eof, and I want to change it, I know I can do awk 1 file > file2, but I would like to know what awk 1 means?
thanks |
| Sponsored Links | ||
|
|
#2
|
||||
|
||||
Quote:
|
| Sponsored Links | ||
|
|
#3
|
|||
|
|||
|
awk evaluates the 1 as true and the prints the entire line by default, including a newline.
Regards |
|
#4
|
|||
|
|||
|
thanks
|
| Sponsored Links | ||
|
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Before I delete any file in Unix, How can I check no open file handle is pointing to that file? | kchinnam | Solaris | 12 | 10-06-2010 02:30 PM |
| Reading file names from a file and executing the relative file from shell script | anushilrai | Shell Programming and Scripting | 4 | 03-10-2006 04:25 AM |
|
|