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

Popular posts from this blog

php - How to pass multiple values from url -

xslt - DocBook 5 to PDF transform failing with error: "fo:flow" is missing child elements. Required content model: marker* -

database - php search bar when I press submit with nothing in the search bar it shows all the data -