[an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive]
 
[an error occurred while processing this directive] [an error occurred while processing this directive]
Skåne Sjælland Linux User Group - http://www.sslug.dk Home   Subscribe   Mail Archive   Forum   Calendar   Search
MhonArc Date: [Date Prev] [Date Index] [Date Next]   Thread: [Date Prev] [Thread Index] [Date Next]   MhonArc
 

foreach lökke kan ikke li' space



Hej!

Jeg vil gerne lave sha sums rekursivt på filer i nogle kataloger. Jeg fandt en oneliner et sted på nettet og tilpassede den. Men jeg får problemer hvis der er space i fil- eller foldernavne:

$ for i in $(find * -type f -print);do sha256sum -b "$i";done
cb3e85bc2d3c4de6fe449b99af7e720d695a03036c25060bc1efb14bb6023f89 *AudigyPlayerQSBack.pdf 4f922a0afc830023ec0a67c1ebec54410a0de339eb78e2a0b35d2a681bc9d032 *AudigyPlayerQSFront.pdf
sha256sum: Audigy: No such file or directory
sha256sum: Player: No such file or directory
sha256sum: Users: No such file or directory
sha256sum: Guide: No such file or directory
sha256sum: English.pdf: No such file or directory

find uden foreach lökken virker fint:

$ find * -type f -print
AudigyPlayerQSBack.pdf
AudigyPlayerQSFront.pdf
Audigy Player Users Guide English.pdf

Hvordan får jeg hele siste räkken ind i $i i et stykke?

Mvh,
Istvan




 
Home   Subscribe   Mail Archive   Index   Calendar   Search

 
 
Questions about the web-pages to <www_admin>. Last modified 2009-10-01, 02:01 CEST [an error occurred while processing this directive]
This page is maintained by [an error occurred while processing this directive]MHonArc [an error occurred while processing this directive] # [an error occurred while processing this directive] *