unix - Copy column data from one text file add to end of another -
i looking unix cmd or script extract column file1:
150807 0 9 5
and append file2:
date 150706 150713 150720 150727 *150807* p1aw01 0 0 0 0 *0* p1aw02 0 12 12 12 *9* p1cp01 0 0 0 0 *5*
the added column needs left justified , aligned others in file2. join command used, removes formatting , spacing added file2. i'm using older ver. of korn shell , cannot use column tool or sed -i option.
thanks!
try paste
command
paste file2 file1 > outputfile
Comments
Post a Comment