Register
It is currently Tue Sep 23, 2014 8:20 am

Exotic uses for sed


All times are UTC - 6 hours


Post new topic Reply to topic  [ 2 posts ] 
Author Message
 PostPosted: Fri Jul 05, 2013 1:22 am   
User avatar

Joined: Thu Jul 04, 2013 10:15 am
Posts: 1
Location: Vyazma, Russia
Hello,
There are exotic uses for sed. Most of them are excessive but they can show its power. I think they are not only good for fun but rather for learning sed better. Consider this typewriting technique ...

Code:
sed 's/.*/Hello, world!/;q' <(yes)

I would be very grateful for any other rare examples having to do with sed.


Top
 Profile  
 PostPosted: Wed Nov 06, 2013 9:00 pm   
User avatar

Joined: Wed Jun 08, 2011 8:27 am
Posts: 189
Location: outer Shpongolia
Well, this one is pretty simple, there is nothing exotic.

Check out the official sample one-liners here, and don't forget to
try some of the wonderful scripts (tools, games) written all in sed(1)!


Top
 Profile  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: No registered users and 5 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  


BashScripts | Promote Your Page Too
Powered by phpBB © 2011 phpBB Group
© 2003 - 2011 USA LINUX USERS GROUP