[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ale] quick bash script question
- Subject: [ale] quick bash script question
- From: christopher at bergeron.com (Christopher Bergeron)
- Date: Mon, 12 May 2003 18:17:15 -0400
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi guys - Ok, so I wrote a little script to replace my "locate" command:
#!/bin/bash
for i in `/usr/bin/locate.orig $1`; do
~ ls -l -h --color "$i";
done
I renamed my original locate command to locate.orig [oddly enough], and
I'm calling it via " ls " with the formatting that I like. Here's my
latest quandry: When it displays a file with a space in the name, it
breaks the $i variable into two peices. For example, I end up with 2
$i variables as such:
"My Documents" would become "My" on iteration 1 and "Documents" on
iteration 2.
Is there a way to fix this, or can anyone explain why it's doing this?
Much thanks,
- -CB
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQE+wB1qTKCy0t3zQgURAoizAJ9yq92kClZv2wEIOfjD1senibe0hQCbBOz5
AR0dTAwNtap+xoJJZ8okpLw=
=vjkK
-----END PGP SIGNATURE-----
_______________________________________________
Ale mailing list
Ale at ale.org
http://www.ale.org/mailman/listinfo/ale