>>3
What did you expect? If you want an answer, ask a question.
It helps if the question demonstrates that you've read the relevant documentation before coming here. Which you haven't.
Name:
Anonymous2010-06-03 20:42
>>5
Same problem, except that doesn't write the forward slashes either
Name:
Anonymous2010-06-03 20:46
>>6 What did you expect? If you want an answer, ask a question.
Don't be obtuse, it's obvious what I wanted to do.
It helps if the question demonstrates that you've read the relevant documentation before coming here. Which you haven't.
Actually finding relevant documentation for sed is like the fucking lottery.
Name:
Anonymous2010-06-03 20:51
>>7
oh right, misread the question sed 's/\(.*\)/\1\n\/0.0.0.0/' foo
or the slightly more readable sed 's_\(.*\)_\1\n/0.0.0.0_' file.txt
>>8
What, I found http://www.grymoire.com/Unix/Sed.html to be really helpful when figuring out sed. It's the top hit on google and even has a section titled 'using newlines in sed scripts'
Name:
Anonymous2010-06-03 21:00
>>9
thanks, but that puts it on a new line
I'm trying to append it to the end of each line, and for some reason ending up with it on new lines most of the time
>>11
I thought you wanted it on the newline, in that case just leave out the '\n'.
Name:
Anonymous2010-06-03 21:05
>>10
I've seen that site
I've implemented several different variations of appending things to the end of lines (including putting a backslash behind the forward slash)
I still keep getting new lines even though I'm not specifying that.
Name:
Anonymous2010-06-03 21:06
>>12
tried that too, it still ends up on a new line
>>18
Why should we encourage your laziness and incompetence, exactly? Interesting problems are one thing (and the reason /prog/ exists), but this is just reading the fucking documentation.
How odd that none of the would-be help himmers have understood the issue, nor read the documentation themselves. This must be a symptom of the common culture of mediocrity you all subscribe to. I'm tempted to give you a hint, but honestly, I hope you never solve it.
>>26
Oh, silly /prog/lodyte. Why must you project your inadequacy onto others? It's really quite shameful.
You know, there was a time when /prog/ was inhabited by actual expert programmers. Now it seems we let in the average five-year-old who believes that answers only come from some mystical place beyond the stars. Who accuse geniuses of ``not knowing'' that which a mere second's deduction would reveal. Very, very shameful.
Name:
Anonymous2010-06-04 4:29
>>27 Oh, silly /prog/lodyte. Why must you project your inadequacy onto others?
That's what you're doing
Now it seems they let in the average five-year-old like myself who believes that answers only come from some mystical place beyond the stars.
fixed.
If you don't know how to do something, you can just say so.
Acting like you do so you can feel better about yourself is just immature.
>>23
I just took the time to actually read about OP's problem and I realize that it's a trivially simple case of enabling one option. Cheers. >>24,26
This only works in cartoons, silly.
Name:
Anonymous2010-06-04 4:50
>>29 >>27
samefag, also see If you don't know how to do something, you can just say so. Acting like you do so you can feel better about yourself is just immature.
Name:
Anonymous2010-06-04 5:04
knowledge/ignorance is not the same as intellect
The reason good programmers are dwindling in numbers is because nobody bothers to actually teach anybody anything.
There are plenty of people who could become good programmers if the knowledge were actually available to them.
>>31
Right. Blame teachers, as opposed to the laziness of students who don't want to think for themselves but expect everything to be handed to them on a silver platter.
Name:
Anonymous2010-06-04 5:24
>>32 Right. Blame teachers
Would you understand Relativity if nobody ever explained it or wrote much about it?
>>33
I read Einstein's On Relativity and understood it. I'm sorry if you need someone to give you Head First Relativity and hold your hand through a four-semester course on enterprise relativity theory.
Your analogy is broken, anyway, because the documentation is there and it's great.
Name:
Anonymous2010-06-04 6:09
>>36 I read Einstein's On Relativity
Now suppose he only wrote a fraction of the information that's in it, and told everyone else "figure it out yourself"
Name:
Anonymous2010-06-04 6:14
>>35
Go read some documentation that's not very comprehensive and magically just know how to do everything including what isn't covered.