Executing multiple commands in a file at same time

Hi

Am having file.ksh as below

wc -l file1.txt
wc -l file2.txt
wc -l file3.txt
wc -l file4.txt

i want all the commands in this file to execute in same time

please help

Thanks in advance

Add & at the end of your commands

wc -l file1.txt &
wc -l file2.txt &
wc -l file3.txt &
wc -l file4.txt &
1 Like