Or:<br><br>ls -l | awk -F. '{print $NF}' | sort -u<br><br>if you have more than one '.' in some files.<br><br><div><span class="gmail_quote">On 3/8/07, <b class="gmail_sendername">Daniel Juliano</b> <<a href="mailto:dan@danandlaurajuliano.com">
dan@danandlaurajuliano.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">So, how would I get a list of file types for all files in a directory?
<br>Let's say I've got the following:<br>test1.txt<br>test2.txt<br>test3.jpg<br><br>I'd like something similar to:<br>.txt<br>.jpg<br><br>Any ideas?<br><br><br>_______________________________________________<br>
Cialug mailing list<br><a href="mailto:Cialug@cialug.org">Cialug@cialug.org</a><br><a href="http://cialug.org/mailman/listinfo/cialug">http://cialug.org/mailman/listinfo/cialug</a><br></blockquote></div><br>