Search Results

Search: Posts Made By: ghostdog74
8,398
Posted By ghostdog74
awk 'FNR==NR{ a[FNR]=$0;next } { print $0 ...
awk 'FNR==NR{ a[FNR]=$0;next }
{
print $0
print a[FNR+l]
l++
print a[FNR+l]
}
' file file1

output

# ./test.sh
23455
A B
C D
33444
E F
G H
33334
I J
Showing results 1 to 1 of 1

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