Linux-Bulgaria.ORG
навигация

 

начало

пощенски списък

архив на групата

семинари ...

документи

как да ...

 

 

Предишно писмо Следващо писмо Предишно по тема Следващо по тема По Дата По тема (thread)

Re: lug-bg: Преименуване на файлове


  • Subject: Re: lug-bg: Преименуване на файлове
  • From: "Doncho N. Gunchev" <mr700@xxxxxxxxxxxx>
  • Date: Sat, 17 Jan 2004 00:38:49 +0200
  • Organization: GlobalNet

On Thursday 15 January 2004 13:15, Kamen TOMOV wrote:
> On Thu, Jan 15, 2004 at 12:40:29PM +0200, Georgi Chorbadzhiyski wrote:
> > for i ala-bala* ; do mv "$i" "`echo $i | sed -e 's/protokala//'"; done;
>
> for i in * ; do mv "$i" `echo $i | sed -e 's/portokala.//'`; done;

samo bih iskal da wmykna za "gadni" imena ot sorta na "fail  s    mnogo interwali  ";

da widim kakwo stawa taka:
| for i in test "test 1" "1 2 3" "1  2  3  tT" "fail  s    mnogo interwali  "; do
| 	echo -n "[$i] "
| 	j=`echo $i | sed -e 's/t/T/'`
| 	echo "[$j]"
| done
| [test] [Test]
| [test 1] [Test 1]
| [1 2 3] [1 2 3]
| [1  2  3  tT] [1 2 3 TT]
Problema e tuk -----^
| [fail  s    mnogo interwali  ] [fail s mnogo inTerwali]
i tuk ---------------------------------------^

ako 'echo $i' i '$i' ima nqkyde poweche ot 1 interwal ili neshtho zamotano...
mnogoto interwali se okazwat 1. Za da se izbegne towa trqbwa da se ogradi
'$i'-to s dwoini kawichki:
| for i in test "test 1" "1 2 3" "1  2  3  tT" "fail  s    mnogo interwali  "; do
| 	echo -n "[$i] "
| 	j=`echo "$i" | sed -e 's/t/T/'`
   tuk ---------^--^
| 	echo "[$j]"
| done
| [test] [Test]
| [test 1] [Test 1]
| [1 2 3] [1 2 3]
| [1  2  3  tT] [1  2  3  TT]
korektno ------------^
| [fail  s    mnogo interwali  ] [fail  s    mnogo inTerwali  ]

abe s 2 dumi iskah da kaja che $i-to trqbwa da e s dwoini kawichki ama na,
to izleze 2 stranici pismo... mai mnogo se otplesnah... (ako ne sym dostatychno
moga i oshte ;P~)

... s nadejda da sym bil polezen ...

-- 
Regards,
  Doncho N. Gunchev


============================================================================
A mail-list of Linux Users Group - Bulgaria (bulgarian linuxers).
http://www.linux-bulgaria.org - Hosted by Internet Group Ltd. - Stara Zagora
To unsubscribe: http://www.linux-bulgaria.org/public/mail_list.html
============================================================================



 

наши приятели

 

линукс за българи
http://linux-bg.org

FSA-BG
http://fsa-bg.org

OpenFest
http://openfest.org

FreeBSD BG
http://bg-freebsd.org

KDE-BG
http://kde.fsa-bg.org/

Gnome-BG
http://gnome.cult.bg/

проект OpenFMI
http://openfmi.net

NetField Forum
http://netField.ludost.net/forum/

 

 

Linux-Bulgaria.ORG

Mailing list messages are © Copyright their authors.