Why does this line do nothing? I'm trying to run a "sed" command in parallel and it outputs nothing to "standard.txt"
$Filetemp = the file I'm stream editing
standard.txt = the file I'm outputting to
cat $Filetemp | parallel --pipe sed -e "s/[[:space:]]\+/ /g" > standard.txt
This is the original code that works just fine but takes way too long:
sed -e "s/[[:space:]]\+/ /g" $Filetmp > standard.txt
GNU Parallel Version: 20130922
Lubuntu 14.04
parallel --pipe sedcommand really does? – Avinash Raj Jun 23 '14 at 16:26sed -e "s/[[:space:]]\+/ /g" $Filetmp > standard.txtin parallel since the file I'm editing is huge. – Roboman1723 Jun 23 '14 at 16:29$Filetmpvariable contains a single file or not? – Avinash Raj Jun 23 '14 at 16:31$Filetempis one file. – Roboman1723 Jun 23 '14 at 16:33sedparses the input line by line. I don't know the meaning of parallel. – Avinash Raj Jun 23 '14 at 16:34--pipepartinteresting, too. – Ole Tange Jun 23 '14 at 17:08