Swapping files (was Swapping Pointers)

diamond@tkovoa diamond at tkou02.enet.dec.com
Mon Apr 9 15:57:48 AEST 1990


In article <206 at caslon.cs.arizona.edu> dave at cs.arizona.edu (David P. Schaumann) writes:

>In article <1508 at mdbs.UUCP>, zed at mdbs.UUCP (Zed Smith) writes:
>> how do you swap two files
>> 
>  swap( foo, bar ) :== mv foo temp;mv bar foo;mv tmp bar
>
>Dave Schaumann		| Name, name - what's in a name?  A rose by any
>dave at cs.arizona.edu	| other name would smell as sweet - Shakespear

                          Uh, maybe it smells as sweet with a different name,
                          but it won't "mv" the way you want.  :-)

                          (I don't know if Shakespeare would take the other
                          one as sweetly.)

-- 
Norman Diamond, Nihon DEC     diamond at tkou02.enet.dec.com
This_blank_intentionally_left_underlined________________________________________



More information about the Comp.lang.c mailing list