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

RE: A Simple Scripting Question




> > > ------------------------------------------------
> > > A="/cvs/proj/src"
> > > B="/code"
> > > find "$A/" |while read line; do 
> > > 	X=$(echo "$line"|cut -d/ -f6-);
> > 
> > 	X=$(echo "$line"|baseline);
> 
> Argh, that should have been:
> 
> 
>  	X=$(echo "$line"|basename);
> 
> > 
> > > 	ln -s "$line" "$B/$X";
> > > done
> 
> 
> /Allan
> 

 Thanks Allan and Kevin. My situation is a bit more complicated than what I
let on, but this gave me enough to start. Thanks again...quick replies too!




Reply to: