Search Results

Search: Posts Made By: jesu
1,130
Posted By Corona688
ls | grep -v "\.ext$"
ls | grep -v "\.ext$"
2,032
Posted By jim mcnamara
awk 'boolean value' inputfile awk will...
awk 'boolean value' inputfile

awk will print a line of input for every line that passes the boolean test. index($0,"string")
returns a number > 0 when it finds the string anywhere. >0 is...
2,032
Posted By jim mcnamara
var="two" awk -v a="$two" 'index($0,a)>0' ...
var="two"
awk -v a="$two" 'index($0,a)>0' somefile

This does not do regex only does pure pattern like grep -F 'fixed pattern'
1,705
Posted By itkamaraj
$ cat test.txt 2012-02-05 16:09:37.388 ...
$ cat test.txt
2012-02-05 16:09:37.388
2012-02-03 16:09:37.388
2012-02-04 16:09:37.388
2012-02-01 16:09:37.388
2012-02-01 16:09:36.388


$ sort -n test.txt
2012-02-01 16:09:36.388...
Showing results 1 to 4 of 4

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