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

Re: A Simple Scripting Question



On 2005-05-08T02:05:53-0400, Allan Wind wrote:
> On 2005-05-08T02:02:27-0400, Kevin Mark wrote:
> > my 2 cents
> 
> Nice.
> 
> > ------------------------------------------------
> > 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

Attachment: signature.asc
Description: Digital signature


Reply to: