stupid question about splitting command on more lines and comment them...
hi,
when i split a sed command on more lines, i'm not able to add comment to each line: Code:
echo "bubu" | \ i know that the backslashes escape the return char, so the multiline command will be read as a one-liner... so it should not be possible... if it's a stupid question (and i'm really afraid so), just sorry... |
Code:
echo "bubu" | |
You can abuse the "back tick" command substitution, but this solution is probably more ugly and confusing than the original problem:
Code:
sed -e 's/1/a/' \ |
this is not that bad:
Code:
echo "bubu" | \ |
Quote:
|
Quote:
a) use double-quotes to enclose the sed command: Code:
echo "'" | sed -e "s/'/single-quote/" Code:
echo "bubu" | sed -f sedscr |
All times are GMT -5. The time now is 05:54 AM. |