Search Results

Search: Posts Made By: josce
2,092
Posted By josce
Cheers ! Adding 'eval' did the trick. And...
Cheers ! Adding 'eval' did the trick.


And thanks Citaylor for your explanation and refs.

Btw, ~ counts as a variable, I hadn't originally the sed bit to replace it with $HOME and the same...
2,092
Posted By josce
Puzzle: file name grepped from text file yields "no such file"
Dear all,
In a bash script, I grep a filename from an UTF8 encoded file:
LIST=`grep ^source $FILE | tr "\t" " " | cut -d " " -f 2 | sed -e 's,~,\$HOME,g'`
The result is

# echo $LIST...
Showing results 1 to 2 of 2

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