* I am a file in the land of dirs and I want to dive ...
@ 2011-07-16 18:04 meino.cramer
2011-07-16 21:29 ` Bart Schaefer
0 siblings, 1 reply; 2+ messages in thread
From: meino.cramer @ 2011-07-16 18:04 UTC (permalink / raw)
To: zsh-users
Hi,
sorry for the nonsense in the subject line.... ;)
I want to crc all the files of my harddisc.
I tried as root
cd /
zargs -- *(/) -- whirlpooldeep > /tmp/allfiles.crc.txt
which gaves me:
zsh: no matches found: *(.)
OK...then recursively:
cd /
zargs -- *(/) -- whirlpooldeep > /tmp/allfiles.crc.txt
which gaves me:
zsh: no matches found: **(.)
Interestingly both works when doing
cd /tmp
instead of
cd /
My / only contains directories, my /tmp contains directories and
files.
Why is it possible to dive into directories only if there are files
on the same level ???
Best regards and have a nice weekend!
mcc
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: I am a file in the land of dirs and I want to dive ...
2011-07-16 18:04 I am a file in the land of dirs and I want to dive meino.cramer
@ 2011-07-16 21:29 ` Bart Schaefer
0 siblings, 0 replies; 2+ messages in thread
From: Bart Schaefer @ 2011-07-16 21:29 UTC (permalink / raw)
To: zsh-users
On Jul 16, 8:04pm, meino.cramer@gmx.de wrote:
}
} sorry for the nonsense in the subject line.... ;)
The nonsense in the message body is much more in need of apology. :-)
} I tried as root
}
} cd /
} zargs -- *(/) -- whirlpooldeep > /tmp/allfiles.crc.txt
}
} OK...then recursively:
}
} cd /
} zargs -- *(/) -- whirlpooldeep > /tmp/allfiles.crc.txt
These two examples look exactly the same, and in neither case do you
show or even explain what "whirlpooldeep" is, so it's pretty difficult
to help you out.
One question is why you're using a pattern that matches directories
when what you are seeking is files?
} which gaves me:
}
} zsh: no matches found: **(.)
That, however, is an obviously useless pattern. "**" only makes sense
when immediately followed by "/". Somewhere you should be using **/*(.)
but I can't guess where.
E.g.:
zargs -- /**/*(.) -- md5sum > /tmp/allfiles.md5.txt
Replace md5sum with whatever does your CRC. Or if **/*(.) is too much
for zsh to handle,
find / -type f -print0 | xargs -0 md5sum > /tmp/allfiles.md5.txt
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-07-16 21:29 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-07-16 18:04 I am a file in the land of dirs and I want to dive meino.cramer
2011-07-16 21:29 ` Bart Schaefer
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).