Learning the bash Shell Unix Shell Programming Third Edition Cameron Newham - Download the ebook now to never miss important content
Learning the bash Shell Unix Shell Programming Third Edition Cameron Newham - Download the ebook now to never miss important content
https://ebookfinal.com/download/pro-bash-programming-second-edition-
scripting-the-gnu-linux-shell-johnson/
https://ebookfinal.com/download/learning-unix-for-os-x-going-deep-
with-the-terminal-and-shell-2nd-edition-dave-taylor/
https://ebookfinal.com/download/ghost-in-the-shell-2nd-edition-
masamune-shirow/
https://ebookfinal.com/download/kant-s-observations-and-remarks-a-
critical-guide-shell/
SSH The Secure Shell The Definitive Guide 1st Edition
Daniel J. Barrett
https://ebookfinal.com/download/ssh-the-secure-shell-the-definitive-
guide-1st-edition-daniel-j-barrett/
https://ebookfinal.com/download/ssh-the-secure-shell-the-definitive-
guide-second-edition-daniel-j-barrett/
https://ebookfinal.com/download/harnessing-the-uefi-shell-moving-the-
platform-beyond-dos-second-edition-michael-rothman/
https://ebookfinal.com/download/linux-command-line-and-shell-
scripting-bible-2nd-edition-richard-blum/
https://ebookfinal.com/download/oral-culture-and-catholicism-in-early-
modern-england-1st-edition-alison-shell/
Learning the bash Shell Unix Shell Programming Third
Edition Cameron Newham Digital Instant Download
Author(s): Cameron Newham
ISBN(s): 9780596009656, 0596009658
Edition: Third Edition
File Details: PDF, 1.63 MB
Year: 2005
Language: english
1
Learning the bash Shell,
3rd Edition
Table of Contents
2
Preface
bash Versions
Summary of bash Features
Intended Audience
Code Examples
Chapter Summary
Conventions Used in This Handbook
We'd Like to Hear from You
Using Code Examples
Safari Enabled
Acknowledgments for the First Edition
Acknowledgments for the Second Edition
Acknowledgments for the Third Edition
1. bash Basics
3
1.1. What Is a Shell?
1.2. Scope of This Book
1.3. History of UNIX Shells
1.3.1. The Bourne Again Shell
1.3.2. Features of bash
1.6. Files
1.6.1. Directories
1.6.2. Filenames, Wildcards, and Pathname
Expansion
1.6.3. Brace Expansion
4
1.10. Help
2. Command-Line Editing
2.1. Enabling Command-Line Editing
2.2. The History List
2.3. emacs Editing Mode
2.3.1. Basic Commands
2.3.2. Word Commands
2.3.3. Line Commands
2.3.4. Moving Around in the History List
2.3.5. Textual Completion
2.3.6. Miscellaneous Commands
5
3.1. The .bash_profile, .bash_logout, and .bashrc
Files
3.2. Aliases
3.3. Options
3.3.1. shopt
6
4.1. Shell Scripts and Functions
4.1.1. Functions
5. Flow Control
5.1. if/else
5.1.1. Exit Status
5.1.2. Return
5.1.3. Combinations of Exit Statuses
5.1.4. Condition Tests
5.1.5. Integer Conditionals
5.2. for
5.3. case
5.4. select
5.5. while and until
7
6.1. Command-Line Options
6.1.1. shift
6.1.2. Options with Arguments
6.1.3. getopts
6.4. Arrays
8. Process Handling
8
8.1. Process IDs and Job Numbers
8.2. Job Control
8.2.1. Foreground and Background
8.2.2. Suspending a Job
8.3. Signals
8.3.1. Control-Key Signals
8.3.2. kill
8.3.3. ps
8.4. trap
8.4.1. Traps and Functions
8.4.2. Process ID Variables and Temporary
Files
8.4.3. Ignoring Signals
8.4.4. disown
8.4.5. Resetting Traps
8.5. Coroutines
8.5.1. wait
8.5.2. Advantages and Disadvantages of
Coroutines
8.5.3. Parallelization
8.6. Subshells
8.6.1. Subshell Inheritance
8.6.2. Nested Subshells
9
9.1. Basic Debugging Aids
9.1.1. Set Options
9.1.2. Fake Signals
9.1.3. Debugging Variables
10
11.1. What's That Do?
11.1.1. Comments
11.1.2. Variables and Constants
11.2. Starting Up
11.3. Potential Problems
11.4. Don't Use bash
A. Related Shells
11
A.1. The Bourne Shell
A.2. The IEEE 1003.2 POSIX Shell Standard
A.3. The Korn Shell
A.4. pdksh
A.5. zsh
A.6. Shell Clones and Unix-like Platforms
A.6.1. Cygwin
A.6.2. DJGPP
A.6.3. MKS Toolkit
A.6.4. AT&T UWIN
B. Reference Lists
B.1. Invocation
B.2. Prompt String Customizations
B.3. Built-In Commands and Reserved Words
B.4. Built-In Shell Variables
B.5. Test Operators
B.6. set Options
B.7. shopt Options
B.8. I/O Redirection
B.9. emacs Mode Commands
B.10. vi Control Mode Commands
C. Loadable Built-Ins
D. Programmable Completion
12
Learning the bash Shell,
3rd Edition
Cameron Newham
Copyright © 2009 O'Reilly Media, Inc.
13
Preface
The first thing users of the UNIX or Linux operating
systems come face to face with is the shell. "Shell" is the
UNIX term for a user interface to the system—something
that lets you communicate with the computer via the
keyboard and the display. Shells are just separate
programs that encapsulate the system, and, as such, there
are many to choose from.
14
bash Versions
This book is relevant to all versions of bash, although
older versions lack some of the features of the most
recent version.[1] You can easily find out which version
you are using by typing echo $BASH_VERSION. The
earliest public version of bash was 1.0, and the most
recent is 3.0 (released in July 2004). If you have an older
version, you might like to upgrade to the latest one.
Chapter 12 shows you how to go about it.
[1]
Throughout this book we have clearly marked with
footnotes the features that are not present in the earlier
versions.
15
Summary of bash
Features
bash is a backward-compatible evolutionary successor to
the Bourne shell that includes most of the C shell's major
advantages as well as features from the Korn shell and a
few new features of its own. Features appropriated from
the C shell include:
16
• Command-line editing, allowing you to use vi- or
emacs-style editing commands on your command
lines.
17
Intended Audience
This book is designed to address casual UNIX and Linux
users who are just above the "raw beginner" level. You
should be familiar with the process of logging in, entering
commands, and doing simple things with files. Although
Chapter 1 reviews concepts such as the tree-like file and
directory scheme, you may find that it moves too quickly
if you're a complete neophyte. In that case, we
recommend the O'Reilly handbook, Learning the UNIX
Operating System, by Jerry Peek, Grace Todino, and John
Strang.
18
commands during a login session) and shell
programming. We see shell programming as a natural,
inevitable outgrowth of increasing experience as a user.
19
Code Examples
This book is full of examples of shell commands and
programs designed to be useful in your everyday life as a
user, not just to illustrate the feature being explained. In
Chapter 4 and onwards, we include various programming
problems, which we call tasks, that illustrate particular
shell programming concepts. Some tasks have solutions
that are refined in subsequent chapters. The later chapters
also include programming exercises, many of which build
on the tasks in the chapter.
Feel free to use any code you see in this book and to pass
it along to friends and colleagues. We especially
encourage you to modify and enhance it yourself.
#!/bin/bash
20
Discovering Diverse Content Through
Random Scribd Documents
which there is no determinable element of shape and which yet possess an internal crystalline structure
which the microscope with polarized light may be able to reveal.
256. Staining Silt Particles.—The finer silts and clays before microscopic examination should be
colored or stained. The methods used in staining bacteria may be employed for the clay particles.
Evaporation to dryness with a solution of magenta will often impart a color to the clay particles which
is not removed by subsequent suspension in water. The harder and larger silt particles are not easily
stained, especially if they be firm and undecomposed. On the other hand, if the particles be broken and
seamed, and well decomposed, the stain will be taken up and held firmly in the capillary fissures.
Valuable indications are thus obtained respecting the nature of the silt particles. Particles of mica,
chlorite and talc are easily distinguished in this way from the firmer and less decomposed quartz grains.
The staining of the particles after ignition and treatment with acids gives better results than the direct
treatment. Particles of carbonate which are stained with difficulty before ignition take the stain easily
afterwards on account of the decomposition produced by the loss of carbon dioxid. This is the case also
with particles containing water of composition or crystallization.
257. Cleavage of Soil Particles.—A microscopic examination of the cleavage of soil particles may
be useful in determining their mineral origin. The course followed by cleavage lines and their mutual
position is dependent on the direction in which the separation of the mineral fragment takes place. The
character of the microscopic fragments produced by crushing a soil particle is determined primarily by
the system of crystallization to which it belongs. Perhaps the most distinguishing cleavage marks in soil
particles will be found in fragments of mica and orthoclase. These characteristic forms are shown in
Figs. 39 and 40. The first (Fig. 39) shows the pinacoidal cleavage in a fragment of mica. Fig. 40
illustrates the appearance of the cleavage lines in a fragment of orthoclase. Figs. 41 and 42 show the
characteristic cleavage lines in fragments of epidote and titanite.
258. Microchemical Examination of Silt.—The methods of quantitative chemical examination of
silts will be given in another part of this manual. Certain qualitative and microchemical tests, however,
are useful in identifying silt particles. For instance, any soluble iron mineral will be detected, even in
minute quantity, by the blue coloration of the solution produced by the addition of potassium
ferrocyanid. Manganese will be revealed by fusion with soda and saltpeter on platinum foil, in the
oxidizing flame, producing the well-known green coloration due to the sodium manganate formed.
More valuable indications of the character of the fragments examined are obtained by microchemical
processes. The best method of decomposing the silt particles for this purpose is by treatment with
hydrofluosilicic acid. When the particles are composed of silicates, pure hydrofluoric acid is to be
preferred.
The method of treatment is essentially that of Boricky.[165] The slide used is protected by a film of
Canada balsam, and a few of the silt particles are placed thereon, and fixed in place by slightly warming
the balsam. Each particle is then treated with a drop of hydrofluosilicic acid, care being taken not to let
the drops flow together. The acid must be pure, leaving no residue on evaporation. The acid should be
prepared by the analyst from a mixture of barium fluorid, sulfuric acid and quartz powder, or the
commercial article should be purified by distillation before using. The acid should be kept in ceresin or
gutta-percha bottles and must be applied with a ceresin or gutta-percha rod. Each particle should be as
completely dissolved as possible by the acid, and the rate of solution may be hastened by gentle
warming, provided the heat is not great enough to remove the balsam and allow the acid to attack the
glass. The bases present in the silt particles crystallize on drying as fluosilicates. In case of a too rapid
crystallization, the mass may be dissolved in a drop of water or of very dilute hydrofluosilicic acid, and
allowed to evaporate more slowly. Some fragments need more than one treatment with acid to secure
complete solution, and particles of mica may even resist repeated applications. In such a case the
decomposition may be made in a platinum crucible with hydrofluoric acid, adding afterwards an excess
of hydrofluosilicic acid and evaporating to dryness. The crystals may then be dissolved in a little water
and a drop of the solution allowed to crystallize on the slide.
259. Special Reactions.—The number of microchemical reactions is very great, but there will be
given here only some of the more important for silt identification.
Sodium.—Sodium mineral fragments dissolved in hydrofluosilicic acid and dried give the
combinations shown in Fig. 43. With sodium and aluminum the forms shown in Figs. 44 and 45 are
obtained. With an increasing amount of lime in the mineral, the crystals tend to become longer. For
microscopic work it is not advisable to try to produce the tetrahedral crystals of the double uranium
sodium acetate because the commercial uranium acetate often contains sodium and even the pure article
will often take up sodium from the bottles.
Potassium.—Fragments containing potash give isotropic clear cubes, or octahedra of low refracting
power, or combinations of these forms with each other and with rhombic dodecahedra. These crystals
have the composition K₂SiF₆. Their forms are shown[166] in Figs. 46 and 47. In case much sodium be
present, the first crystals obtained may be strongly double refractive rhombohedra, but on dissolving in
water and allowing to recrystallize, the normal forms will be obtained. If the crystals be dissolved in
hydrochloric or sulfuric acids, and treated with platinum chlorid, the characteristic yellow octahedral
crystals of K₂PtCl₆ will be obtained. Ammonium and cesium compounds also give this reaction.
Lithium.—When fragments containing lithium are treated with the solvent mentioned, monoclinic
crystals are produced on drying. These crystals dissolved in sulfuric acid and freed from calcium sulfate
by treatment with potassium carbonate give aggregates of lithium carbonate resembling a snowflake. At
a high temperature lithium solutions treated with sodium phosphate give spindle-shaped crystals of
lithium phosphate. The double lithium aluminum silicofluorid is shown in Fig. 48. The ease with which
traces of lithium may be detected by the spectroscope renders unnecessary any further description of its
microchemical reactions.
Calcium.—Nearly all mineral particles, save quartz grains, contain calcium. When these particles are
dissolved by treatment with hydrofluosilicic acid, they form on drying hydrated monoclinic crystals of
calcium silicofluorid (CaSiF₆ + 2H₂O). These crystals assume many forms, some of which are shown in
Figs. 49 and 50. These crystals are easily decomposed by sulfuric acid, the well-known long prismatic
crystals of gypsum taking their place. On treatment of silt particles containing lime with hydrofluoric
and sulfuric acids, only a part of the lime passes into solution if the content thereof be large. Where but
little lime is present and the sulfuric acid is in large excess, all the lime passes into solution and the
characteristic gypsum crystals appear as in Fig. 51.
Magnesium.—Rhombohedral crystals of magnesium silicofluorid separate from the solution of
particles containing magnesium in hydrofluosilicic acid. They have the composition MgSiF₆6H₂O and
their common forms are shown in Fig. 52. Quite characteristic also are the crystals of struvite
(NH₄MgPO₄ + 6H₂O), which are produced in a very dilute solution of the magnesium compound first
obtained by carefully adding ammonium hydroxid and chlorid until a faint alkaline reaction is produced,
and then placing a drop of dilute sodium phosphate at the edge of the solution. The crystals should be
allowed to form slowly in the cold. Their form is shown in Fig. 54.
Figure 38. Photomicrographs of Silt Particles.
Figure 57.
Gypsum 2.31
Albite 2.56–2.63
Quartz 2.65
Talc 2.74
Chlorite 2.78
Muscovite 2.85
Calcite 2.5–2.78
Dolomite 2.90
Tourmaline 2.94–3.3
Biotite 3.01
Apatite 3.16
Pyroxenes 3.22–3.5
Epidote 3.39
Titanium Minerals 3.48–4.75
Iron oxids 5.2–5.3
The finest particles of silt are separated by gravity with great difficulty, inasmuch as they tend to
remain suspended in the solutions for an indefinite period. With the coarser silts, however, useful data
are often obtained by this method. The separation is preceded by extraction of the particles with
hydrochloric acid to remove encrusted soluble matter, and by ignition to destroy any traces of organic
matter. Those mineral matters which are soluble in acid or are changed by ignition must, of course, be
sought for in separate portions of the silt,
263. Thoulet’s Solution.[168]—The standard solution is of such a density that particles of 2.65
specific gravity-will just float thereon, using for this purpose a solution of about 2.7 specific gravity. The
solution from which the above standard is prepared is made as follows:
One part of potassium iodid is weighed and placed in a beaker and one and one-quarter part of
mercuric iodid is placed on top of it. Then water is added in the proportion of ten cubic centimeters to
100 grams of the mixture, and after some time (twelve to twenty-four hours), with occasional stirring,
the salts will nearly completely dissolve. Filter from the undissolved residue and evaporate in a porcelain
dish until crystals form on the surface of the liquid. Allow to cool, pour off the liquid from the crystals
and evaporate the liquid for another crop. The first solution, after cooling, has a specific gravity between
3.10 and 3.20, the second a specific gravity of 3.28, practically the limit of density of the solution. The
solution of 2.7 specific gravity and other densities are made by cautiously adding a few drops of water at
a time and ascertaining the specific gravity by the Westphal balance or other convenient method.
The strong solution, according to Goldschmidt,[169] may be prepared directly by using potassium iodid
and mercuric iodid in the ratio of 1 : 1.24. Twenty-five cubic centimeters of water, 210 grams of
potassium iodid, and 280 grams of mercuric iodid afford a solution of 3.196 specific gravity at 15°, on
which fluorspar fragments will float.
264. Klein’s Separating Liquid.—A solution of cadmium borotungstate, of the composition
2H₂O,2CdO,B₂O₃,9WO₃ + 16H₂O, has been proposed by Klein[170] for separating silt particles. This salt
is obtained by dissolving pure sodium tungstate in five times its weight of water, adding one and a half
parts of boric acid and boiling until, complete solution takes place. On cooling; the borax is separated in
crystalline form. The mother-liquor after the removal of the crystals is carefully concentrated by boiling.
By stirring the cold solution, there is a further separation of sodium borate and polyborate. This
operation is continued until glass will float on the mother-liquor. The salt in solution then has the
following composition: 4Na₂O,12WO₃,B₂O₃. To this boiling concentrated solution, is added a boiling
saturated solution of barium chlorid, in the proportion of one part of the chlorid to three parts of the
original double tungstate. An abundant pulverulent precipitate is formed, making the whole mass
mushy. The mass is filtered under pressure and well-washed with hot water. The residue is then
suspended in hot water containing one part in ten of hydrochloric acid of 1.18 specific gravity. It is then
evaporated to dryness in the presence of an excess of hydrochloric acid and decomposed, by which
process hydrated tungstic acid is separated. The boiling mass is taken up with water and the boiling
continued for two hours with occasional addition of water to take the place of that evaporated, and the
tungstic acid separated by filtration.
From the solution, beautiful quadratic crystals separate having the composition
9WO₃,B₂O₃,2BaO₂H₂ + 18H₂O. These are purified by several recrystallizations and freed from any
scales of boric acid by washing with alcohol. Any reducing action, revealed by a violet coloration of the
crystals, can be avoided by adding a few drops of nitric acid. From a boiling solution of these crystals, the
cadmium salt desired is obtained by treatment with the proper amount of cadmium sulfate solution to
precipitate the barium. The barium sulfate is separated by filtration. The cadmium borotungstate is
soluble in less than ten parts by weight of water. From this solution it is obtained in pure form by
evaporation under a vacuum, or by carefully concentrating on a water-bath and cooling. A saturated
solution of these crystals at 15° has a bright yellow color and a specific gravity of 3.28.
If a dilute solution of the above salt be carefully evaporated on a water-bath, any violet color which
may be present disappears when the specific gravity reaches 2.7. If the evaporation be continued until a
crystal of augite will float on the hot liquid, crystals may be obtained on cooling which, dissolved in as
little water as possible, make a solution which will almost support olivine. If the two solutions be united,
the specific gravity of the mixture is 3.30–3.36. The highest attainable specific gravity; viz., 3.6, is
produced by continuing the evaporation on a water-bath until the liquid will support olivine, and then
allowing to stand in a closed place for twenty-four hours. The crystals of cadmium borotungstate thus
obtained are freed as much as possible from the mother-liquor by drainage and then melted at about 75°
in their own water of crystallization. A liquid is thus obtained on which spinel will float. The same
concentration may also be obtained by careful heating on a water-bath. At its highest specific gravity this
solution has an oily consistence and this renders its practical use in the separation of fine particles
somewhat restricted. By filtering the liquor when a crystalline crust begins to form during evaporation, a
cold solution of 3.360–3.365 specific gravity is obtained which is found practically useful. It has a higher
specific gravity than Thoulet’s mixture, is not injurious to any of the mineral particles, not even of iron
with which it is brought into contact, but the trouble of preparing it is far greater than that of the
mixture of mercuric and potassium iodids.
265. Rohrbach’s Solution.—The solution of barium mercuric iodid recommended by Rohrbach[171]
for this purpose was originally prepared by Suchsin. The solution must be rapidly prepared on account
of the tendency of the barium salt to decomposition. The solution is prepared by weighing rapidly 100
grams of barium and 130 grams of mercuric iodid, mixing the two salts well in a dry flask and adding
twenty cubic centimeters of water. The mixture is raised to a temperature of 150°–200° on an oil-bath.
The formation and solution of the double salt are promoted by constant stirring.
After solution, the liquor is boiled for a few minutes and then evaporated on a water-bath until it will
bear a crystal of epidote. On cooling, a small quantity of a yellow double salt is separated by
crystallization and the resulting mother-liquor is dense enough to carry a fragment of topaz. Inasmuch
as the liquor is filtered with difficulty, the clear mother-liquor should be separated by decantation after
standing for several days. This solution has the disadvantage of not being dilutable with water, the
addition of which causes a separation of red mercuric iodid. Were this solution not so easily
decomposed, it would prove of high value in silt separation.
266. Braun’s Separating Liquid.—In many respects the separatory solution proposed by
Braun[172] is superior to those already mentioned. It is the commercial methylene iodid, CH₂I₂, which
has at 16° a specific gravity of 3.32, at 5° of 3.35, and at 25° of 3.31. It is a strongly refractive liquid
having a refractive index of 1.7466 for the yellow ray.
As a separating medium the liquid is open to two objections; viz., first, it cannot be diluted with water
and, second, it turns brown on heating or on long exposure to the sunlight.
When dilution is necessary, it should be accomplished with benzene or xylene. To bring the diluted
liquor again to its maximum density, the benzene must be removed by evaporation, which causes a
considerable loss in the liquid. When this substance becomes opaque, the transparency may be restored
by removing the separated iodin by shaking with potash lye, washing with pure water, drying by the
addition of pieces of calcium chlorid and filtering. The same result may also be reached by freezing and
separating the liquid portion. The frozen portion on melting will have the density of the original liquid.
267. Method of Bréon.—Instead of a solution of a salt, Bréon[173] has proposed to use salts in a
fused state for separating mineral particles. Lead and zinc chlorids may be used for this purpose in a
melted state, having the specific gravities of 5.0 and 2.4, respectively. By mixing the molten salts in
different proportions, any desired specific gravity between the extremes mentioned may be secured. The
fusion is accomplished at 400° in a test-tube. The silt is added gradually with constant stirring until a
sharp separation is secured between the sinking and floating particles. After cooling, the tube is broken,
the two parts separated, and the silt recovered by dissolving the mixed salts in hot water containing a
little nitric acid. Only the coarser silts can be separated by this method. Fused silver nitrate, melting
point 198°, specific gravity 4.1, has also been used for separation.
268. The Separation.—Forty cubic centimeters of the solution in the Thoulet process are placed in
the separatory tube A, Fig. 58, together with from one to two grams of the silt and the stopper F inserted.
The tube G is connected with a vacuum apparatus by means of which any air particles adhering to the
mineral fragments are removed. The silt which sinks in the solution is removed after G has been
disconnected by opening the cock C and sucking through B at I. The cock C is closed and the separated
particles washed into a beaker at H after opening D. Water is next added to the materials left in A in
quantities previously determined to secure a given specific gravity and thus a second, a third, etc.,
separation secured. An intimate mixture of the solutions in A can be effected by closing D, opening C,
and blowing through B in such a way that no liquid is allowed to pass through C.
The quantity of water to be added in each case to
secure a given specific gravity is determined by the
formula v₁ = v(D − d)
d − 1 , in which v is the volume of the
solution, D its specific gravity, and d and v₁ the
specific gravity desired and volume of the water to be
added.
Example.—Let the specific gravity of the original
solution be 3.2, its volume thirty cubic centimeters,
and the desired specific gravity of the new solution
2.85.
Then v₁ = 30(3.2 − 2.85)
2.85 − 1 = 5.68.
The desired specific gravity is therefore secured by
adding 5.68 cubic centimeters of water, which is
easily accomplished by means of the graduations on
the tube.
According to Rosenbusch,[174] the calculated specific
gravity as made above is not wholly reliable on
account of the contraction which takes place. An Fig. 58.
empirical process is rather to be commended which
consists in introducing a fragment of mineral of Thoulet’s
Separating
known or desired specific gravity and then adding Apparatus.
water drop by drop until the fragment remains
suspended in the mixture. Should too much water be
added, the necessary increase in density can be secured by adding a
little of the strong solution.
269. Method of Packard.—A separatory funnel, according to
Packard,[175] may be safely used to hold the solution while separation
is going on. As the lighter minerals form the bulk of soils, the heavier
constituting only a small percentage, it is well to use a wide funnel
holding as much as one-half liter for quantitative separations,
because a large quantity of soil, say 100 grams, is necessary from
which to recover the small quantity of heavy particles satisfactorily.
The soil is introduced into the solution contained in the funnel,
agitated, stirred with a glass rod, and allowed to stand some time.
This operation may be repeated as often as desired. Separation is not
absolute by this operation, the heavy and light particles being
sometimes so united that they sink or float together according as one
or the other preponderates. There are also particles having so nearly
the same specific gravity as the solution that they remain indifferent
to its action in any position. After separation has been effected, the
heavy portion is drawn off through the stop-cock of the funnel and
the lighter is skimmed off the top. Both must be thoroughly washed
from the adhering heavy solution for further examination with the
microscope, and by chemical, microchemical, and blow-pipe tests.
One who has familiarized himself with the appearance of minerals in
minute fragments under the microscope, in ordinary and polarized
light, will be able to determine some minerals in that way. But for
certain identification it is necessary to ascertain their optical
properties as is done in the case of the minerals in thin sections of
rocks.
Illustration.—The following example from the work of Packard will
serve to illustrate the results of separating a soil by the specific
gravity method:
One hundred grams of soil, residual clay from the Trenton
limestone, were placed in the Thoulet’s solution contained in the
large separatory funnel. The heavy portion, after washing and drying,
weighed 0.6886 gram, or 0.69 per cent. Of this, the magnet removed
0.1635 gram, or 0.16 per cent. This heavy material consisted of
rounded yellowish and brown grains up to twenty-five millimeters in
diameter, mingled with lustrous angular black grains which were
seen under the microscope to be cubes with striated faces, cubes
penetrating each other and aggregations of cubes. Combinations of
cubes with octahedra and instances of the pentagonal dodecahedron
were also observed. These forms, characteristic of pyrites, were also
seen in the fine sand obtained as a residue on elutriating the same
soil. As these crystals dissolved in hydrochloric acid, giving a strong
iron solution, they were regarded as pseudomorphs of iron oxid after
pyrites. The yellowish grains on treatment with acid left a grayish
residue which contained some grains of quartz but was not wholly
quartz. The lighter portion of the soil, over ninety-nine per cent,
which floated in the Thoulet’s solution of 2.8 was next examined. It
was colored red by the iron oxid which coated and adhered to the
other minerals. It contained all the quartz, the feldspars if present,
and the other minerals whose specific gravity is less than 2.8. It was
examined by the microscope and found to consist largely of irregular
grains of a mineral which acted on polarized light, obscured
somewhat by the iron oxid, and was apparently quartz; and another
mineral which was yellowish-brown in color and seemed to be dull
and not transparent. Besides there was a large quantity of
indistinguishable amorphous material. To clean these minerals the
material was treated with hydrochloric acid to remove the iron oxid
and other matter soluble in acid, when the quartz grains appeared
transparent and gave interference colors in polarized light. But
mingled with these were grains of the other mineral which now
appeared grayish, dull, and without action on polarized light. The
character of this mineral substance could only be determined by
chemical analysis.
270. Harada’s Apparatus.—Although it has been affirmed by
some analysts that in the subsidence of small particles it is advisable
that the containing vessels have parallel sides, yet in the method just
given, and in those about to be described, good results are obtained
in a funnel or pear-shaped holder.
In the apparatus of Harada,[176] Fig. 59, the separating
vessel a is made of thick glass furnished with a glass
stopper above and a glass stop-cock h below. The
separating liquid and silt are placed in the pear-shaped
vessel a, the stopper inserted, and the whole well-shaken.
As soon as a ring of clear liquid is seen between the
sinking and floating silt, the lower end of the apparatus is
brought near the bottom of a conical glass b, the cock h
opened and the heavy silt allowed to fall out. Very little of
the liquor will flow out because of the air pressure.
Should an air bubble enter the apparatus and be held at
the stop-cock, it should be made to ascend by gently
Figure 59. tapping. When all the heavy silt has passed into the
conical glass, the cock h is closed and some water poured
Harada’s
Apparatus.
over the solution and silt in b. The separatory apparatus
is now raised until the beveled end of it is in the water
layer, when the water at once rises to h and thus washes
all the silt particles adhering to the glass into b. The liquid in a may
then be diluted by inverting the apparatus, adding the required
amount of water through h, again shaken after closing h, and another
separation secured as before.
This apparatus is somewhat easier to manipulate than Thoulet’s
but does not admit of the same quantitative dilution of the
separating liquid.
271. Apparatus of
Brögger.—All silt
separations in narrow
tubes are open to the
objection of permitting
more or less
flocculation. Some of
the lighter particles are
thus carried down by
the heavier, and, on the
other hand, some of the
heavier float with the
lighter. This disturbing
Fig. 60 a. Fig. 60 b. Fig. 60 c.
action Brögger[177] seeks
to avoid by the Brögger’s Apparatus.
following device, Fig.
60, a, b, c. The length of
the apparatus is forty-six centimeters, and its greatest diameter 3.5
centimeters. The opening in the large stop-cock A is the same
diameter as that of the apparatus at that point. The cubical content of
the apparatus with A open and B closed is about seventy-five cubic
centimeters. In conducting the separation the cock B is closed, the
separating liquid and silt introduced, A being open, the stopper K
inserted and the whole well-shaken. In the first separation, the silt S,
lying over B is contaminated with some of the lighter particles S′₂,
while the lighter particles above A, S₂, are mixed with some of the
heavier particles, S′₁. After closing A the apparatus is again well-
shaken and inverted as in Fig. 60 b. The two parts of the silt will now
undergo another separation as indicated. The apparatus is now
carefully inclined as in c, when the various grades of silt will flow in
the directions indicated by the arrows, but without mixing, passing
each other on opposite sides of the apparatus. When the movement
is complete, A is carefully opened, the apparatus still being held as in
c, and the light silt formerly between A and B will flow above A, while
the heavy silt above A will flow down and join the silt collected over
B. This operation may be repeated until a perfect separation is
effected. Finally B is opened and the heavy silt collected in a beaker,
and the lighter silt then removed from the upper part of the
apparatus.
Figure 61.
Apparatus of Wülfing.
Our website is not just a platform for buying books, but a bridge
connecting readers to the timeless values of culture and wisdom. With
an elegant, user-friendly interface and an intelligent search system,
we are committed to providing a quick and convenient shopping
experience. Additionally, our special promotions and home delivery
services ensure that you save time and fully enjoy the joy of reading.
ebookfinal.com