Unix C++
Would you like to react to this message? Create an account in a few clicks or log in to continue.

What s d diff between 'sed' and 'tr' command??

3 posters

Go down

What s d diff between 'sed' and 'tr' command?? Empty What s d diff between 'sed' and 'tr' command??

Post by Preethi Thu Mar 04, 2010 6:28 pm

Both 'sed' and 'tr' command transforms or replaces text right...though 'sed' s for stream editing i m not able to understand the difference...
can someone explain with an example??

Preethi

Posts : 10
Points : 8
Join date : 2010-02-26

Back to top Go down

What s d diff between 'sed' and 'tr' command?? Empty Re: What s d diff between 'sed' and 'tr' command??

Post by Christopher Thu Mar 04, 2010 6:38 pm

'tr' is specially for substitution and deletion of specified characters. 'sed' can be used for lot of things. 'sed' is called stream editor.
Christopher
Christopher
Admin

Posts : 240
Points : 429
Join date : 2010-02-26
Age : 35

https://unixcpp.forumotion.com

Back to top Go down

What s d diff between 'sed' and 'tr' command?? Empty Re: What s d diff between 'sed' and 'tr' command??

Post by Maithreyi Thu Mar 04, 2010 6:41 pm

sed,tr,awk,grep are all filters in Unix.tr is a simple filter when compared to sed.sed and awk are very powerful when compared to tr.Not just replacement, sed and awk provide other functions as well.This is my limited knowledge.

Maithreyi

Posts : 76
Points : 142
Join date : 2010-03-03
Age : 36
Location : Haldia

Back to top Go down

What s d diff between 'sed' and 'tr' command?? Empty Re: What s d diff between 'sed' and 'tr' command??

Post by Preethi Thu Mar 04, 2010 6:55 pm

thanks...

Preethi

Posts : 10
Points : 8
Join date : 2010-02-26

Back to top Go down

What s d diff between 'sed' and 'tr' command?? Empty Re: What s d diff between 'sed' and 'tr' command??

Post by Sponsored content


Sponsored content


Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum