[K12OSN] OT: Bash help

Les Mikesell les at futuresource.com
Tue Nov 20 04:52:59 UTC 2007


Robert Arkiletian wrote:
> 
> Okay Peter how is this?
> if I understand correctly you have multiple files
> 
> file1    file2   file3
> 
> bob    14      male
> kate   13      female
> john   15      male
> sue    16      female
> 
> where each file contains info fields that are in order (so bob is 14
> and he is male)
> which you want to change into one file
> 
> contacts
> 
> bob:14:male
> kate:13:female
> john:15:male
> sue:16:female

Errr.. if that's all:
paste -d: file1 file2 file3  >outputfile

-- 
   Les Mikesell
    lesmikesell at gmail.com




More information about the K12OSN mailing list