#!/bin/bash
#
# Exercice 1
#
## Variables ##
para=""
option=""
##
while [ "$1" != "" ] ; do
	if [ "$1" = "-v" ] ; then
		option="-v"
	else
		para="$para $1"
	fi
	shift
done
set $para
if [ "$option" = "-v" ] ; then
	while [ "$1" != "" ] ; do
		echo `ls -ld $1`
		shift
	done
else
	while [ "$1" != "" ] ; do
		mv $1 ${1}.old
		shift
	done
fi
