shell-script-pt
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [shell-script] Recuperar o link de um arquivo


From: moysespr
Subject: Re: [shell-script] Recuperar o link de um arquivo
Date: Thu, 13 Nov 2003 20:17:07 -0800 (PST)

Sem olhar "man ls":

ls -la|grep ^l|cut -d'>' -f 2

Sem o cut só vem os links e com ele apenas os alvos dos links.

No resultado há um espaço em branco no inicio da linha que talvez
tenha de ser tratado.



--- dr_maluko <address@hidden> wrote:
> 
> 
> Quando realizo o comando "ls -la" ele me lista os seguintes dados:
> 
> "lrwxrwxrwx    1 root     root           32 Set 21  2002 startkylix
> ->
> /usr/local/kylix3/bin/startkylix"
> 
> Tem algum comando que pegue apenas o endereço do link, que no caso
> seria "/usr/local/kylix3/bin/startkylix"?
> 
> Obrigado.
> 
> 


__________________________________
Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard
http://antispam.yahoo.com/whatsnewfree


reply via email to

[Prev in Thread] Current Thread [Next in Thread]