Re: getting absolute directory path?



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.

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.

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



Relevant Pages

  • Re: Couple of PC-User Mac noob questions
    ... Writing Bash scripts is pretty straightforward (Bash scripts are to ... I want it to open a shell, execute the command and then close. ... I want to add a custom word to the user agent that I can sniff for in my script and use it to turn on a debug mode in my code. ...
    (comp.sys.mac.misc)
  • Re: How to source a file with part of its absolute path? (bash)
    ... arguments to a command based on $PATH or anything else. ... Suppose that I'm developing many bash scripts, ... to manage many bash scripts in a single project? ... Shell don't search for directories in the path, ...
    (comp.unix.shell)
  • Re: How to source a file with part of its absolute path? (bash)
    ... arguments to a command based on $PATH or anything else. ... Suppose that I'm developing many bash scripts, ... supporting the case that mentioned in my previous ... to manage many bash scripts in a single project? ...
    (comp.unix.shell)
  • Re: getting absolute directory path?
    ... editing anything more than 3 files, I'm using command line tools such ... If your list of filenames ... individual php files, well, I'd like to see someone develop that. ... What's the term for a statement that's technically true but irrelevant? ...
    (comp.lang.php)
  • Re: [bash] running script for specific time
    ... command (for example tcpdump, tail or something like that - ... You aren't ever going to learn to script if you keep asking ... when it equals beginning time + 90 minutes, stop app. ... Now you need some good examples of bash scripts. ...
    (comp.os.linux.misc)