Hi All,
How do i write in
sed for the 6th and 7th field of etc/passwd file as it involves "/" character?
Does mine below is correct? It's incomplete script as i need help with syntax as i always getting may errors
Example of etc/passwd file:
blah:x:1055:600:blah blah:/home/blah:/bin/ksh
sed "s/\($name:.:[0-9]*:\)[0-9]*:\(.*\):\(\/.*\/.*\):\(\/.*\/.*\)