|

楼主 |
发表于 2008-1-23 13:23:41
|
显示全部楼层
谢谢 各位,我的问题解决了。
下面是我的脚本:
showimage
#!/bin/sh
#show the image
#if the number of the argu is not only one ,quit the program
if [ $# -ne 1 ]; then
exit 1
fi
#show the keyword
keyword=$1
echo $keyword
#parse the accessary Lists
imagefilename=`cat /home/newman0708/doc/database/accessorylist.csv |grep $keyword |awk -F "\t" '{gsub("\"","",$11);print "/home/newman0708/quickjump/AccessoryImages2/" $11 }'`
#show the details
cat /home/newman0708/doc/database/accessorylist.csv |grep $keyword
#show the image files
echo "show image: " $imagefilename
#gthumb view
gthumb $imagefilename |
|