accessing a samba network drive via the command line

Mikkel L. Ellertson mikkel at infinity-ltd.com
Wed Jul 1 20:01:10 UTC 2009


Kevin Kempter wrote:
> 
> One more question:
> is there a way via smbclient to execute the equivelant of a "find . | wc -l" ? 
> I'm wanting a count of how many files I have on the drive, including all dirs 
> and sub-dirs.
> 
> Thanks in advance
> 
One way it to use the -T option, pip it to taz, and then pip the
output to wc. (I have not done this, but it should work.)

Mikkel
-- 

  Do not meddle in the affairs of dragons,
for thou art crunchy and taste good with Ketchup!

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/fedora-list/attachments/20090701/172af85b/attachment-0001.sig>


More information about the fedora-list mailing list