Search Results

Search: Posts Made By: johny_be_good
1,189
Posted By johny_be_good
Is there a way to set ' and " as a non quotes type in bash?
Howdy, I got a script that adds a esc char before all chars interpeted by bash shell but I wan't other solution. Is there a way to set ' and " as a non quotes type in bash (some local variable)? ...
10,412
Posted By johny_be_good
not actual. Remove the post
not actual. Remove the post
10,412
Posted By johny_be_good
not actual
not actual
10,412
Posted By johny_be_good
Thanks, much better but one problem: it cuts the...
Thanks, much better but one problem: it cuts the end of string:

echo "cond='1'$some" | sed "s/['\$]/\\\&/g"

result
cond=\'1\'
10,412
Posted By johny_be_good
Problem with using a sed to add escape character \ before $ and ' symbols
Hi all,
I've got a problem with sed. Want to use it to add escape character \ before $ and ' symbols so

condition='1'$some will become condition=\'1\'\$some


echo "condition='1'$some" | sed...
Showing results 1 to 5 of 5

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