(1) If you open vi in gnome-terminal then you can select text(using mouse) & right click to get copy option or use ctrl+shift+c . Now you can paste it in any application as content is in clipboard.
(2) In xterm you can select using mouse then it gets into selection buffer . Content can be pasted into other application ( like gedit ) using middle click.
(3)To sort line 2 to 10 run
Remove duplicate line in whole file
Last edited by sumeet inani; 05-06-2010 at 04:20 AM.
Reason: questions in another thread