Re: sed - output lines with one word
Andreas Schwab <[email protected]>
| Newsgroups | gmane.comp.gnu.utils.bugs |
|---|---|
| Message-ID | <[email protected]> |
Josh McFarlane <[email protected]> writes: > Using the following command: > $sed -n -r '/^\s*[^\s]+\s*$/p' test.txt [^\s] matches any character except \ and s. Andreas. -- Andreas Schwab, [email protected] GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."