[comp.lang.c] Swapping files

diamond@tkou02.enet.dec.com (diamond@tkovoa) (04/09/90)

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

>In article <1508@mdbs.UUCP>, zed@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@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@tkou02.enet.dec.com
This_blank_intentionally_left_underlined________________________________________