To count the number of files in the directory. A "find" does not sort the output and will be quicker than "ls".
To find out the size of the directory file itself:
A directory file above one megabyte is pretty large. I would expect say 25,000 files in a megabyte size directory.
The performance of a mature directory can be improved by periodically re-creating the directory file.
Hi,
I'm a novice and I'd like to make a directory structure with a hundred or so folders. I've tried mkdir /foo/foo1/etc...
mkdir /foo/foo2/etc
mkdir /foo/foo3/etc
mkdir /foo/foo4/etc
...but it appends '@' to each folder name and then fails on the subdirectories. Is it better to use a... (2 Replies)
Hi
How to create a shell script which takes in to account all the files present within a directory DIR one by one
e.g.
suppose i have a directory named DIR where there are files with the extension .ABC
i want to create shell script which processes all these files one by one.
... (1 Reply)
how to extract files one by one from a directory and let some processing be done on the file
I have a directory by name INTRN which has files like
INTR.0003080248636814
INTR.0003080248636816
INTR.0003080248636818
.
.
.
.
and so on
and in a script... (5 Replies)
Hello All. I am trying to do this from a terminal prompt on my mac....
I have 100 folders all named different things. Those 100 folders are inside ~/Desktop/Pictures directory.
Each of the 100 folders are uniquely named. The image files inside of each folder only have some similarities.
... (1 Reply)
Hi, what happened is we want to count all the files in a directory and inside this directory got many folders and so take long time to count it. Already run for about few minutes but still not done. The command we use to count is find . -type f | wc -l
Just wondering if there is any other... (9 Replies)
Hello folks,
I am deleting a directory with script it is taking 11Hour and also increase the IO on server. I am using below command, inside date directory there are hour directories, which i am deleting after archiving. Archiving is not taking long time, only "rm -rf" is taking alot of time with... (21 Replies)
Discussion started by: learnbash
21 Replies
LEARN ABOUT DEBIAN
pomigrate2
pomigrate2(1) Translate Toolkit 1.3.0 pomigrate2(1)NAME
pomigrate2 - Migrates PO files from an old version using new POT files.
SYNOPSIS
pomigrate [options] from to new-templates
Where from is a directory of existing PO files, to is the directory where the migrated PO files will be stored, and new-templates is the
directory that contains the PO Template files.
DESCRIPTION
pomigrate2 aims to move an existing translation to a new version based on updated PO Template files automatically without user interven-
tion. Therefore it is ideal for when you are migrating many languages or migrating from related but divergent products eg Mozilla to Fire-
fox.
OPTIONS -F, --use-fuzzy-matching
use fuzzy algorithms when merging to attempt to match strings
-C, --use-compendium
create and use a compendium built from the migrating files
-C, --use-compendium=some-compendium.po
use an external compendium during the migration
--no-wrap
do not wrap long lines
--locale
set locale for newly born files
-q, --quiet
suppress most output
-p, --pot2po
use pot2po(1) instead of msgmerge(1) to migrate (you cannot use compendia)
OPERATION
pomigrate2 makes use of the Gettext tools msgmerge or Translate Toolkits pot2po to perform its merging tasks.
It firstly finds all files with the same name and location in the from directory as in the new-template directory and copies these to the
to directory. If there is no file in the from directory to match one needed by the new-template directory then it will msgcat(1) all files
in the from directory with the same name and copy them to the correct destination in the to directory. If all of that fails then msginit(1)
is used to initialise any missing PO files.
Lastly all the files in <to> are merged using msgmerge(1) or pot2po(1). This process updates the files to match the layout and messages in
new-templates. Optionally, by using --use-compendium, a compendium of all the translations in from can be created to be used in the final
merge process.
BUGS
None known
Translate Toolkit 1.3.0 pomigrate2(1)