Cynosure.X International LLC

: :

Add Comment | Related Links | TrackBack
Related Content

Is Symbolic Link In Path (GPL)

IsSymbolicLinkInPath.bash is a Bourne-again shell script that accepts path on its command-line argument and tells you whether there is a symbolic link anywhere in the path. This script returns the value '1' when it finds one or more links in the path. It returns the value '0' when no links are found.

Normally, the shell's "test -L" is sufficient for detecting symbolic link. However, the "test -L" only works on symbolic files. If the path is a directory or a real file that contains the symbolic link in its path, then "test -L" will fail to make that detection. This IsSymbolicLinkInPath.bash script is a gap-filler for this deficiency.

IsSymbolicLinkInPath.bash is distributed as executable source code under the GNU General Public License. Please see the license agreement elsewhere on this site.

Usage

"IsSymbolicLinkInPath.bash" "path"

Attached File: IsSymbolicLinkInPath.bash (690 B)

Chieh Cheng
Fri, 29 Mar 2013 02:11:02 +0300

Add Comment | Related Links | TrackBack
Related Content

Did your message disappear? Read the Forums FAQ.

TrackBack

TrackBack only accepted from WebSite-X Suite web sites. Do not submit TrackBacks from other sites.

Send Ping | TrackBack URL | Spam Control

Title: DereferenceSymbolicLink.sh (GPL)
Weblog: Cynosure.X International
Excerpt: DereferenceSymbolicLink.sh is a Bourne shell script that accepts a symbolic link path name and returns the actual path that is referenced by the link. DereferenceSymbolicLink.sh is distributed as executable source code under the GNU General Public License. Please see the license agreement elsewhere . . .
Tracked: Fri, 29 Mar 2013 02:17:16 +0300

Add Comment

Spam Control | * indicates required field
Your Name: *
E-mail:
Remember Me!
Comment: *
File attachment is optional. Please do not attach a file to your submission unless it is relevent.
Attach File:
(20 MB Max)
Spam Protection: * Answer of 10 + 8?
Click button only once, please!

Messages, files, and images copyright by respective owners.

Products | Services
Forums | Latest | RSS
Library | Search | Wiki
Help | Licenses

Login | Register

87 Users Online

Hacking Digital Cameras
Fun for Photographers


Get Our

Memecoins!



Amazon Associate

Copyright © 1996 - 2024. All Rights Reserved.