Memming's Inconsistency
Nothing Personal, Yet Subjective
Blog | Guestbook
Keyword | Local | Tag
T 27 / Y 78 / Total 54293
Catergories
Calendar
«   2010/07   »
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
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
Trackback : http://blog.memming.com/trackback/2304415
Name   Password   Home   Secret   Submit
 Prev   1   2   3   4   5   6   7  ...  29   Next 
memming’s Blog is powered by Tattertools.com / Designed by faido