Memming's Inconsistency
Nothing Personal, Yet Subjective
Blog | Guestbook
Keyword | Local | Tag
T 25 / Y 78 / Total 54291
Catergories
Calendar
«   2009/08   »
Sun Mon Tue Wed Thu Fri Sat
            1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31          
Tag
tip, MATLAB, vim, LaTeX, mathematics, Google, Tips, 촛불집회, derivative, conference wsom, theorem, CNEL, correlogram, ocw, equation search engine, algorithm, synchrony, spike train, coupled oscillator, javascript,
Archive
Link
Search
  submit
Recent Articles
Recent Comments
Recent Trackbacks
해당되는 게시물 2건
 Prev   1   Next 
2009/08/13 11:26
Operation on multiple files using sed and sh
2009/08/13 11:26 2009/08/13 11:26
This is a versatile and generic method worth memorizing.

ls -d *.JPG | sed -s 's/\(.*\).JPG$/mv"&" "\1.jpg"/'

and when you want to execute it put a pipe to 'sh'

ls -d *.JPG | sed -s 's/\(.*\).JPG$/mv"&" "\1.jpg"/' | sh
2009/08/05 14:48
Back to the source
2009/08/05 14:48 2009/08/05 14:48
I'm always late on these things, but I still write the first post of 2009 with something I support.
User image
It's just like wikipedia's {{cite}} tag. As in this xkcd comic
User image
 Prev   1   Next 
memming’s Blog is powered by Tattertools.com / Designed by faido