S mailing list
> Cc:
> Bcc:
> Date: Thu, 16 May 2019 12:57:43 -0400
> Subject: [CentOS] 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 woul
On Thu, 2019-05-16 at 12:57 -0400, Jerry Geis wrote:
> 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
On Thu, 16 May 2019, Jerry Geis wrote:
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
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
4 matches
Mail list logo