Search Results

Search: Posts Made By: joonisio
2,883
Posted By RudiC
Just reverse the order of the statements, i.e....
Just reverse the order of the statements, i.e. have the file1 processing (NR==FNR) before the page processing !(NR%10). And, use FNR for the latter.


Be aware that careful indenting (as shown by...
3,203
Posted By Scrutinizer
Do you mean something like this? awk -F: ' ...
Do you mean something like this?

awk -F: '
NR==FNR {
A[$3]=$1
next
}

$4 in A {
$4=A[$4]
}

{
printf "%-20s %-10s %-30s\n", $1,$4,$7
}
' /etc/group...
Showing results 1 to 2 of 2

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