I have a problem with the script below
#!/bin/sh
for vo in `find -maxdepth 1 -type f -regex "^\./[^/]*$"`
do
ls -l "$vo"
some other commands
done
It works fine until `find ...` returns files with spaces. I've tryed to change IFS but haven't succeed
Any solutions?
and this...?
#!/bin/ksh
find -maxdepth 1 -type f -regex "^\./[^/]*$" | while IFS= read vo
do
ls -l "$vo"
some other commands
done
and what about sh/bash ??
what about it?
Can you try, pls!
#!/bin/sh
find -maxdepth 1 -type f -regex "^\./[^/]*$" | while IFS= read vo
do
ls -l "$vo"
done
It simply works
Great thanks