Search Results

Search: Posts Made By: ekharvi
3,112
Posted By neutronscott
You also shouldn't use for to read a file. If you...
You also shouldn't use for to read a file. If you have envsubst you can pipe it to a while read loop. See below how this looks:


mute@tiny:~$ cat file-list
$PATH1/file1.txt
$PATH2/file2.txt...
3,112
Posted By RudiC
Assumed that PATH1 and PATH2 WERE defined, it...
Assumed that PATH1 and PATH2 WERE defined, it still wouldn't work as it would need a second expansion by the shell after $I or $v have been expanded. You need to use eval for that, but this can be...
3,112
Posted By PikK45
There is not $PATH1 $PATH2 defined in the script....
There is not $PATH1 $PATH2 defined in the script.

Can you please paste the complete script or the proper input & output data?

Thanks
Showing results 1 to 3 of 3

 
All times are GMT -4. The time now is 07:52 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy