Displaying 1 result from an estimated 1 matches for "argfil".
Did you mean:
argfile
2019 May 16
2
bash off topic
I have a simple bash script it will take arguments from a file that has
quotes.
my file arg.txt would be this
-lt "*.txt"
my script file would be
LS_ARG=`cat arg.txt`
ls $LS_ARG
it does not run properly:
sh -x ./arg.sh
++ cat arg.txt
+ LS_ARG='-lt "*.txt"'
+ ls -lt '"*.txt"'
ls: cannot access "*.txt": No such file or directory
How do I