mahy
July 28th, 2007, 09:07 AM
Hello,
i'd like to run a certain action for every file named "Root" within a defined directory tree. This is the stub:
#! /bin/tcsh
foreach filename (`find /mnt/win2/work/CVS/ETB_CRM_sources -name Root`)
echo $filename
end
The trouble is that some of the files've got spaces in their paths. Naturally, foreach breaks such paths into two (or more). How do i prevent it? THX for any help.
i'd like to run a certain action for every file named "Root" within a defined directory tree. This is the stub:
#! /bin/tcsh
foreach filename (`find /mnt/win2/work/CVS/ETB_CRM_sources -name Root`)
echo $filename
end
The trouble is that some of the files've got spaces in their paths. Naturally, foreach breaks such paths into two (or more). How do i prevent it? THX for any help.