Search Results

Search: Posts Made By: the1armedcoder
2,262
Posted By the1armedcoder
thanks a bunch! the sed line was just what I...
thanks a bunch! the sed line was just what I needed!
2,262
Posted By the1armedcoder
replace line after a regex
Hi,

I am trying to write a script which will modify a given account's settings by searching for a line in a file and then replacing the line after it. Here is a portion of my input file:

[0002]...
15,540
Posted By the1armedcoder
Thanks guys it worked!
Thanks guys it worked!
15,540
Posted By the1armedcoder
extract text between two strings exclusive
Hi,

I'm trying to retrieve text between two strings excluding the two strings.

So for example I have the following input:

[phone1]
type=friend
username=phone1
secret=password...
2,678
Posted By the1armedcoder
also, I had to switch around the single/double...
also, I had to switch around the single/double quotes around $ID so that it would print the double quotes in the file, otherwise it wouldnt.
2,678
Posted By the1armedcoder
Thanks a bunch Franklin! It worked! So what...
Thanks a bunch Franklin! It worked! So what exactly does .* do?
2,678
Posted By the1armedcoder
So is there any kind of "wildcard function" i...
So is there any kind of "wildcard function" i could use to replace varying text between quotes?
2,678
Posted By the1armedcoder
Ok. I was thinking '.*' would act as a wildcard....
Ok. I was thinking '.*' would act as a wildcard. This script will be used to edit many different configuration files which will have different values.
But if it replaces everything on the line...
2,678
Posted By the1armedcoder
Help with sed
Hi, I am writing a script that replaces values in a file with some user input. Right now it replaces what i want it to, then cuts out the rest of the text in that tag!

Here is my script:...
Showing results 1 to 9 of 9

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