NYELVÉSZ

Nyelvészeti vitafórum
It is currently 2024. March 19, Tuesday, 5:06

All times are UTC + 1 hour




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Re: bash
PostPosted: 2009. February 12, Thursday, 21:25 
Offline

Joined: 2004. November 10, Wednesday, 18:20
Posts: 2183
Grazias.


Top
 Profile  
 
 Post subject: Re: bash
PostPosted: 2009. February 12, Thursday, 19:22 
Offline

Joined: 2004. November 11, Thursday, 16:50
Posts: 80
Code:
ls -- *.flv


A -- a legtöbb programban az opciók lezárásaként működik (a GNU toolokban mindenképp).


Top
 Profile  
 
 Post subject: bash
PostPosted: 2009. February 12, Thursday, 17:16 
Offline

Joined: 2004. November 10, Wednesday, 18:20
Posts: 2183
Nincs időm/lusta vagyok kitalálni:

Ezt akarom írni:
Code:
for file in $(ls *.flv)
de van olyan file, ami kötőjellel kezdődik, ezért az ls sír, hogy nincs ilyan option hogy. Ha idézőjelbe teszem, akkor meg nem meccsol a csillag. Mit kell ilyenkor csinálni?

[Végülis megoldottam így:
Code:
for file in $(ls | grep flv$)
de biztos van az eredetire is megoldás...]


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron

Figyelem!
A faliújságon megjelentek nem képviselik többek közt a következő szervezetek hivatalos véleményét:
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group