Personal tools
You are here: Home Komande basename
yourip - portlet

ne m$-vom standardu
Scriptum Libre
Kernel.org
Poslednja 2.6 verzija
2.6.26.5

Poslednja 2.4 verzija
2.4.36.7
Sponzori
open document format
Linux Sigurnost
Debian security

Gentoo security

Mandriva security

Red Hat security

Slackware security

Suse security

Ubuntu security

Log in


Forgot your password?
New user?
prijatelji LUGoNS-a
 
Document Actions

basename

by milobit last modified 2007-09-06 15:22
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

Powered by Plone CMS, the Open Source Content Management System

This site conforms to the following standards: