|
find . -name "*.nsf" -print | grep -v "nfx*" > /rob/filelist.ind
But, this assumes file names start with nfx. If it is a suffix, then:
Actually, that grep won't work at all. If you want to omit files whose
names start with nfx, it would be:
find . -name "*nsf" | grep -v '^nfx' > /rob/filelist.ind
The grep as stated by jmmckee will look for nfx, nfxx, nfxxx, nfxxxx ...
anywhere in the filename.
If it is a suffix, then:
find . -name "*.nsf" -print | grep -v ".nfx" > /rob/filelist.ind
You have already selected *only* files whose extensions are nsf, by
virtue of your "*nsf" or "*.nsf" on the find command, so I'm not sure
how the filename can end in both .nsf and .nfx. The grep above will
drop files whose names include nfx in any position _except_ the
beginning. nfx123.nsf would remain.
Note here that nobody has addressed the potential that these files may
contain upper case characters:
find . -name "*.[Nn][Ss][Ff]" | grep -vi 'nfx' > /rob/filelist.ind
Dennis Lovelady
http://www.linkedin.com/in/dennislovelady
--
Sometimes I've believed as many as six impossible things before
breakfast.
-- Lewis Carroll
find . -name "*.nsf" -print | grep -v "nfx*" > /rob/filelist.indI
But, this assumes file names start with nfx. If it is a suffix, then:
find . -name "*.nsf" -print | grep -v ".nfx" > /rob/filelist.ind
John McKee
-----Original message-----
From: rob@xxxxxxxxx
Date: Tue, 09 Nov 2010 16:14:26 -0600
To: Midrange Systems Technical Discussion midrange-l@xxxxxxxxxxxx
Subject: qshell documentation, tutorial, rtm, rtfm and that genre
I'm trying to learn qshell and was asking for recommended links toget
going.
I'm starting out by getting a list of files in a domino server with
find . -name "*.nsf" -print > /rob/filelist.ind
and I get results like:
...+....1....+....2....+....3..
************Beginning of data**
/DFC/dfc100.nsf
/HELP/lccon6.nsf
/HELP/decsdoc.nsf
/HELP/decsdoc6.nsf
/HELP/dols_help.nsf
/HELP/help5_admin.nsf
/HELP/help5_client.nsf
/HELP/help5_designer.nsf
..
/log.nsf
/doladmin.nsf
/cppfbws.nsf
/AgentRunner.nsf
/busytime.nsf
/events4.nsf
/nfxuhelp.nsf
/nfxadmin.nsf
/nfxlog.nsf
..
My next goal is to weed out the nfx* files out of this list. Then
canmailing
use the resultant file in a program doc in domino to compact theentries
in this file.mailing list
Rob Berendt
--
Group Dekko
Dept 1600
Mail to: 2505 Dekko Drive
Garrett, IN 46738
Ship to: Dock 108
6928N 400E
Kendallville, IN 46755
http://www.dekko.com
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L)
To post a message email: MIDRANGE-L@xxxxxxxxxxxx--
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/midrange-l.
This is the Midrange Systems Technical Discussion (MIDRANGE-L)
list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/midrange-l.
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 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.