![]() |
How to pass sed address by shell variable?
Hya,
Situation: Code:
>cat tuxIncorrect shellscript Code:
#!/usr/bin/tcshCode:
sed -e $1's/./<&>/'I am somewhat confident that there is a neater way. Question: Does anybody know the answer? cheers |
Quote:
Kevin Barry |
Hi,
try this: Code:
#!/usr/bin/tcsh |
Hya,
Thanks, ta0kira: Yes, often shell scripts are ugly. As you mentioned, I do not want unnecessarily complicated scripts, nor error prone ones. crts: Yes, you are a star! cheers |
| All times are GMT -5. The time now is 07:42 PM. |