linux - Running a script inside a loop - echo file names -
linux - Running a script inside a loop - echo file names -
i have basic script runs within script. phone call mass_split.sh
invokes split_file.sh
. splite_file.sh
takes 2 arguments -s file_name.txt
, -c 1
(how many slices cutting file). trying run loop find text file names in directory ./
, input results cut_file.sh
. getting no results , text files not beingness split.
mass_split.sh
#!/bin/bash f in ./*.txt sudo bash split_file.sh -s echo "file '$f'"; -c 10 done
maybe has errant semicolon after string literal, not doing want (unless have executable you're intentionally running called -c
).
linux bash shell ubuntu
Comments
Post a Comment