Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

how to find the number of files in a directory linux

		#Find all File's name that starts with chapter-CHAPTER in a Directory 
		count=$(echo $PATH |ls | grep '^moby-CHAPTER' | wc -l)
		echo $count chapters
Source by unix.stackexchange.com #
 
PREVIOUS NEXT
Tagged: #find #number #files #directory #linux
ADD COMMENT
Topic
Name
3+1 =