Re: sed - output lines with one word
Paolo Bonzini <[email protected]>
| Newsgroups | gmane.comp.gnu.utils.bugs |
|---|---|
| Message-ID | <[email protected]> |
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