Re: sed "Hello, world!" program?

<[email protected]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.