Search Results

Search: Posts Made By: phreezr
1,434
Posted By phreezr
Thanks so much for your help, however neither of...
Thanks so much for your help, however neither of those work for me. I am running on Sun Solaris if that makes any differance and my sed is from 2005 it says. Tried gsed as well to no avail. Any...
1,434
Posted By phreezr
Help a newb with sed?
So here is my problem:

I need to do a sed search and replace on the following:

variable_blah_STATUS replaced with "replace string".

sed 's/variable_blah_STATUS/replace string/g' works...
4,100
Posted By phreezr
awesome, works great with unzip -l...thanks!
awesome, works great with unzip -l...thanks!
4,100
Posted By phreezr
Get zip path from unzip -l
I am listing the contents of a zip file and then grepping for a specific string ie: filename.a to get a line like: 309753 10-18-08 15:20 etc/filename.a

The etc/filename.a is the path the...
1,762
Posted By phreezr
ah just got it, nevermind then something like ...
ah just got it, nevermind then something like sed 's/.*\([0-9]\{3\}-[0-9]\{4\}-.*\).*/\1/' works great.
1,762
Posted By phreezr
quick question
I am using sed to find a pattern in a line and then I want to retain the pattern + the rest of the line. How is this possible? ie:

line is: 14158 05-15-08 20:00 ...
4,211
Posted By phreezr
awesome, thank you! There went 45 min of my life...
awesome, thank you! There went 45 min of my life that I will never get back, hah!
4,211
Posted By phreezr
Grab a number at end of filepath
Hello, I have a file path such as: /path/to/whatever/30 and I want to get the number off the end. My problem is that there might be other numbers in the path and the last number can be 1 or 2...
1,309
Posted By phreezr
I got it, my directory path also has a timestamp...
I got it, my directory path also has a timestamp at the end of it and I didn't enclose it with quotes and it used some <>'s Newbie mistake I guess. Thank you much for all your help...certainly made...
1,309
Posted By phreezr
Thank you so much for your reply. Looks like it...
Thank you so much for your reply. Looks like it should work, I am piping
/usr/dev/blah/Arch/release/812-1235-P05/files/list which is from a previous grep command into sed so like grep...
1,309
Posted By phreezr
Another sed question
Hello, I am very new to shell scripting and have a directory path such as:
/usr/dev/blah/Arch/release/812-1235-P05/files/list and I want to output:

812-1235-P05

I think using sed with a regex...
Showing results 1 to 11 of 11

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