× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



$ pwd
/home/jwoehr
$ mkdir foo
$ ln -s foo foo_soft
$ echo > foo/a_file
$ ls -al foo
total 52
drwxr-xr-x 2 jwoehr 0 8192 Apr 27 13:01 .
drwx------ 16 jwoehr 0 36864 Apr 27 13:00 ..
-rw-r--r-- 1 jwoehr 0 1 Apr 27 13:01 a_file
$ ls -al foo_soft
lrwxrwxrwx 1 jwoehr 0 6 Apr 27 13:00 /home/jwoehr/foo_soft -> foo
$ ls -al foo_soft/a_file
-rw-r--r-- 1 jwoehr 0 1 Apr 27 13:01 /home/jwoehr/foo_soft/a_file
$ test -f foo/a_file; echo $?
0
$ test -f foo_soft/a_file; echo $?
0
$ test -L foo_soft/a_file; echo $?
1
$ test -L foo_soft; echo $?
0
# ###
# 0 is "truth/success# to the shell
# A shells script equivalent of test is:
# if [ -f foo/a_file ]
# then
# ...

On Wed, Apr 27, 2022 at 10:51 AM Rob Berendt <rob@xxxxxxxxx> wrote:

Can't think of one which doesn't involve recursion of the directory.



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.