Search Results

Search: Posts Made By: rocket_dog
3,099
Posted By Franklin52
awk 'NR==FNR{a[$0]; next} $6 in a{print >...
awk 'NR==FNR{a[$0]; next} $6 in a{print > "/dir/to/" $6 "/newfile"}' /path/to/arrayfile file

It's unnecessary to use the script, the single awk command should do the whole job.
Showing results 1 to 1 of 1

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