Re: File backup script in c shell.



On 2008-12-09, Jason <jichengliu@xxxxxxxxx> wrote:
Here's what I'm doing now:

It works fine now but the only problem is that, when grepping files,
it seems the grep command is ignoring "." in front of "f90/pro/csh"
such that every file that has "f90", "pro" or "csh" in its name is
included - not just in the extension. Anyway to avoid this?

'.' is a wildcard character in regular expresssions. Use
'\.f90|\.pro|\.csh'


--
They can't stop us... we're on a mission from God!
-- The Blues Brothers
.



Relevant Pages

  • Re: [HEADSUP] naming of tty devices.
    ... In message, Alexey Dokuchaev writes: ... >device names is a thing to avoid, ... The problem with just a 'i' or 'l' is that it creates confusion as to ... what is the device name and what is the extension. ...
    (freebsd-arch)
  • Re: ASSERT problem in CWnd::DestroyWindow within a DLL
    ... I've tried with extension DLL's and I've got the following error: ... "DllMain already defined in DLL1.obj" ... How can i avoid this problem? ... Prev by Date: ...
    (microsoft.public.vc.mfc)
  • Re: Name a File via Code Q
    ... If the extension is always 4 characters long, then you could just avoid ... eg. what I want to appear is "Part of name of original file 07-feb-09 ...
    (microsoft.public.excel.programming)
  • Re: [HEADSUP] naming of tty devices.
    ... >>device names is a thing to avoid, ... > what is the device name and what is the extension. ... they won't show up until first time you try to access them. ... To unsubscribe, ...
    (freebsd-arch)