|
From: | Hans Schou |
Subject: | Re: Bash for loop parallelising |
Date: | Thu, 20 Oct 2016 19:10:11 +0200 |
HiAm trying to convert a simple bash script file which is given below. I was able to do it using parallel but not able to use multiple functions in the same line. Is there any other possible way to do the full job inside the for loop using parallel?#!/bin/bashmkdir csvfor f in *.txtdocommand -n -c $f >${f%.txt}.csvmv ${f%.txt}.csv csv/rm $fdoneusing parallel:parallel command -n -c {} '>' {.}.csv ::: *.txt
[Prev in Thread] | Current Thread | [Next in Thread] |