bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: sed - output lines with one word


From: Paolo Bonzini
Subject: Re: sed - output lines with one word
Date: Wed, 13 Jun 2012 09:55:25 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:13.0) Gecko/20120605 Thunderbird/13.0

Il 13/06/2012 08:52, Andreas Schwab ha scritto:
>> > Using the following command:
>> > $sed -n -r '/^\s*[^\s]+\s*$/p' test.txt
> [^\s] matches any character except \ and s.

Exactly, what you want is \S.

Paolo




reply via email to

[Prev in Thread] Current Thread [Next in Thread]