Log in


Forgot your password?
prijatelji LUGoNSa
gnu.gif
linuxzasve.jpg
hulk.jpg
zextras_logo.png
 
You are here: Home / Komande / basename

basename

by milobit last modified Sep 06, 2007 03:22 PM
Ispisuje ime datoteke bez njene kompletne putanje.


Sintaksa:

basename Ime [Sufiks]


Opis:

Ova komanda odseca apsolutnu putanju datoteke i ispisuje samo njeno ime. Ako se opcionalno posle imena datoteke napiše i ekstenzija (Sufiks) i ona ce biti odsečena i neći biti ispisana. basename komanda se koristi u Shell programiranju.




Primer:

$ basename /home/milos/test.txt
$ test.txt


... ili sa sufiks opcijom

$ basename /home/milos/test.txt .txt
$ test


Pogledaj:

dirname


Autor:

Free Software Foundation

Document Actions

Filed under: