ASKER
ASKER
find /u0? -type f | grep "/${var}/.*\.txt$" | xargs ls -s | awk '{c+=$1};END { print c }'
To get this into a variable, use
totsize=$(find /u0? -type f | grep "/${var}/.*\.txt$" | xargs ls -s | awk '{c+=$1};END { print c }')
ASKER
ASKER
$ du -ch `find /v* -maxdepth 2 -type d -name \*sa\*` | tail
4,0K /var/log/boot-sav/log/2013-06-21__14h13boot-repair20/sdb1
4,0K /var/log/boot-sav/log/2013-06-21__14h13boot-repair20/sda5
1,1M /var/log/boot-sav/log/2013-06-21__14h13boot-repair20/sda
4,0K /var/log/boot-sav/log/2013-06-21__14h13boot-repair20/sda1
4,0K /var/log/boot-sav/log/2013-06-21__14h13boot-repair20/sda2
1,2M /var/log/boot-sav/log/2013-06-21__14h13boot-repair20
7,1M /var/log/boot-sav/log
7,1M /var/log/boot-sav
4,0K /var/log/samba
7,2M total
du -ch `find /u[0-9] -maxdepth 4 -type d -name sample` | cut -d \ -f 1
ASKER
ASKER
find /u01 /u02 /u10 /u40 /u80 -type f | grep "/${var}/.*\.txt$" | xargs ls -s | awk '{c+=$1};END { print c }'
If that returns the same "find" error, check that each disk can be read by running:Unix is a multitasking, multi-user computer operating system originally developed in 1969 at Bell Labs. Today, it is a modern OS with many commercial flavors and licensees, including FreeBSD, Hewlett-Packard’s UX, IBM AIX and Apple Mac OS-X. Apart from its command-line interface, most UNIX variations support the standardized X Window System for GUIs, with the exception of the Mac OS, which uses a proprietary system.
TRUSTED BY