Search Results

Search: Posts Made By: Klasform
1,845
Posted By Klasform
It was more about the BARGES than the grep, Don....
It was more about the BARGES than the grep, Don. I really don't think a mistake like this can come of it's own. So I guess your of the same sentiment.
Rudic does it underhanded and you well, with...
1,845
Posted By Klasform
FROM: Curious if it woks on other systems than...
FROM:
Curious if it woks on other systems than Gnu/Linux.
sed 'H;' < fileA | xargs -I latlon sed -n '/latlon/p' fileB

24.5625 -81.8125 275.8
24.5625 -81.7708 405.2
24.6042 -81.6458 321.7...
1,845
Posted By Klasform
Curious if it woks on other systems than...
Curious if it woks on other systems than Gnu/Linux.
sed 'H;' < fileA | xargs -I latlon sed -n '/latlon/p' fileB

24.5625 -81.8125 275.8
24.5625 -81.7708 405.2
24.6042 -81.6458 321.7

...
1,746
Posted By Klasform
sed -n -r '/<Member/{N;...
sed -n -r '/<Member/{N; s/<(Member)[[:space:]]+([[:alpha:]\.]+)[[:punct:]]+([[:alpha:]\.]+)[[:punct:]]\n([[:alpha:]\.]+)[[:punct:]]+(.*)[[:punct:]].*$/\1 \2,\3,\4,\5 /p}' filesed -n -r '/<Member/{N;...
1,746
Posted By Klasform
Using sed (GNU sed) 4.2.2
Using sed (GNU sed) 4.2.2
1,746
Posted By Klasform
sed -n -r '/<Member/{N;...
sed -n -r '/<Member/{N; s/<(Member).*(name)="(.*)"\n(.*)="(.*)".*$/\1 \2,\3,\4,\5 /p}'This works fine!

For some reason, I was not able to do it using the [:alpha:] or [[:alpha:]]It seemed to be...
1,072
Posted By Klasform
sed "s/\(^[a-zA-Z].*\) \(.*\) \(.*$\)/\['\1'...
sed "s/\(^[a-zA-Z].*\) \(.*\) \(.*$\)/\['\1' \2,\3\]/"This should work.
6,857
Posted By Klasform
Sorry Don will ask the question as a new one, ...
Sorry Don will ask the question as a new one,
thanks
6,857
Posted By Klasform
I know this doesn't work, my question is how to...
I know this doesn't work, my question is how to do the, if not, THEN in sed? I guess I use the branching but had less than success with it, anyway let me know.
sed -n 'p;/{/ !s/^/#/; s/^\(.*\)/#...
6,857
Posted By Klasform
sed -n 'p; /{/{ :L n; /}/p; s/\(.*\)/#\1/p; bL;...
sed -n 'p; /{/{ :L n; /}/p; s/\(.*\)/#\1/p; bL; };n;p;' file6
#!/bin/bash

fn a {
# beautiful evening
# added
# sunny day
}
# }
# fn b {
}
# }
#
# fn c {
# hello world .its a...
1,133
Posted By Klasform
The data as you show it contains spaces before...
The data as you show it contains spaces before each value. I will then take this and put it in a file called file3.
FA-5G:1
FA-6G:0
FA-11G:0
FA-12G:1

sed -n...
1,852
Posted By Klasform
I had the impression the result required was the...
I had the impression the result required was the @Ram line, but I see all Ram should print. sed -n '1p' < a.txt | xargs -I output sed -n '/output/p' b.txt So this small adjustment prints all Ram in...
1,852
Posted By Klasform
I have been trying to solve this through sed. ...
I have been trying to solve this through sed.
inline!
sed -n -e '/\@{sed -e '1p' pattern.txt}/p' content.txtAlso tried curlys with many other combination, just can't get it working.
I Like the...
2,883
Posted By Klasform
I've come-up with this using (GNU) sed. Started...
I've come-up with this using (GNU) sed.
Started to learn the command and would gladly appreciate input on efficiency and also stylistically!

sed -n -r 's/(<Subject )(.*)(.* )(.*)(.* )(.*)(.*...
1,671
Posted By Klasform
It is hard to get this level of specifics...
It is hard to get this level of specifics elsewhere, why I appreciate your time on this. I will dissect the whole line by line!

Perfect for learning since I just started to be interested by sed...
1,671
Posted By Klasform
Thanks for the explanation Don. But mine is...
Thanks for the explanation Don.

But mine is slightly different and still works.
Is my solution improper in any way?
Fas

Saw your post after my answer!

---------- Post updated at 03:04 PM...
5,513
Posted By Klasform
Revised sed with proper result. cat split |...
Revised sed with proper result.

cat split | sed '/\(.*varchar.*[)] \)\(.*$\)/ {s//\1\n\2/}'

declare @newname varchar(30)
Select @newname = filename from table_bck
declare @newname...
1,671
Posted By Klasform
Revised sed statement with proper result. cat...
Revised sed statement with proper result.
cat split | sed '/\(.*varchar.*[)] \)\(.*$\)/ {s//\1\n\2/}'

declare @newname varchar(30)
Select @newname = filename from table_bck
declare @newname...
1,671
Posted By Klasform
Using Sing's input file with sed! cat split |...
Using Sing's input file with sed!
cat split | sed '/\(.*Select \)\(.*$\)/ {s//\1\n\2/}'

declare @newname varchar(30) Select
@newname = filename from table_bck
declare @newname varchar(30)...
5,513
Posted By Klasform
sed -n '/.*oy\/size">\(.*\).*$/ {s//\1/; :L; N;...
sed -n '/.*oy\/size">\(.*\).*$/ {s//\1/; :L; N; s/<\/note-content>//p; TL}'

sed -n '/.*oy\/size">\(.*$\)/ {s//\1/; :L; N; s/<\/note-content>//p; TL}'
I modified to the second line since it seemed...
5,513
Posted By Klasform
sed -n '/.*oy\/size">\(.*\).*$/ {s//\1/; :L; N;So...
sed -n '/.*oy\/size">\(.*\).*$/ {s//\1/; :L; N;So what your saying is:

Pattern space is going to have
1: PDF converters
2: ....the whole complete line
s//\1/;takes only the first line from...
5,513
Posted By Klasform
Ah, Got it! I was trying to find the L ...
Ah, Got it!

I was trying to find the L switch, but it is a label called L working with T. If not find pattern then go back and repeat until pattern found !!

Great!

sed -n...
5,513
Posted By Klasform
Yes, I sure can work with this. I will dissect...
Yes, I sure can work with this.
I will dissect it and make it work the way I want!
I'm amazed at this little command and how versatile it is, the reason I want to get to know it!!

Thanks very...
5,513
Posted By Klasform
sed -- Find pattern -- print remainder -- plus lines up to pattern -- Minus pattern
The intended result should be :

PDF converters
'empty line'
gpdftext and pdftotext?xml version="1.0"?>
xml:space="preserve"><note-content version="0.1" xmlns:/tomboy/link"...
2,202
Posted By Klasform
Ala, thanks I had found my mistakem real close to...
Ala, thanks I had found my mistakem real close to what you write :
then unset CNT[$JOBIDl 'l' instead of ].
Must change the colors of my terminal session!
Thanks to all!
Showing results 1 to 25 of 38

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