Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

use sed with cygwin

Status
Not open for further replies.

Barn

Technical User
Feb 22, 2002
37
0
0
FR
Hello,

I would like to use sed with Cygwin, but it doesn't seem to work.

I parse a text file and only want the line starting with a letter, so I tried this:

$ cat testfile | sed '/^[A-Za-z]/'
sed: -e expression #1, char 11: missing command

Any ideas?

Barn.
IBM Certified -- ls command user
 
Never mind!

I forgot the "p"

$ cat testfile | sed '/^[A-Za-z]/p'

Barn.
IBM Certified -- ls command user
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top