|
On Wed, 2001-12-19 at 20:48, Joe Pluta wrote: > > From: Joe Pluta > > > From: Scott Klement > > > > > > That's what 'touch' is supposed to do, Joe. People frequently use it to > > > create empty files in UNIX environments. > > > > With invalid names? I didn't think you could create a file called "*.jsp" > > in Unix. > > To be thorough, I just tested it, and in Linux "touch *.jsp" in a directory > with no JSP files returns "touch: No match". Odd - it worked for me (tm) mrowe@jamaro:~$ touch *.jsp mrowe@jamaro:~$ ls *.jsp *.jsp mrowe@jamaro:~$ rm \*.jsp mrowe@jamaro:~$ ls *.jsp ls: *.jsp: No such file or directory No .jsp files present initially. What if you escape the * like I did on the rm line, though for me it works just the same. Does it make a difference which shell you use (bash 2.05a.0 here on Debian 'sid'). Touch is from fileutils 4.1. As an aside, touch in QShell is handy for setting the code page for new files QSH CMD('touch -C 850 newfile.csv'). Useful where the output commands don't/won't let you set it. Regards, Martin -- martin@dbg400.net jamaro@firstlinux.net http://www.dbg400.net /"\ DBG/400 - DataBase Generation utilities - AS/400 / iSeries Open \ / Source free test environment tools and others (file/spool/misc) X [this space for hire] ASCII Ribbon Campaign against HTML mail & news / \
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.