Re: Constellations
- From: Arne Vajhøj <arne@xxxxxxxxxx>
- Date: Sun, 04 Jan 2009 21:42:13 -0500
David Segall wrote:
Patricia Shanahan <pats@xxxxxxx> wrote:Roedy Green wrote:As I understand it Roedy wants to provide that list of files usingOn Sat, 3 Jan 2009 17:32:16 +0000, Tom Anderson <twic@xxxxxxxxxxxxxxx>When I have that sort of problem, I just make the program read a list of
wrote, quoted or indirectly quoted someone who said :
Why not use find and xargs?xargs runs the utility multiple times, with an arbitrary sublist of
the files each time. It is a tool to get around too short a command
line. I am after something so that the app can process all the files
at once as a lump, possibly consolidating them, sorting them etc.
I would see constellations as ways of describing files to back up,
to upload to ta website, to tidy, to search etc.
You want a set of dirs, with exceptions, and exceptions to the
exceptions, and exceptions based on regexes, extensions and wildcards.
files from standard input. The list of files can be built using any
tools the user likes - I use a mix of find, grep, and sed, but that is a
matter of taste and UNIX experience.
only XML. If he succeeds he can provide a DTD and, consequently, an
easy implementation in most modern IDEs. I think that is likely to be
simpler than your solution for those that don't know UNIX or a
comparable scripting language. Are you arguing that the list cannot be
expressed using XML or that expressing the list using a combination of
find, grep and sed would be significantly simpler than using XML?
There are excellent XML tools in library, but it is still not
easier to parse XML than a list with one filename per line.
The find/grep/sed stuff used to generate that that list would
still need to be done to generate the XML file. And that would
most definitely be more work than just creating the list.
Arne
.
- References:
- Constellations
- From: Roedy Green
- Re: Constellations
- From: Arne Vajhøj
- Re: Constellations
- From: Tom Anderson
- Re: Constellations
- From: Roedy Green
- Re: Constellations
- From: Patricia Shanahan
- Re: Constellations
- From: David Segall
- Constellations
- Prev by Date: Re: speeding up javac
- Next by Date: Re: Constellations
- Previous by thread: Re: Constellations
- Next by thread: Re: Constellations
- Index(es):
Relevant Pages
|