[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: teste om fil er symlink



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

> Findes der en nem og sikker måde at afgøre på om en fil er et symlink,
> egnet for scripting?
> 
> Jeg kan hacke mig frem til:
> 
> $ stat --format=%F maybesymlink.c | grep -c symbolic
> 
> men er dette sikkert?
> Andre bud?

ls -la giver dig en linie ala:
lrwxrwxrwx   1 madsj users      10 2006-04-19 17:22 link -> lppl13.txt

l = link, men er der andre typer for links end symlinks ? Hvis ikke, så
er det da en mere tilgængelig måde end den, du nævner.

mvh.
Mads
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)

iD8DBQFERlZ0POK1Nn53W9oRAoPUAJ0W5mC9Ho81ozYHi5m7oQLj0MFeWgCfTFax
0bFVwx3AW2MxssHIQT5EYUk=
=xlcc
-----END PGP SIGNATURE-----


 
Home   Subscribe   Mail Archive   Index   Calendar   Search

 
 
Questions about the web-pages to <www_admin>. Last modified 2006-05-01, 02:02 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] *