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

Popular posts from this blog

c# - Send Image in Json : 400 Bad request -

jquery - Fancybox - apply a function to several elements -

An easy way to program an Android keyboard layout app -