Search Results

Search: Posts Made By: sajithn
8,257
Posted By sajithn
Monkeys wrote: > What I want to do is find the...
Monkeys wrote:
> What I want to do is find the token starting with "C", and print it and its value > (so I'd want to print "C=3" in the example above).

So I guess it works !
8,257
Posted By sajithn
A pretty straightforward one: awk -F'|' '{ ...
A pretty straightforward one:

awk -F'|' '{
for(i=1; i<=NF; i++)
{
if (index($i, "C") == 1)
print $i
}
}' input-text-file
Showing results 1 to 2 of 2

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