Matthew Rosewarne on 5 Nov 2007 23:39:12 -0000


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: [PLUG] Ubuntu (& Debian & Linux) rule


On Monday 05 November 2007, JP Vossen wrote:
> The second was the ability to read and write the clipboard from the
> command line for use with things like grep | cut | sort -u [1].
> 	$ apt-cache search clipboard
> 	$ apt-cache show xclip
> 	$ sudo aptitude install xclip
> Done!

There's also xsel, which does much the same thing. The fish shell (not 
shellfish) uses it to implement cut/copy/paste in the console.

> Oh yeah, then I had to rename 100+ files.  On Windows I'd use Excel to
> write a batch file to do it (unless the data was saved on my Samba
> server, which it usually is).  On Linux, this trivially did the trick:
> 	$ for i in ?.MPG;  do mv $i "00$i"; done
> 	$ for i in ??.MPG; do mv $i "0$i"; done

You might want to check out mmv, renameutls, and/or krename.

Attachment: signature.asc
Description: This is a digitally signed message part.

___________________________________________________________________________
Philadelphia Linux Users Group         --        http://www.phillylinux.org
Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce
General Discussion  --   http://lists.phillylinux.org/mailman/listinfo/plug