All pastes #516716 Raw Edit

Someone

public shellscript v1 · immutable
#516716 ·published 2007-05-28 20:39 UTC
rendered paste body
# Cartella da creare che conterra' tutti i link simbolici trovatiLINK_FOLDER=link# Controllo se la directory 'link' esiste prima di crearla. Se non esiste la creo.#if [ ! –d ./link ]#	then #		mkdir ./link#fifor x in `find . -type l`do	if [ $1 ]	then			if [ $1 = '-c' ];			then				#cp $x "$LINK_FOLDER/"				#chmod 666 $LINK_FOLDER\/$x				echo "-c"		fi				if [ $1 = '-s' ];			then				#ln -s $x "$LINK_FOLDER\/$x"				#chmod 666 $LINK_FOLDER\/$x				echo "-s"		fi	else		#ln $x "$LINK_FOLDER\/$x"		#chmod 666 $LINK_FOLDER\/$x				echo $x	fidone