[an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive]
 
[an error occurred while processing this directive] [an error occurred while processing this directive]
Skåne Sjælland Linux User Group - http://www.sslug.dk Home   Subscribe   Mail Archive   Forum   Calendar   Search
MhonArc Date: [Date Prev] [Date Index] [Date Next]   Thread: [Date Prev] [Thread Index] [Date Next]   MhonArc
 

Re: [TEKNIK] Fuld sti med ls - Hvordan?



On Mon, 07 Feb 2005 11:15:04 +0100, Hasse Hagen Johansen <sslug@sslug> wrote:

...
Det bare ikke ls der så viser stien, men din shell ;-)

Det er muligt. Men output er det ønskede :D
Hmmm... Er du egentlig sikker på at det ikke er ls?
Fordi ls returnerer faktisk med sti så langt tilbage mod / som man "spørger" med.
f.eks.:
sslug@sslug gren3.1]$ ls -1 ../gren3.2/sti/til/subdir/*
gren2/gren3.2/sti/til/subdir/fil_1
gren2/gren3.2/sti/til/subdir/fil_2
gren2/gren3.2/sti/til/subdir/fil_3
gren2/gren3.2/sti/til/subdir/fil_4


sslug@sslug gren3.1]$



$PWD er da en shell variabel for current directory så vidt jeg har forstået?
Korrekt, men den bliver, i eksemplet, kun brugt som input til ls.
Men jeg har af andre nu fået forklaret at det _ER_ min shell der leverer stien til de enkelte filer.
-Så du har også ret ;)



--


Med venlig hilsen
/Zmit/
RLU # 314205


 
Home   Subscribe   Mail Archive   Index   Calendar   Search

 
 
Questions about the web-pages to <www_admin>. Last modified 2005-08-10, 22:27 CEST [an error occurred while processing this directive]
This page is maintained by [an error occurred while processing this directive]MHonArc [an error occurred while processing this directive] # [an error occurred while processing this directive] *