Note: in a directory (/usr/local/src) there is a file with a space in it.[swank@licious src]$ ls -l /usr/local/srctotal 1748drwxrwxrwx 11 1000 users 4096 Feb 11 19:10 samhain-2.4.3-rw-r--r-- 1 1000 users 1760941 Jan 31 13:40 samhain-2.4.3.tar.gz-rw-r--r-- 1 1000 users 191 Jan 31 13:41 samhain-2.4.3.tar.gz.asc-rw-r--r-- 1 root root 0 Feb 11 20:45 some fileWrite a small script on the command line to use debugfs to list files in a directory (with some formating):[swank@licious src]$ DIRECTORY=/usr/local/src[swank@licious src]$ FILES_ON_DISK=( $( debugfs /dev/DiskMirror/Host-Running -R "ls -l $DIRECTORY" 2>/dev/null | awk -F: '{ print $2 }' | cut -b4- | grep -v '^.$' | grep -v '^..$' | grep -v '^$' ) )[swank@licious src]$ echo ${#FILES_ON_DISK[@]}4It outputs 4!!Take that small script and place it in a script named check.sh[swank@licious src]$ cat /root/check.sh#!/bin/bashDIRECTORY=/usr/local/srcFILES_ON_DISK=( $( debugfs /dev/DiskMirror/Host-Running -R "ls -l $DIRECTORY" 2>/dev/null | awk -F: '{ print $2 }' | cut -b4- | grep -v '^.$' | grep -v '^..$' | grep -v '^$' ) )echo ${#FILES_ON_DISK[@]}[swank@licious src]$ sh /root/check.sh5It outputs 5!!