bash - How to accept multiple input into a same script -
how can accept multiple-line input same script. or in other words process multiple files following script:
#!/bin/bash echo 'enter file names (wild cards ok)' read input_source if test -f "$input_source" sort $var | uniq -c | head -10 fi
add loop:
#!/bin/bash echo 'enter file names (wild cards ok)' read files input_source in $files ; if test -f "$input_source" ; sort $var | uniq -c | head -10 # should include $input_source somewhere fi done
Comments
Post a Comment