Search Results

Search: Posts Made By: marknu1
2,905
Posted By marknu1
I'd really like to have a firm grasp on regular...
I'd really like to have a firm grasp on regular expressions one these days, so that information is much appreciated. Thanks, again!
2,905
Posted By marknu1
Thanks a lot! This works exactly like I need it...
Thanks a lot! This works exactly like I need it to. For my own edification, what does the new \{1,2\} portion of the regex mean in english? ;) I really appreciate the help.
2,905
Posted By marknu1
Sure. You can create file.cfg with these...
Sure. You can create file.cfg with these contents:

[param_one] [/usr/local/foo]
[param_two] [23]

Then make a script with this code:

sed -e '/^\[param_two/s/[0-9]/6/' file.cfg >...
2,905
Posted By marknu1
Sed and regex help needed
Hi all,

I'm writing a script that replaces a value in a file. The file is formatted as follows:

[param_one] [value]
[param_two] [value]

So, for this example, I'd like to replace...
Showing results 1 to 4 of 4

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