Link to home
Start Free TrialLog in
Avatar of bsippy
bsippy

asked on

cat –v $filename | sed –e ‘s/\^@/ /g’ > filename.dat

Can some one please explain what the below stmt does
cat –v $filename | sed –e ‘s/\^@/ /g’ > filename.dat

any help would be greatly appreciated
ASKER CERTIFIED SOLUTION
Avatar of JohnK813
JohnK813
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of bsippy
bsippy

ASKER

Thanx a lot JohnK813...but I would really appreciate it if any one could help me figure out what exactly ^@ is
Aha, found it.

^@ is the NULL (or NUL) character.  So, here you're replacing NULLs with spaces.
>  s/\^@/ /g’

replace any occurance of the string literal ^@ by a single space
Avatar of bsippy

ASKER

Thnk you