|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stay one step ahead of the competition. Evaluate and give feedback
on some of the hottest web development tools on the market today.
Make your opinion heard! Click
Here
|
|
#1
|
|||
|
|||
|
Pasting files with 2 columns
hi,
I have files with 2 columns of data g1.dat f1.dat g2.dat f2.dat ... I know how to join g1.dat and f1.dat into one file with 4 columns. I do that with awk for example like awk 'FNR==NR {a[FNR]=$0;next}{print $1, $2, a[FNR]}' f1.dat g1.dat > f1g1.dat I would like to do this in loop for each pair similarly like for f1.dat and g1.dat. How to do that? thanks oliver |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > Other Programming Languages > Pasting files with 2 columns |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|