1
Multi-Threading / Forking in bash script
Я написав bash-скрипт у такому форматі: #!/bin/bash start=$(date +%s) inFile="input.txt" outFile="output.csv" rm -f $inFile $outFile while read line do -- Block of Commands done < "$inFile" end=$(date +%s) runtime=$((end-start)) echo "Program has finished execution in $runtime seconds." whileЦикл буде читати $inFile, виконувати деякі дії на лінії і скинути результат $outFile. …