November 2008
Intermediate to advanced
208 pages
4h 32m
English
Symlinks, or symbolic links, are awesome for a lot of reasons: They simplify obnoxiously long path names; you can put them anywhere you like; you can call them whatever you want; and they are generally transparent to the user. While symlinks can do magical things, they really suck when they become orphans (that is, no longer point to a valid target). So, in an effort to uphold the symlink reputation, I wrote this script to clean up after myself … and others. It's a housekeeping script.
#!/usr/bin/rubyunless File.directory?(ARGV[0]) puts "Not a valid directory...\nCheck path and try ...
Read now
Unlock full access