Jun 14, 2001 #1 teser Technical User Mar 6, 2001 194 US I can do a count of files in a directory (including subdirectories) such as: find . -name '*.html' -print | wc -l How would I list each file (all files with *.html extensions) in the directory (including all the subdirectories)?
I can do a count of files in a directory (including subdirectories) such as: find . -name '*.html' -print | wc -l How would I list each file (all files with *.html extensions) in the directory (including all the subdirectories)?
Jun 14, 2001 #2 grega Programmer Feb 2, 2000 932 GB You would use find . -name '*.html' -exec ls -l {} \; Greg. Upvote 0 Downvote
Jun 14, 2001 1 Thread starter #3 teser Technical User Mar 6, 2001 194 US Thanks Greg for quick response. Is there a way to make the listing show 3 columns?? I have 2700 files and want to save paper. Upvote 0 Downvote
Thanks Greg for quick response. Is there a way to make the listing show 3 columns?? I have 2700 files and want to save paper.
Aug 3, 2001 #4 loclong Technical User Aug 3, 2001 7 CA Is there anyway to do wildcard listing of files in FTP ? I would like to list files with only certain extension. Thnks Loc Long Upvote 0 Downvote
Is there anyway to do wildcard listing of files in FTP ? I would like to list files with only certain extension. Thnks Loc Long
Aug 3, 2001 #5 grega Programmer Feb 2, 2000 932 GB Have you even tried? To list files with .html extension within ftp, do ls *.html Greg. Upvote 0 Downvote
Aug 8, 2001 #6 toolkit Programmer Aug 5, 2001 771 GB I can't check to make sure at the moment, but I think the following command should provide you with the three files per line you require: Code: find . -name "*.html" -print | xargs -n3 echo Hope this helps Cheers, NEIL Upvote 0 Downvote
I can't check to make sure at the moment, but I think the following command should provide you with the three files per line you require: Code: find . -name "*.html" -print | xargs -n3 echo Hope this helps Cheers, NEIL