Search Results

Search: Posts Made By: klusps
1,925
Posted By klusps
There are two input files. The first one...
There are two input files.

The first one contains data about artists.

Peter trumpet
Bob piano
John drums


The second one contains a list of commands.

ARTIST John

For example, I want...
1,925
Posted By klusps
Need help with simple comparison in AWK
Hi,

I'm new to AWK and I'm having problems comparing a field to a string variable.

/ARTIST/ {x = $2}
$1 ~ x {print $0}My code tries to find a record with the string "ARTIST". Once it finds...
Showing results 1 to 2 of 2

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