Search Results

Search: Posts Made By: AAHinka
1,421
Posted By RavinderSingh13
Hello AAhinka, Not sure about your complete...
Hello AAhinka,

Not sure about your complete requirement, but could you please try echo $1 in place of grep $1but this is a wild guess only, let us know the input with complete expected output, so...
1,421
Posted By vgersh99
What are you grep-ping for here grep $1 | ...?
What are you grep-ping for here grep $1 | ...?
1,119
Posted By MadeInGermany
[ ] have special meaning in grep. Either use...
[ ] have special meaning in grep.
Either use fgrep (or grep -F):
fgrep 'value[71]' test_file.dat
or escape the special meaning:
grep 'value\[71\]' test_file.dat
1,410
Posted By Scrutinizer
Try: awk 'NF>1{s=s (s?";":x) $2; sub(/;$/,x,s)}...
Try:
awk 'NF>1{s=s (s?";":x) $2; sub(/;$/,x,s)} END{print s}' file
or
awk 'NF>1{sub(/;$/,x,$2); print $2}' file | paste -sd\; -
Showing results 1 to 4 of 4

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