[LUGOS] presledek -> _

Bostjan Tursic seznami at tursic.org
Thu Apr 28 12:24:59 CEST 2005


Sam sebi odgovarjam: Verjetno ni najbolj elegantno ampak dela ;)

for file in *.jpg; do
    X=$(echo $file | sed -e 's/ /_/')
mv "$file" $X


Bostjan
  ----- Original Message ----- 
  From: Bostjan Tursic 
  To: lugos-list at lugos.si 
  Sent: Thursday, April 28, 2005 11:53 AM
  Subject: [LUGOS] presledek -> _



  Kako naj zamenjam presledek v imenu fajla za _ ? 
  (za 100 fajlov v direktoriju, se pravi for file in ...)

  lp
  Bostjan



------------------------------------------------------------------------------


  _______________________________________________
  lugos-list mailing list
  lugos-list at lugos.si
  http://liste2.lugos.si/cgi-bin/mailman/listinfo/lugos-list
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://liste2.lugos.si/pipermail/lugos-list/attachments/20050428/948094fd/attachment.html


More information about the lugos-list mailing list