Search Results

Search: Posts Made By: str8danked
2,816
Posted By str8danked
Thank you radoulov The second method is a...
Thank you radoulov

The second method is a little more intutitive . . . Is there a way to execute the expression without the -n option?

Thanks again
2,816
Posted By str8danked
Thank you for the reply.. However I have to do...
Thank you for the reply..
However I have to do the following using egrep.

I tried translating what you gave using -r:
sed -r 's/^([A-Z][A-Z])[A-Z].*/\1/g' temp.txt

Updated temp.txt:...
2,816
Posted By str8danked
sed to extract first two uppercase chars in targeted lines
Hello,

I have a file temp.txt:
-------------------------
HELLO WORLD
This is a temp file.
TENCHARSHEre
no beginning UPPERCHARS
HI There
-------------------------

What is a sed egrep...
Showing results 1 to 3 of 3

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