IUBio

unix script files

Lyle Wiedeman wiedeman at UCI.EDU
Tue Mar 29 14:15:59 EST 1994


I tried to send a private message, but e-mail to jenkins at aidsun.nibsc.ac.uk
bounces.

>> When I try to write a unix script, it does it "behind the scenes".
>> 
>> for example if i want to go to a directory called data and list files:-
>> 
>> #a script to go to data and list
>> cd jenkins/data
>> ls 
>> 
>> It will go to directory data and list files, but at the end, i will be
>> in the directory i started in.

Try this instead:

# a script...
pushd jenkins/data
ls
popd

	Lyle Wiedeman                 Office of Academic Computing
	wiedeman at uci.edu              Univ. Calif. Irvine
	                              Irvine, CA  92717
    	(714) 856-8718	    	      FAX (714) 725-2069
	WWW - http://www.oac.uci.edu/indiv/wiedeman/home.html



More information about the Info-gcg mailing list

Send comments to us at biosci-help [At] net.bio.net