Search Results

Search: Posts Made By: adambot
10,502
Posted By adambot
so then do i need the second > (after the *)? ...
so then do i need the second > (after the *)?

thanks so much!




Nevermind -- i just realized what i was asking... basically the [^>] makes the matching stop at the > but doesn't get rid of...
10,502
Posted By adambot
non-greedy sed
I found a sed example that works for me, however, now i would like to understand what it is doing:

$ echo "<b>foo </b >bar" | sed 's/<[^>]*>//g'
foo bar

the part that i don't understand is...
2,866
Posted By adambot
The first one worked really well. Thanks!!! one...
The first one worked really well. Thanks!!! one last question -- what if rather than a file, i needed to grab the input from stdin? (and i can't write it out to a file first)

thanks!

[edit]
...
2,866
Posted By adambot
Gives weird cascading output file output.txt: ...
Gives weird cascading output
file output.txt:
a
b
c
d
aa
bb
aaa
bbb
ccc
ddd

attempts:
weird cascading output:
cat output.txt|while read LINE; do case "$LINE" in a*) unset FOO;...
2,866
Posted By adambot
bash case statement output help
greetings,

I have a script that is taking input like this:

a
b
c
d
aa
bb
aaa
bbb
ccc
ddd

and formating it to be like this:
a b c d
aa bb
aaa bbb ccc ddd
5,058
Posted By adambot
that is easier than i thought :D *.jar
that is easier than i thought :D

*.jar
5,058
Posted By adambot
can you give some examples of the files you want...
can you give some examples of the files you want moved this way i can work up a regex for you so you don't need to change the script every time?

I would recommend using Cron to do the timing...
1,638
Posted By adambot
I expected to get the following: Sat. May 9...
I expected to get the following:

Sat. May 9 8:00 PM CW Cursed
Sat. May 9 9:00 PM CW Sanctuary
Sat. May 16 9:00 PM CW Fever
Sat. May 16 9:00 PM CW Fever #1.21Basically, there was an extra...
Forum: HP-UX 05-04-2009
10,452
Posted By adambot
the flashing light typically means that there was...
the flashing light typically means that there was a hardware alert, sometimes i have seen software cause them, anyway, you need to get into the MP (or ILO in your case) -- you can get to it via...
1,638
Posted By adambot
merging similar lines
Greetings, I have been trying to merge the following lines:
Sat. May 9 8:00 PM
Sat. May 9 8:00 PM CW
Sat. May 9 8:00 PM CW Cursed
Sat. May 9 9:00 PM
Sat. May 9 9:00 PM CW
Sat. May 9 9:00 PM CW...
Showing results 1 to 10 of 10

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