pandemkodi Posted March 12, 2012 Author Report Share Posted March 12, 2012 [quote name='Silence..Please' timestamp='1331589295' post='1301509092'] zip file lo yenni kaavaali ante .. for example abc.zip ani undhi anuko .. multiple files ni zip chesi abc.zip lo pedathaam kadha .. so aah count of files aah kaavaali antunna .. if so, naku teleedu ba .. unzip cheyyaalsindhe as far as I know alaa kadhu .. .zip tho unde extension files antaava .. du -a | grep .zip | wc -l [/quote] yaa a and b files vunnai baa daanni zip chesi x lo petta daanlo counts kaavali naaku Link to comment Share on other sites More sharing options...
Gachibowli_Diwakar Posted March 12, 2012 Report Share Posted March 12, 2012 [quote name='pandemkodi' timestamp='1331589591' post='1301509118'] yaa a and b files vunnai baa daanni zip chesi x lo petta daanlo counts kaavali naaku [/quote][color=#000000][size=2] [size=3]unzip [/size][/size][/color][size=3][color=#666600]-[/color][color=#000000]c filename[/color][color=#666600].[/color][color=#000000]ZIP [/color][color=#666600]|[/color][color=#000000] wc [/color][color=#666600]-[/color][color=#000000]l[/color][/size] [url="http://www.unixforum.co.uk/topic/33309-count-the-numebr-of-lines-in-a-zip-file-without-extracting-it/"]http://www.unixforum...-extracting-it/[/url] Link to comment Share on other sites More sharing options...
TheGuruBhai Posted March 12, 2012 Report Share Posted March 12, 2012 Calling Angrez Link to comment Share on other sites More sharing options...
pandemkodi Posted March 12, 2012 Author Report Share Posted March 12, 2012 [quote name='Silence..Please' timestamp='1331590327' post='1301509139'] [color=#000000][size=2][size=3]unzip [/size][/size][/color][size=3][color=#666600]-[/color][color=#000000]c filename[/color][color=#666600].[/color][color=#000000]ZIP [/color][color=#666600]|[/color][color=#000000] wc [/color][color=#666600]-[/color][color=#000000]l[/color][/size] [url="http://www.unixforum.co.uk/topic/33309-count-the-numebr-of-lines-in-a-zip-file-without-extracting-it/"]http://www.unixforum...-extracting-it/[/url] [/quote] yaa idi work avutondi but wrong result istondi nenu two fioles ni zip chesa 10 10 records vunnavaatini but result vachi 25 choopistondi ee command use chestey Link to comment Share on other sites More sharing options...
robo Posted March 12, 2012 Report Share Posted March 12, 2012 [left]use[/left] [left][CODE]find / -name 'abc.*' -exec stat {} \;[/CODE][/left] Link to comment Share on other sites More sharing options...
Gachibowli_Diwakar Posted March 12, 2012 Report Share Posted March 12, 2012 [quote name='ROBO' timestamp='1331591612' post='1301509198'] [left]use[/left] [left][CODE]find / -name 'abc.*' -exec stat {} \;[/CODE][/left] [/quote] find command ante adhi .. abc* files ye directory lo undho search chesthundi .. kani thana requirement adhi kadhu kadha ba Link to comment Share on other sites More sharing options...
pandemkodi Posted March 12, 2012 Author Report Share Posted March 12, 2012 [quote name='ROBO' timestamp='1331591612' post='1301509198'] [left]use[/left] [left][CODE]find / -name 'abc.*' -exec stat {} \;[/CODE][/left] [/quote] thanks baa idi em chestadi baa assalu file permissions do not allow this action antondi Link to comment Share on other sites More sharing options...
Gachibowli_Diwakar Posted March 12, 2012 Report Share Posted March 12, 2012 [quote name='pandemkodi' timestamp='1331591285' post='1301509184'] yaa idi work avutondi but wrong result istondi nenu two fioles ni zip chesa 10 10 records vunnavaatini but result vachi 25 choopistondi ee command use chestey [/quote]google chesthe adhe ochindhi ba .. unzip -c ( c for count ) may be oka fixed no.of count ni ignore cheyyaali anukunta .. Link to comment Share on other sites More sharing options...
pandemkodi Posted March 12, 2012 Author Report Share Posted March 12, 2012 [quote name='Silence..Please' timestamp='1331592162' post='1301509227'] google chesthe adhe ochindhi ba .. unzip -c ( c for count ) may be oka fixed no.of count ni ignore cheyyaali anukunta .. [/quote] yaa adi wrong result istondi baa nenu chaala files ni zip chesi choosa okka daaniki kuda correct ichi saavatla anyway verymuch baa Link to comment Share on other sites More sharing options...
robo Posted March 12, 2012 Report Share Posted March 12, 2012 [quote name='pandemkodi' timestamp='1331592144' post='1301509225'] thanks baa idi em chestadi baa assalu file permissions do not allow this action antondi [/quote] k find /path/ -name -exec stat {} /; lista all files with abc.* nd prints the statistics of all the files Link to comment Share on other sites More sharing options...
Recommended Posts