Wednesday, 15 April 2015

unix - Piping parts of a file to a command that requires multiple inputs -


While doing some things in my Unix shell, I would like to pip a part of a file in a particular command like this:

  cut -f1 file1 | I like this because it means that I do not have to put the other file entirely for column 1 of  file1 <1 I / O   

code>.

However, when I want to make an order that is in multiple sets of inputs like join , I still have problems. I believe in That I can do something like this:

  join (cut -f1 file1) (cut -f1 file2)   

Is there any way to do this well? The way is without making unnecessary files?

Maybe it:

  join   

Believes that you are using bash as a code, though ... < / Div>

No comments:

Post a Comment