[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

voici le script



 
#!/bin/sh

# Here you customize this tool to your system
# You put your path to the descriptions of package that need to be checked
PATH_REL=/home/traduc/ddts
# Specify the extension of the file before you check
TODO_EXT=".todo"
# Specify the extension of the file after you checked
RELU_EXT=".relu"
# Type the name of our favorite editor
EDIT="gedit"

# It takes the file marked .todo and renames it as .relu

cd $PATH_REL

SEARCH="*$TODO_EXT"

PKG=`ls $SEARCH | head -n 1 | cut -d "." -f 1`

if [ $PKG="" ]; then 
	echo "Pas de relecture disponible!"
	exit 1
fi

mv `ls $SEARCH | head -n 1` `ls $SEARCH | head -n 1 | cut -d "." -f 1`.relu

$EDIT $PATH_REL/$PKG$RELU_EXT

Reply to: