#!/bin/csh
foreach i (sim shell buffer segment out ckt synapse axon sys hh device personal ss)
    echo linking $i 
    cd $i
    foreach j (*.[g])
	ln $j $1/$i/$j
	echo -n .
    end
    echo .
    cd ..
end
echo done
