Am Sat, 3 Sep 2016 11:52:46 +0200 schrieb meino.cra...@gmx.de: > Hi, > > I want to 'locate' a bunch of files and feed the output into > '| xargs md5sum'. > Unfortunately some of them are infected with the "file name"-virus > (space in the filename). > With find there is the -print0 option which corresponds to '-0' of > the xargs options. As of my knowledge, locate does not have such > a thing. > I dont like the idea to 'find' (read: 'search again')all the files, > which locate already knows...so > Is there any trick/option/whatever to get the files with spaced > filenames processed by md5sum in combination with 'locate'?
In that case try $ locate ... | while read name; do md5sum "$name"; done This works for results having one filename per line. -- Regards, Kai Replies to list-only preferred.