Re: getting absolute directory path?



On Mon, 28 Apr 2008 18:42:52 -0700 (PDT), lawpoop@xxxxxxxxx wrote:
On Apr 28, 1:25 pm, "Peter H. Coffin" <hell...@xxxxxxxxxxxxx> wrote:

Generally, you'll run out of patience trying to maintain large numbers
of files before you'll run out of room in a single directory.

What would be an example scenario that would try my patience? If it's
editing anything more than 3 files, I'm using command line tools such
as grep, find, bash scripts, or command line perl, rather than doing
it by hand. What would I be able to do to 10 files that would give me
a problem at 10,000? I'll wait 10 seconds instead of less than 1 for
my command to finish when I have 10,000 files.

Shell filename globbing frequently expands into a list of filenames that
are stored in the command buffer, which generally has SOME kind of a
cap. Mostly I've seen 32k, but that'll vary. If your list of filenames
expands out past the cap, you'll get an "Arguement list too long" error
and nothing will happen. find(1) works around that, but it allows
operations on files individually, not as aggregate.

I run out of patience trying to delve through a crazy directory tree
that's more than three directories wide or deep. There's no easy way
to tell a command line script to ignore certain subdirectories and
apply a function on others. At least, none that I know of.

If it ever gets to the point where some site is more than 10,000
individual php files, well, I'd like to see someone develop that.
Chances are, there is tremendous redundancy in that site, and the
number of files could be greatly reduced. However, if you really do
need 10,000 php pages for this application, LAMP or WAMP is probably
not the proper tool for the job.

Some utilities may have trouble dealing with large numbers of files at once,
so operations of every file in a directory may fail.

On a unix system? I doubt it.

See above about "Arguement list too long".

No utility works on a large number of files "at once". It goes through
each file individually, one at a time.

What's the term for a statement that's technically true but irrelevant?

--
We're the technical experts. We were hired so that management could
ignore our recommendations and tell us how to do our jobs.
-- Mike Andrews
.



Relevant Pages

  • RE: Generic way to exploit an insecure /tmp file creation - Red Hat 7,8,9 (Re: Red Hat 9: free tick
    ... Perl has Taint mode to enforce this (well, ... command that invokes a sub-shell, nor in any command that modifies files, ... > data like filenames, ... Hopefully someone notified the Logwatch people... ...
    (Vuln-Dev)
  • Re: "Cannot delete file: Cannont read from the source file or disk."
    ... The command to find the 8.3 filenames should be ... We may need to see the actual filenames, rather than examples, in order to ... As I said, though, if it is a permissions problem, I probably won't be able ... Microsoft Windows MVP ...
    (microsoft.public.win2000.file_system)
  • Re: Drill chuck on live center - why?
    ... Spaces embedded in filenames are *evil*. ... MS-DOS's COMMAND.COM could not handle embedded spaces in the ... However, the BASIC interpreter, descended from the Altair Disk ... it was to go into BASIC, and type the command in BASIC to remove a disk ...
    (rec.crafts.metalworking)
  • Re: Variations 0.41c and renaming files to camera date
    ... a space to delimit additional parameters, and if you forget to specify ... Windows makes a complete pigs ear of implementing spaces in filenames, ... Take for example this command ...
    (comp.sys.acorn.apps)
  • Re: SHELLdorado Newsletter 1/2005 - April 30th, 2005
    ... I'd rather say "but not with older sh's (as the Bourne shell)". ... the Bourne Shell from SVR4.2 supports read -r ... > task the latter command accomplishes with only one external ... There shouldn't be problems with filenames with blanks (there ...
    (comp.unix.shell)