| Newsgroups |
gmane.editors.sed.user |
| Message-ID |
<[email protected]> |
s/.*/Hello, world!/
q
At first let me state that I'm not technically involved in the usage of sed nor do I really understand its syntax programmatically. But I'm a really advanced user in cmd.exe and batch file "programming".
Testing the suggested command line syntax on win7 and win8 environment using cmd.exe leads to an ..."unterminated 's' command" caused by a space at RRE and missing doublequotes.
Based on the suggested syntax this is the one working for me:
sed "s/.*/Hello, world!/;q"
Or without quoting (removing spaces): sed s/.*/Hello,World!/;q
...just a throw-in of a simple user of sed
Zharif