![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | 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 here. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Help for Sed Syntax problem | SanjayLinux | Shell Programming and Scripting | 2 | 10-15-2007 10:52 PM |
| syntax problem grepping? | dsimpg1 | Shell Programming and Scripting | 9 | 07-17-2007 05:48 PM |
| Syntax problem with Unix ftp get command | mheinen | HP-UX | 2 | 02-09-2007 10:01 AM |
| syntax problem | rajan_ka1 | Shell Programming and Scripting | 3 | 03-16-2006 07:13 AM |
| multiple cuts syntax problem | Gerry405 | UNIX for Dummies Questions & Answers | 12 | 10-31-2005 06:23 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
syntax problem
dear friends,
I have a large size file containg two fields data like this *** **** 122 222 ***** ***** ***** ***** 232 233 i have file like this. i want to remove blank lines from file . i think awk is servive this problem i wrote a awk command but the error is coming . mu command is like this awk ' $1 != /*/*/*/' file.dat > new but this command syntax has problem please anyone correct the syntax and let me know. |
| Forum Sponsor | ||
|
|
|
#2
|
|||
|
|||
|
a workaround solution
Quote:
tell me if you were looking for somthing else Gaurav |
|
#3
|
|||
|
|||
|
sed '/^$/d' $filename
John Arackal |
|
#4
|
||||
|
||||
|
Code:
nawk 'NF' myFile |
||||
| Google The UNIX and Linux Forums |