Hi kankan55
you can understand the general syntax for sed command
sed 's/$unwanted/$wanted/' $file
Here s = substitute
$unwanted is what you dont require or want to replace.
$wanted is what you need insted of unwanted.
$file is your input file or u can have a pipe statement.
Quote:
echo 'hostname=xxx' |sed 's/hostname=//'
|