find duplicate entry in a list in bash with sed

2010-06-25 1 min read bash Fedora Learning
Here I will take an example of rss2email list, but I guess I will be able to pass on the concept. Here is example of the output of the r2e list command: 1: http://blog.amit-agarwal.co.in/feed (default: amitag@localhost) 2: http://feeds2.feedburner.com/AllAboutLinux (default: amitag@localhost) 3: http://feeds2.feedburner.com/Command-line-fu (default: amitag@localhost) 4: http://blogs.members.freewebs.com/Members/Blogs/viewBlogRSS.jsp?userid=29731143 (default: amitag@localhost) Target here is to get the list of all duplicate entries if any. So, first we need to remove the numbers from the begining and the email ID from the end. Continue reading

A Unix/Linux cheatsheet complete in most respects.

2010-06-25 1 min read Linux
Find <a href="http://cb.vu/unixtoolbox.xhtml" target="_blank">here. This is a very nice tutorial all in one page and browsable. It covers : 1. System 2. Processes 3. File System 4. Network 5. SSH SCP 6. VPN with SSH 7. RSYNC 8. SUDO 9. Encrypt Files 10. Encrypt Partitions 11. SSL Certificates 12. CVS 13. SVN 14. Useful Commands 15. Install Software 16. Convert Media 17. Printing 18. Databases 19. Disk Quota 20. Shells Continue reading

remove/replace text/path in config file.

2010-06-25 1 min read bash
Lot of times I end up changing a particular text in config file to some other text. And when I have to do it for multiple files, all files having the text in multiple places, I end up opening the files in vim and then doing a globlal replace. But this is not efficient so I cam up with some one liners to do this for me. For removing any occurance of text in all files in the directory : Continue reading

2010-06-25 4 min read Linux
Note: I am using this and definately this is a big improvement over the previous versions. Here is the blog from gnome blog: After more than a year of heavy development, <a class="zem_slink freebase/en/networkmanager" title="NetworkManager" rel="homepage" href="http://www.gnome.org/projects/NetworkManager">NetworkManager 0.8 was unleashed on the world a few weeks ago. While we obviously couldn’t make everyone happy just yet, this release includes a ton of great stuff. Much of it is under the hood, so while it won’t dazzle you in a blinding flash of light, it should still make your head explode. Continue reading
Older posts Newer posts