Quantcast
Channel: List direct symbolic links (links that don't point to another symlink) - Unix & Linux Stack Exchange
Browsing all 3 articles
Browse latest View live

Answer by iRomul for List direct symbolic links (links that don't point to...

In addition to solutions using Perl I decided to try to implement my own mini version readlink using readlink syscall. The source code of the utility using is very simple and looks like this:...

View Article



Answer by roaima for List direct symbolic links (links that don't point to...

I can provide you with a perl snippet to do this for you: #!/usr/bin/perl # foreach my $i (@ARGV) { # If it is a symlink then... -l $i and do { # First indirection; ensure that it exists and is not a...

View Article

List direct symbolic links (links that don't point to another symlink)

I need to make a list of all direct symbolic links in a directory, i.e. symbolic links that point to another file which is not a symbolic link. I tried to do it this way: for i in $(ls -1A); do...

View Article
Browsing all 3 articles
Browse latest View live




Latest Images