Search Results

Search: Posts Made By: kmajumder
3,227
Posted By Don Cragun
If the two sample lines from your log files are...
If the two sample lines from your log files are as you have shown in past posts, the command line you specify above is equivalent to the command:
grep -e linkId=1ddoic abc-2012-10-01_000* | sort -u...
12,638
Posted By elixir_sinari
Looking at your command line, I assume that you...
Looking at your command line, I assume that you need the count of 5th tab-separated columns from each line of test.txt matching the criteria specified by grep.

Just change your command line to:
...
1,705
Posted By agama
First, the very last line sets the record...
First, the very last line sets the record separator variable (RS) to be either the greater-than or less-than symbol. That splits all of the input file into records based on either of those rather...
1,705
Posted By agama
You could write a simple awk programme to extract...
You could write a simple awk programme to extract the bits you need.


awk '
/^Val.*Db="[^"]+"/ {
gsub( "^Val ", "" );
gsub( "=\"", "<" );
gsub( "\" *", ">" );
...
1,370
Posted By elixir_sinari
This will print all the required sections on...
This will print all the required sections on separate lines:
awk '/^<\?xml/ {while(match($0,/qry="[^"]*"/)){print substr($0,RSTART+5,RLENGTH-6);sub(/qry="[^"]*"/,"")}}' inputfile
Showing results 1 to 5 of 5

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