Search Results

Search: Posts Made By: ranj14r
4,389
Posted By ranj14r
this has worked for me : sed -i -e '/security=/...
this has worked for me :
sed -i -e '/security=/ c\security=domain' netx.conf

Here,I'm searching for the pattern "security=" and changing that pattern to "security=domain" with "c/".

but can...
4,389
Posted By ranj14r
after exec the command: sed -i -e...
after exec the command:
sed -i -e 's/workgroup=.*/workgroup=NEW' netx.conf

I get some error as ------:
sed: -e expression #1, char 28: unterminated `s' command
4,389
Posted By ranj14r
i tried all the given commands..... Whats...
i tried all the given commands.....
Whats happening is EITHER 'the new valus is getting prefixed with the old value'(workgroup=newold) OR 'file contents get duplicated (file contents gets repeated)....
4,389
Posted By ranj14r
problem in using sed command in editing a file
Hi all,

I have a conf file, i want to update some entries in that conf file. Below is the code for that using a temporary file.

sed '/workgroup=/ c\workgroup=Workgroup' /usr/local/netx.conf >...
Showing results 1 to 4 of 4

 
All times are GMT -4. The time now is 10:14 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy