M
martin
Hi, I am trying to traverse a directory tree and to see if there are
any symbolic links present. if that is true, then I would like to print
a message to that effect.
I would like to use "ls -lR" for recursive search (as opposed to perl's
find) and then pipe the resutls into awk and search for "-lr" or "-l-"
occurences at the beginning of the ls lisitng provided
i.e. all symbolic link lines.
I am not an expert in any of these, so any help appreciated
This is the beginning
my $command = "ls -lR | awk /^-l[-r]/ | wc"
and then something like system($command).
Is there a better approach to this.
Not sure if I am on the right track. Thanks.
Martin
any symbolic links present. if that is true, then I would like to print
a message to that effect.
I would like to use "ls -lR" for recursive search (as opposed to perl's
find) and then pipe the resutls into awk and search for "-lr" or "-l-"
occurences at the beginning of the ls lisitng provided
i.e. all symbolic link lines.
I am not an expert in any of these, so any help appreciated
This is the beginning
my $command = "ls -lR | awk /^-l[-r]/ | wc"
and then something like system($command).
Is there a better approach to this.
Not sure if I am on the right track. Thanks.
Martin