Supports de cours Pilot Systems
 
You are here: Home Cours à l'INSIA Cours de Python à l'INSIA, pour ING1 et ING2SRT TP 7: player.sh
Document Actions

TP 7: player.sh

by gael last modified 2008-06-16 13:40

Click here to get the file

Size 1 kB - File type text/x-sh

File contents

#!/bin/sh
ROOT="$1"
[ -d "$ROOT" ] || {
	echo "Specify root directory as first argument."
	exit 1
}
I=1
MAX=100
while true
do
	PEBBLE="$(find "$ROOT" -name "$I")"
	[ "$PEBBLE" ] && { 
		echo "$(basename "$PEBBLE"):$(grep . "$PEBBLE")"
		I=$[$I+1]
	}
	[ "$I" -ge "$MAX" ] && break
done
Contactez-nous

01 44 53 05 55

 
Plan du site
Sites
  © 1999-2008 Pilot Systems - Powered by Plone 9, rue Desargues, 75011 Paris
France — 01 44 53 05 55