Search Results

Search: Posts Made By: estebandido
9,770
Posted By estebandido
Sure enough, it did! I wasn't posting from the...
Sure enough, it did! I wasn't posting from the same computer where I was working on the script, and it didn't seem possible it could be that simple.

Thanks!

---------- Post updated at 06:20 PM...
9,770
Posted By estebandido
use input filename as an argument to name output file
I know this is a simple matter, but I'm new to this.

I have a shell script that calls a sed script from within it. I want the output of the shell script to be based on the input file I pass as an...
2,624
Posted By estebandido
If my code was worth showing, I would. :)...
If my code was worth showing, I would. :) Seriously, I did last time I asked a question.

I'm not sure I'm doing this right. In vim on Ubuntu, I'm able to insert the Ctrl-J, which looks like ^@,...
2,624
Posted By estebandido
sed: break before word if it's not last on the line
I've been trying this, and can't get it right. I want to put a line break before a word, but only if it's *not* the last word in the line. So if the break work was "fish," then...

We want to fish...
7,123
Posted By estebandido
Ah.... I wondered how it cut so many lines. It...
Ah.... I wondered how it cut so many lines. It worked for the cases I looked for, but I should have looked closer.

No, that won't do at all. I need to inspect each line, and compare it to the...
7,123
Posted By estebandido
This is perfect. Thanks!
This is perfect. Thanks!
7,123
Posted By estebandido
sed to replace two lines with one
I want to use sed to check if a short line is contained in the line after it, and if it is, to delete the short one. In other words, the input is...

This is a
This is a line

... and I want it...
Showing results 1 to 7 of 7

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