Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!tut.cis.ohio-state.edu!snorkelwacker!think!zaphod.mps.ohio-state.edu!sdd.hp.com!elroy.jpl.nasa.gov!ames!haven!decuac!shlump.nac.dec.com!tkou02.enet.dec.com!diamond From: diamond@tkou02.enet.dec.com (diamond@tkovoa) Newsgroups: comp.lang.c Subject: Re: Swapping files (was Swapping Pointers) Message-ID: <1445@tkou02.enet.dec.com> Date: 9 Apr 90 05:57:48 GMT References: <1508@mdbs.UUCP> <206@caslon.cs.arizona.edu> Reply-To: diamond@tkou02.enet.dec.com (diamond@tkovoa) Organization: Digital Equipment Corporation Japan , Tokyo Lines: 19 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________________________________________