Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.
#!/bin/tcsh ... echo "Enter Directory Name:" set mydir = $< echo "Calculating the total of the size of all files in the directory tree" echo "" set mysum = 0 #variable to hold sum set filelist = $mydir set mycursize = 0 #variable to hold current filesize echo $filelist foreach x ($filelist) @ mycursize = `stat -c%s $x` #finds current filesize echo "size of $x is $mycursize" @ mysum = $mysum + $mycursize #accumulator end echo "The sum of the size of all files in this directory is: $mysum" ...
Join the community of 500,000 technology professionals and ask your questions.
Connect with top rated Experts
6 Experts available now in Live!