Bash for loop parallelising

2016-10-20 Thread Samdani A
Hi Am 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/bash mkdir csv for f in *.txt do comm

Re: Bash for loop parallelising

2016-10-20 Thread Hans Schou
This should work parallel command -n -c {} '>' {.}.csv \; mv \${f%.txt}.csv csv/ \; rm \$f ::: *.txt 2016-10-20 11:10 GMT+02:00 Samdani A : > Hi > > Am 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