[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[no subject]
- <!--x-content-type: text/plain -->
- <!--x-date: Tue Feb 15 23:28:27 2005 -->
- <!--x-from-r13: syrgpu ng culqrnhk.bet (syrgpu ng culqrnhk.bet) -->
- <!--x-message-id: [email protected] -->
- <!--x-reference: Pine.LNX.4.44.0502152230590.2264-[email protected] --> "http://www.w3.org/TR/html4/loose.dtd">
- <!--x-subject: [ale] Bash (or whatever) question -->
- <li><em>date</em>: Tue Feb 15 23:28:27 2005</li>
- <li><em>from</em>: fletch at phydeaux.org (fletch at phydeaux.org)</li>
- <li><em>in-reply-to</em>: <[email protected]></li>
- <li><em>references</em>: <[email protected]></li>
- <li><em>subject</em>: [ale] Bash (or whatever) question</li>
lemur:~/linktest 712> ls -la
23:14:39
total 16
drwxr-xr-x 5 fletch fletch 170 15 Feb 23:13 ./
drwxr-xr-x 89 fletch fletch 3026 15 Feb 23:12 ../
lrwxr-xr-x 1 fletch fletch 10 15 Feb 23:12 bad@ -> /not/there
lrwxr-xr-x 1 fletch fletch 10 15 Feb 23:12 good@ -> /etc/hosts
-rw-r--r-- 1 fletch fletch 0 15 Feb 23:13 regular_file
lemur:~/linktest 713> perl -le 'for(grep -l, glob("*")){$l=readlink;warn
"broked: $_ => $l\n" unless -e $l}'
broked: bad => /not/there
Or . . .
ruby -le
'Dir.glob("*").select{|f|File.symlink?(f)}.each{|f|l=File.readlink(f);$stderr.print
"broked: #{f} => #{l}" if !File.exist?(l)}'
--
Fletch | "If you find my answers frightening, __`'/|
fletch at phydeaux.org| Vincent, you should cease askin' \ o.O'
| scary questions." -- Jules =(___)=
| U
</pre>
<!--X-Body-of-Message-End-->
<!--X-MsgBody-End-->
<!--X-Follow-Ups-->
<hr>
<!--X-Follow-Ups-End-->
<!--X-References-->
<ul><li><strong>References</strong>:
<ul>
<li><strong><a name="00619" href="msg00619.html">[ale] Bash (or whatever) question</a></strong>
<ul><li><em>From:</em> johnmills at speakeasy.net (John Mills)</li></ul></li>
</ul></li></ul>
<!--X-References-End-->
<!--X-BotPNI-->
<ul>
<li>Prev by Date:
<strong><a href="msg00619.html">[ale] Bash (or whatever) question</a></strong>
</li>
<li>Next by Date:
<strong><a href="msg00621.html">[ale] OT - BitTorrent</a></strong>
</li>
<li>Previous by thread:
<strong><a href="msg00619.html">[ale] Bash (or whatever) question</a></strong>
</li>
<li>Next by thread:
<strong><a href="msg00622.html">[ale] Bash (or whatever) question</a></strong>
</li>
<li>Index(es):
<ul>
<li><a href="maillist.html#00620"><strong>Date</strong></a></li>
<li><a href="threads.html#00620"><strong>Thread</strong></a></li>
</ul>
</li>
</ul>
<!--X-BotPNI-End-->
<!--X-User-Footer-->
<!--X-User-Footer-End-->
</body>
</html>