Search Results

Search: Posts Made By: navsan420
1,949
Posted By anbu23
$ awk 'NR==1; NR==1||/^-/{getline; print}' file ...
$ awk 'NR==1; NR==1||/^-/{getline; print}' file
DB_NAME TABLE_OWNER TABLE_NAME PARTITION_NUMBER LAST_DATE DAYS_LEFT
-------- --------------- ---------------...
1,240
Posted By MR.bean
$ perl -lne 'if(/create/ .. /Elapsed/) {...
$ perl -lne 'if(/create/ .. /Elapsed/) { if(/create\s+index\s+(.*)\s+on/) { $i = $1 } elsif(/^Elapsed:\s+(.*)$/) { $e = $1; print join("\t", $i, $e); } }' input
XYZ_F75 00:08:08.58
XYZ_F81...
1,129
Posted By vgersh99
sed 's/.*_//;s/].*/]/' myFile
sed 's/.*_//;s/].*/]/' myFile
2,867
Posted By Yoda
Try escaping the back slash \ grep...
Try escaping the back slash \
grep 'F:\\app\\data\\misc\\server' logfile.txt
From grep manual:

Care should be taken when using the characters $, *, [, ^, |, (, ), and \ in expression, because...
Showing results 1 to 4 of 4

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