Search Results

Search: Posts Made By: james1988
733
Posted By guruprasadpr
Hi $ cat file 8 abc def 9 abc def ...
Hi


$ cat file
8 abc def
9 abc def
10 abc fed
11 def abc

Command:
$ awk '$1>9' file > file1

Output file:
$ cat file1
10 abc fed
11 def abc
2,308
Posted By Scrutinizer
awk '1;/ccd/{exit}' file sed '/ccd/q' file
awk '1;/ccd/{exit}' file
sed '/ccd/q' file
2,308
Posted By itkamaraj
$ awk '/ccd/{print;exit}1' test.txt aab bbc ...
$ awk '/ccd/{print;exit}1' test.txt
aab
bbc
ccd
2,308
Posted By Corona688
awk -v PAT="ccd" 'BEGIN { printf("match pattern...
awk -v PAT="ccd" 'BEGIN { printf("match pattern '%s'\n\n", PAT); }; $0 ~ PAT { P=1 } P'
Showing results 1 to 4 of 4

 
All times are GMT -4. The time now is 07:20 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy