Du multiple selected directory | Unix Linux Forums | Shell Programming and Scripting

  Go Back    


Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

Du multiple selected directory

Shell Programming and Scripting


Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 03-07-2013
lxdorney lxdorney is offline
Registered User
 
Join Date: Feb 2013
Last Activity: 25 October 2013, 5:51 AM EDT
Posts: 14
Thanks: 4
Thanked 0 Times in 0 Posts
Du multiple selected directory

Hi,

is there any work around to total my selected multiple directory? ie.


Code:
directory structure:
mydir
     -dir1
           ---folder1
           ---folder2
     -dir2
           ---folder5
           ---folder6

total only 4 directory
          -folder1
          -folder2
          -folder6

thanks
Sponsored Links
    #2  
Old 03-07-2013
ctsgnb ctsgnb is offline Forum Advisor  
Registered User
 
Join Date: Oct 2010
Last Activity: 28 October 2014, 9:25 AM EDT
Location: France
Posts: 2,930
Thanks: 81
Thanked 624 Times in 596 Posts

Code:
du -c folder1 folder2 folder6

Depending on your OS, check the option available


Code:
man du

Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
trying to print selected fields of selected lines by AWK ananyob Shell Programming and Scripting 3 05-05-2010 06:01 PM
concatenating selected lines of multiple files laiko Shell Programming and Scripting 4 10-30-2009 01:06 PM
[help]Delete or replace text in multiple file and multiple directory dzufauzan Shell Programming and Scripting 16 06-05-2009 12:07 PM
Find & Copy Selected files to another Directory hellfyre UNIX for Dummies Questions & Answers 3 04-07-2009 10:46 PM
Running a command on multiple selected files in nautilus script Nickbowlingdude Shell Programming and Scripting 2 02-08-2009 11:21 PM



All times are GMT -4. The time now is 08:12 AM.