home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.shell
- Path: sparky!uunet!ferkel.ucsb.edu!taco!gatech!paladin.american.edu!howland.reston.ans.net!usc!cs.utexas.edu!torn!mcshub!aruba!ruby!rickt
- From: rickt@aruba.UUCP (Rickey Thomas Tom)
- Subject: help with a script files
- Message-ID: <1993Jan26.203636.7606@aruba.uucp>
- Sender: rickt@aruba (Rickey Thomas Tom)
- Date: Tue, 26 Jan 1993 20:36:36 GMT
- Organization: Project Zed
- Lines: 23
-
- I a working on a script that basicaly moves files from a subdirectory to
- a current directory.
-
- .....
- .....
- mv <dir x>/* .
- .....
- .....
-
- The problem is that if there are no files in the subdirectory, the script terminates and returns an error code that says that no files were found.
-
- I tried if ( -e "<dir x>/* ) then
- .....
-
- but this does not work either
-
- Any help would be greatly appreciated. Thank you in advance
-
- --
- --------------------------------------------------------------------------------
- Rickey Tom | Internet Style: aruba!rickt@uu2.psi.com
- Programmer/Analyst Project ZED | UUCP : ...!uunet!uupsi2!aruba!rickt
- --------------------------------------------------------------------------------
-