Search Results

Search: Posts Made By: mcW
17,995
Posted By mcW
sed - delete everything until the first digit comes up
Hi,

I have a text file with content as follows:


bla foo3200492
comment on this: 3900302
here comes the teddy 12


all I need is:

3200492
3900302
12


So I need the correct "sed"...
Forum: Cybersecurity 02-25-2010
11,991
Posted By mcW
how to configure ssl for tomcat 6
Hi,

my server is running a tomcat servlet container.
yesterday a bought a ssl-certificate from geotrust.com.

i got a private-key file and a cert-file (PKCS10).

i followed the instructions...
4,076
Posted By mcW
fetchmail and forward to an extern address
Hi,

I'm searching for an solution for the following problem.
I want fetch some mails via pop3 from a@a.com with fetchmail.
That works perfectly. Now any incoming mail should forwarded to b@b.com...
3,273
Posted By mcW
optimize shell script (snapshots)
I've a script to do some snapshots but the time it does so is very different...
once i got a snapshot under 1 sec, on the other hand it took 3 sec, but nothing else changed, i didnt even move the...
3,073
Posted By mcW
Hi, Ive that section in my xorg.conf. So Ive...
Hi,

Ive that section in my xorg.conf. So Ive a desktop of that size. If I stretch the window manually, its over all 3 screens, but I want to click only the maximize-button of the window to do...
3,073
Posted By mcW
Ubuntu Hardy: How to span windows over more than 1 screen?
Hi,

Ive 3 screens, 2 nvidia graphiccards and all works fine with the nvidia binary driver and xinerama. I can maximize all windows an one screen, but now i need to span it over all 3 screens. ...
26,065
Posted By mcW
I've a last question. ;-) How can I delete...
I've a last question. ;-)

How can I delete all chars until a digit (0-9) shows up, but EXLCUDING itself?
2,568
Posted By mcW
thanks a lot
thanks a lot
2,568
Posted By mcW
sed-question delete everthing after a couple of numbers
Hi,

I've a textfile with a lots of numbers. After some numbers are comments.
I want delete these comments with sed, but dont know the correct pattern.

for example (my textfile):

3202...
26,065
Posted By mcW
Argh, this was my testcase: echo "430 s...
Argh,

this was my testcase: echo "430 s 0$02s02" | sed -n 's/[^\$]*\$//p'
Just a minute ago I realized: echo "430 s 0\$02s02" is the answer... :)
26,065
Posted By mcW
Now Ive a new problem. Cut off all chars until...
Now Ive a new problem. Cut off all chars until the first "$" shows up, inc itself.
I tested: sed -n 's/[^\$]*\$//p', but didnt work, what ive to do in this case?

thanks in advance
4,774
Posted By mcW
xwd -display problem
Hi,

Ive a problem with xwd. I want a snapshot from my second display.

xwd -display :0.0 -root | xwdtopnm 2>/dev/null | pnmtopng > pic.png

gives me a pic with both screens. I tested :0.1,...
26,065
Posted By mcW
Yes, thats right. Works perfect. Thanks a lot!
Yes, thats right. Works perfect. Thanks a lot!
26,065
Posted By mcW
The only pattern I can use is the _first_ 8. The...
The only pattern I can use is the _first_ 8. The lines differ in the number of whitespaces, chars before the first 8 etc.
26,065
Posted By mcW
sed - delete until char x
Hi,

I got a Textfile contains hundreds of lines like this:


3 02 8293820 0 22 22

All I need is this:


293820 0 22 22

So i decided to delete until the first '8' comes up. But how I...
2,040
Posted By mcW
Parsing textfile problem with cut
Hi,

I have a textfile with several lines like this:
text num: USER text (num) num num

I need all these stuff. Problem is, how to get these stuff after ":".
USER is a username and all chars...
2,946
Posted By mcW
@ghostdog74: The only pattern I cant use are...
@ghostdog74: The only pattern I cant use are these three newlines.

@era: thx a lot.
2,946
Posted By mcW
Theres no difference between "blabla" and...
Theres no difference between "blabla" and "important text". I cant get a pattern for csplit. Any other ideas?
2,946
Posted By mcW
Hi, there is a new problem. Some files have...
Hi,

there is a new problem. Some files have three newlines in the unimportant parts. like this:


blablablalblalbla
blablablalblalbla



blablablalblalbla



blablablalblalbla ...
2,946
Posted By mcW
thx a lot
thx a lot
2,946
Posted By mcW
textfile into 2 pieces, seperate by newlines.
Hi,

I've a textfile like this:


blablablalblalbla
blablablalblalbla
blablablalblalbla
blablablalblalbla
blablablalblalbla


important text
important text
important text
important...
Showing results 1 to 21 of 21

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