Thread: sed and hex
View Single Post
Old 11th July 2008
lvlamb's Avatar
lvlamb lvlamb is offline
Real Name: Louis V. Lambrecht
Spam Deminer
 
Join Date: May 2008
Location: .be
Posts: 221
Default

Sed does, but ksh will beep and not accept the tab:

Code:
$ cat dummy
#!/bin/sh
exit
$  sed 's/\//\/g' dummy
sed: 1: "s/\//\/g": unterminated substitute in regular expression
$ csh
celeron:bin {1}  sed 's/\//\	/g' dummy
#!	bin	sh
exit
celeron:bin {2}
Only trust man pages. Trust? As long as you now under which shell the author wrote his code or examples.

-----
Dumb me!
tab is the autocompletion key in bash, ksh, .... 'course it beeps!
__________________
da more I know I know I know nuttin'

Last edited by lvlamb; 11th July 2008 at 03:39 PM.
Reply With Quote