[wellylug] encryption question

Andrej andrej at paradise.net.nz
Sat Aug 28 19:19:33 NZST 2004


On Sat, 28 Aug 2004 18:37, Mark Signal wrote:
> Progress... sort of
>
> I can get mcrypt working with ...
>
> for file in `find $1 -type 'f' | grep -v *.cpt`;
>     	do
> 	cat $file | mcrypt -a blowfish -b -k $passwd > "$file.cpt"
> 	rm -f $file
> done

> but it vomits on file and directory names with spaces in them
> it seems to treat each space in a line as a new instance of
> $file whereas I want the new instance to begin on each new
> line.
>
>
> any thoughts?
You could try setting the IFS=$'\n'

That aside, file-names with spaces are atrocious ;}

> cheers

> Mark
Cheers,
Andrej




More information about the wellylug mailing list