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

assembly - 8086 TASM: Illegal Indexing Mode -

Java, LWJGL, OpenGL 1.1, decoding BufferedImage to Bytebuffer and binding to OpenGL across classes -

java - SmsManager sending message more than one -