Search Results

Search: Posts Made By: albertkao
2,755
Posted By albertkao
Please help to fix the following error. Thanks....
Please help to fix the following error.
Thanks.
$ awk -F\= '{if(x&&$0=="ctrl_process=EXPIRED"){a[FILENAME]++}}{x=($NF>2008&&$NF<2011&&$1=="ctrl_end
_date")?1:0}END{for(i in a){print i}}' *
awk:...
2,755
Posted By albertkao
look for two consecutive lines in all text files
How to get (a list of) all the text files in the current directory and subdirectories which has the following two consecutive lines:
ctrl_end_date=2009
ctrl_process=EXPIRED
OR
ctrl_end_date=2010...
Showing results 1 to 2 of 2

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