Need Scripting Help

David M. Carney carney1979 at gmail.com
Sun Jan 9 22:05:19 UTC 2005


Maybe this is a bit off topic, but I'm trying to write a script for my
Ubuntu system.

This script with the program bcrypt (console program) will enable a
person to encrypt a program by simply right-clicking on the file then
selecting the script and providing a password.

As the script is written, it works just fine on any file with no
spaces in the filename. However, it fails with any files with spaces
in the filename.

I'm a real scripting newb so any help would be appreciated.

Thanks!

David

#!/bin/bash
#
for I in `echo $*`
do
   exec gnome-terminal --command="bcrypt "$I
done
exit0




More information about the ubuntu-users mailing list