sed within `` in Bourn Shell isn't Working.
Lorenzo Luengo
lluengo at dgeo.udec.cl
Mon Mar 23 16:29:54 UTC 2009
Smoot Carl-Mitchell escribió:
> You can see what is happening by setting the -x option in the shell.
>
> set -x
>
Nice! I didn't know the existance of this /flag/
Almighty Bash!!!
> uid=`echo 'ABC\DEF' | sed 's/\\\/\\\\\\\/g'`; echo $uid
> ++ sed 's/\\/\\\\/g'
> ++ echo 'ABC\DEF'
> + uid='ABC\\DEF'
> + echo 'ABC\\DEF'
> ABC\\DEF
>
--
Lorenzo Luengo Contreras
Administrador de Sistemas DGEO
Universidad de Concepción
Concepción - Chile
+56-41-2207277
More information about the ubuntu-users
mailing list