I know if I have a command ./run -c -p '$' -s 10 file.txt
I can write bash script like this
while read line; do 
   # ...
done < $6
But what if the command may or may not have one/some options, maybe look like this
./run -p '$' -s 10 file.txt 
or this
./run '$' -s 10 file.txt
Then how can I get the file name in the script?
 
     
     
     
     
    