Search Results

Search: Posts Made By: peterl
6,878
Posted By peterl
THANKS: Solved
Thanks. So I see one way to do it would be to enter a line of:
.x
and then substitute the x for nothing, leaving just the dot.
Thanks for your help
Peter
1,739
Posted By peterl
Answer: use egrep
1. Lines containing '@' within
This is easy if you use egrep:

$ cat file.txt | egrep '@.+'

2. Lines missing '@' at the end of line
Use -v to get those lines that don't match:

$ cat...
6,878
Posted By peterl
What I've tried
Here's my entries:

$ ed
a
. enter a line of just a dot
But it doesn't enter a line with a dot, it leaves
insert mode...
1,739
Posted By peterl
Unclear - please give more info
Hi
I'm not quite clear on your post.
Are all lines terminated with an @?
What do you mean 'in between the line'?
Can you give (an abbreviated) example of what you are trying to do?
Peter
6,878
Posted By peterl
Simple ed questions - insert line with dot
Hi
I've got a trivial question on using ed (yes, I know, other editors are better!)
How do I insert a line that is just a single dot? (That is, how do I insert a line that starts with a dot and...
Showing results 1 to 5 of 5

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