Command-Line Rust 1st Edition Ken Youens-Clark instant download
Command-Line Rust 1st Edition Ken Youens-Clark instant download
download
https://ebookmeta.com/product/command-line-rust-1st-edition-ken-
youens-clark/
https://ebookmeta.com/product/command-line-rust-a-project-based-
primer-for-writing-rust-clis-1st-edition-ken-youens-clark/
https://ebookmeta.com/product/command-line-rust-a-project-based-
primer-for-writing-rust-clis-1st-edition-ken-youens-clark-2/
https://ebookmeta.com/product/reproducible-bioinformatics-with-
python-first-early-release-ken-youens-clark/
https://ebookmeta.com/product/mathematical-modeling-in-the-age-
of-the-pandemic-textbooks-in-mathematics-1st-edition-william-p-
fox/
Sailing in Paradise 1st Edition Rod Heikell
https://ebookmeta.com/product/sailing-in-paradise-1st-edition-
rod-heikell/
https://ebookmeta.com/product/problems-and-solutions-on-
thermodynamics-and-statistical-mechanics-second-edition-swee-
cheng-lim/
https://ebookmeta.com/product/about-language-tasks-for-teachers-
of-english-2nd-edition-scott-thornbury/
https://ebookmeta.com/product/a-mans-word-2-an-isekai-fantasy-
princess-or-three-in-distress-1st-edition-marcus-sloss-stoham-
baginbott/
https://ebookmeta.com/product/spur-it-on-falling-for-the-bull-
riders-2-1st-edition-kitty-cox/
Putin's Prisoner 1st Edition Aiden Aslin
https://ebookmeta.com/product/putins-prisoner-1st-edition-aiden-
aslin/
Command-Line
Rust
Ken Youens-Clark
Command-Line Rust
Ken Youens-Clark
Command-Line Rust
by Ken Youens-Clark
Corbin Collins
Gregory Hyman
January 2022:
First Edition
The views expressed in this work are those of the author and do not
represent the publisher’s views. While the publisher and the author
have used good faith efforts to ensure that the information and
instructions contained in this work are accurate, the publisher and
the author disclaim all responsibility for errors or omissions, including
without limitation responsibility for damages resulting from the use of
or reliance on this work. Use of the information and instructions
contained in this work is at your own risk. If any code samples or
other technology this work contains or describes is subject to open
source licenses or the intellectual property rights of others, it is your
responsibility to ensure that your use thereof complies with such
licenses and/or rights.
978-1-098-10943-1
[LSI]
Table of Contents
Preface. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . ix
1. Truth or Consequences. . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
.........................1
Summary 16
Getting Started 20
Summary 41
iii
3. On the Catwalk. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . 43
Getting Started 48
Solution 63
Going Further 67
Summary 67
4. Head Aches. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . 69
Getting Started 73
Solution 86
Going Further 92
Summary 92
Solution 109
Summary 117
iv | Table of Contents
6. Den of Uniquity. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . 119
Solution 134
Summary 140
7. Finders Keepers. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . 141
Solution 157
Summary 167
Solution 191
Summary 198
Table of Contents | v
Solution 219
Summary 223
Solution 236
Summary 244
Solution 267
Summary 275
vi | Table of Contents
Solution 296
Summary 301
13. Rascalry. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . 303
Discovering Diverse Content Through
Random Scribd Documents
The Project Gutenberg eBook of
Capture and Escape: A Narrative of Army and
Prison Life
This ebook is for the use of anyone anywhere in the United States
and most other parts of the world at no cost and with almost no
restrictions whatsoever. You may copy it, give it away or re-use it
under the terms of the Project Gutenberg License included with this
ebook or online at www.gutenberg.org. If you are not located in the
United States, you will have to check the laws of the country where
you are located before using this eBook.
Language: English
FOOTNOTES:
[1] Although General Warren never did and probably never will be
able to arouse an army corps, in the middle of the night, from the
deep sleep that follows the exhaustion of a battle, build a bridge
thirty feet long over a brawling stream swollen by a twelve hours'
rain, and march five miles over muddy roads, in an hour from the
time he receives the order, it is quite doubtful whether more than
one general officer could be found in the United States who would
require it or imagine it could be done; and I assert that no more
efficient and patriotic officer than Warren ever wore a star.
[2] The Iron Brigade was at first composed of the Second, Sixth, and
Seventh Wisconsin, and the Nineteenth Indiana. In October, 1862,
was added the Twenty-fourth Michigan. The heaviest loss by
brigades, in the entire Union army, fell to this command.—Editor.
Captured
A Confederate regiment, the Thirteenth Georgia, had, in the mêlée,
become detached from its brigade, and was lost in the dense forest.
The commanding officer had ordered the men to lie down in a
thicket, and unfortunately I had surprised them. Not being in the
humor just then to "surround them," like the Irishman, I surrendered
at discretion, and was immediately disarmed and conducted to the
commander, when the following conversation took place:
Confederate Officer. Captain, were you in the skirmish line out
yonder?
Yank. I am a prisoner, sir, and must decline to answer any questions
touching our position or forces.
Confederate. That's all right, Captain, but I would like to know
whether you have any skirmishers in there. Do you know where
Gordon's brigade is?
Yank. Gordon's brigade! Why, I don't know where I am myself.
Confederate. Then there are two of us in the same fix. To tell the
truth, I am lost. I got through an interval in your lines, I think; at all
events, I found myself in your rear without knowing how I got there,
and was trying to get back when you uns run over us. We just lay
still, and the Yanks passed us.
Yank. In which direction did they go?
Confederate. Out yon.
Yank. Then it strikes me that your rear is in an opposite direction.
Confederate. Well, yes, I reckon so. Corporal, take this officer to the
rear and find the Provost Marshal and report him.
En Route to Lynchburg
I found myself traveling toward Richmond in quite different company
and under less favorable auspices than I had ever imagined would
be my lot. After running about an hour we at length found the
Provost guard of the Confederate army, and to my chagrin about
twelve hundred of my companions in misfortune. Some, like myself,
were wounded. Some expressed impatience and mortification.
Others evidently accepted their condition as inevitable and
determined to make the best of it, expressing more concern for the
success of our arms than solicitude for themselves.
At a little distance from the prison corral were the badly wounded,
awaiting the ministrations of a surgeon. There, under a large tree,
on a blanket, lay the gallant Captain Converse, a prisoner, wounded
and dying; by his side, with one leg already amputated, Corporal
Frank Hare, with cocked revolver, kept at bay a couple of the
enemy's surgeons who were desirous of experimenting upon the yet
breathing body of his leader. The heroism of those two men was
sublime. The Captain had been shot through the body and both
thighs. It was utterly impossible for him to recover. He knew that his
moments were numbered, and the end was nigh. He only asked to
be permitted to die in peace, but the surgeons were desirous of
experimenting upon him by what is known as the "hip amputation."
Converse had overheard their conversation, and directed Hare to put
his hand in a certain pocket and get his revolver, which had been
overlooked when his captors took his side-arms, and, armed with
this, to prevent them from torturing him. Hare did as his officer
directed; and when they attempted to remove his Captain he cocked
the revolver, and in quiet, yet firm tones, warned them that he
would shoot the first man that laid a hand on him. Weapons were
pointed at him, with threats to kill him if he did not surrender the
pistol. Hare only laughed at them, asking them what they supposed
he cared for life, with one leg gone?
Struck with admiration for his bravery, the guard was withdrawn. A
Confederate officer, standing near, filled with admiration of his
heroism, said, "I would like a regiment of such men!"
This aroused the dying Captain, who, his eyes flashing with patriotic
fire, told him that he had the honor to lead a hundred just such
men, and added: "The North is full of them. Sooner or later we shall
triumph, and your rebel rag will be trampled beneath their feet."
With these brave, prophetic words he breathed out his young life, a
willing sacrifice upon the altar of his country. At the instant he
expired the sun broke through a rift in the battle cloud, and glancing
down through the shimmering foliage of the forest tree, illumined
the face of the dead. I thought it the pathway of the angel that bore
aloft the released spirit of my comrade and friend.
I have seen men in the mad excitement of a charge perform reckless
deeds of bravery, facing death with apparent nonchalance, and
admired them for their soldierly bearing and courage; but this was
something different. It will be difficult to find an instance in either
ancient or modern history, of greater fidelity, love, confidence,
courage, and fearless patriotism than was displayed by these two
wounded heroes. High up on the list of those made deathless by
heroic deeds, should be inscribed the names of Captain Rollin P.
Converse and Corporal Frank Hare.
Before I witnessed the death of Converse, I had felt despondent, but
now the sight of his calm courage determined me to bear my own
lot with philosophy. As a matter of fact, I was no worse off than
thousands of others, and vastly better off than many. Even then, I
began to plan some way for escape.
A short time only was allowed us to rest and recuperate. All able to
march at all were soon en route for Orange Court House, under the
escort of a strong guard. There were several hundred of us. Among
others I recollect Colonel Grover, a gallant officer of the Seventh
Indiana. Although the distance could not have been more than eight
or ten miles, perhaps less, it was about 10 o'clock before we arrived
at our destination for the night. During the march in the darkness
several of the prisoners made their escape, but I believe that all
these were eventually recaptured.
No rations had been issued to us, and many were ready to faint from
hunger and fatigue, but the "bitter cud" of our disappointment was
all we then had to chew. So far, we had been in the hands of
soldiers, and our treatment had been as good as we had any reason
to expect. But upon our arrival at Orange Court House we were
turned over to a squint-eyed, knock-kneed Provost-Marshal and his
home guard, and with the change of guard came a most decided
change in our treatment.
Cowards are always tyrants, and this redheaded commander of the
home guard was no exception to the rule. The enlisted men were
separated from the officers and driven into a dirty back yard, where
they bivouacked quite comfortably, for they had their rubber and
woolen blankets and could on ordinary occasions sleep as well
without shelter. But they were aroused at an early hour in the
morning, and under the directions of the squint-eyed Provost
Marshal systematically robbed of their blankets, both rubber and
woolen, also their knapsacks. One poor fellow, indignant at such
robbery, tore his blanket into strips. This act being observed by the
delectable specimen of Confederate chivalry, he sprang upon him
with a club and knocked him down, striking him several blows while
he lay on the ground, senseless and bleeding. Some of our officers
remonstrated against such plain violation of civilized warfare, and
were coolly told they had better keep their sympathy to themselves,
as they would probably need it all for home consumption.
On inquiry we learned that no rations could be obtained, but were
kindly permitted to purchase from a sutler a corn-dodger and cup of
coffee each, for which we paid two dollars apiece, in greenbacks.
Soon after breakfast, we were formed in column for marching, and
started for Gordonsville.
If some of us had been with our commands, instead of being
prisoners, we probably would not have thought we could endure the
march in the hot sun. My head was badly swollen and pained me
greatly; this, together with the heat, insufficient food, and
depression of spirits consequent upon the situation, almost
unmanned me. Keep up with the column I could not. Finally, two or
three of us cripples were permitted to fall behind under the guard of
one man, and never in my life did I feel the need of money so badly,
for if we could have raised only fifty dollars in greenbacks we had
reason to believe our guard's cupidity would have easily overcome
his sense of duty. But alas! The money was not to be commanded;
so, a few rods at a time, we continued our march.
Just as it was getting dark we reached Gordonsville. Although the
distance traversed was comparatively short, yet I venture to say the
day's march will be remembered by that little squad of cripples
longer than many another of double the distance. One of the things
that discouraged us was the reports concerning the battle of the day
before, received from Confederate sources. We were informed that
our forces were in full retreat to Washington, that our loss was about
one-half our effective force, and the like.
Immediately upon our arrival at Gordonsville we were corralled in a
railroad excavation and closely guarded. The next morning we were
loaded upon freight cars, and to our surprise found that Lynchburg,
not Richmond, was our destination.
Upon this slight foundation we immediately began to build great
hopes. If we had lost the battle, what was the reason we were not
shipped to Libby and Belle Isle? We had not then heard of a great
man's famous expression, "I propose to fight it out on this line if it
takes all summer." The celebrated flank movement that placed the
army south of Richmond and bottled up the Confederate army,
existed only in the prolific brain of the greatest soldier of the age.
The Army of the Potomac had so many times marched up the hill,
only to march down again, that we began to look upon this
performance as the regular thing. We did not realize that this army
was then under the guidance of a man who knew no such word as
fail; who, if whipped on one day, only fought harder the next.
Our trip to Lynchburg was relieved of its monotony by one
circumstance. The bottom of one of the cars was mined, a plank was
cut out, and when a halt was made to take on wood and water, one
or two adventurous fellows crawled through and dug the dirt from
between two of the ties, so as to allow them room to escape
collision with the bottom of the cars, lying there while the train
passed over them. The ruse was successful, so far as escaping from
the train was concerned; but unfortunately the fugitives were
discovered as soon as the train passed by, and recaptured. The
attempt was a foolish one, but indicative of the general disposition
to attempt any manner of escape that had the slightest chance for
success.
Arrival at Lynchburg
The next morning we arrived at Lynchburg, and were taken from the
cars. Here occurred a ludicrous scene, that, notwithstanding their
situation, furnished our boys a hearty laugh. Some philosopher has
said, "Man is an animal that laughs." Man is the only animal that
laughs. This, as distinctly as speech, marks the distinction between
reasoning beings and brute instinct. Show me a man who never
laughs, and I will show you one whose instincts are brutish and
cruel. These thousands or more prisoners, surrounded by enemies,
cut off from all that makes life endurable, deprived of liberty,
laughed heartily, and it did them good.
A militia company had been improvised to act as our guard and
escort us from the cars to the prison. They were not uniformed,
being dressed in everything from swallow-tailed coats and slippers to
home-spun butternut, and armed with everything that could shoot,
from a carbine to a flint-lock musket. The members were of all ages,
from school boys to decrepit old men. They were commanded by a
young fellow in a nondescript uniform. His sword and scabbard were
the only really soldierly things about him, and were handled about
as awkwardly as we had handled ours, when first transformed from
citizens into officers, two or three years before.
This amateur officer wanted the prisoners formed into four ranks,
faced in the proper direction, but how to do it was a problem to him.
After several abortive attempts, our folks obeying every order
strictly, which only demonstrated the fact that his orders failed to
convey his meaning, he at last lost patience and roared out: "G——
d—— it! I want you Yanks to git in four ranks, faced yon way!"
This direction, though not in strict accordance with military parlance,
was at least intelligible; and after much pulling and hauling, the
desired result was accomplished, every man merrily repeating the
order, and pushing and pulling his fellows. Then he attempted to
form his guard on either flank of the column. He had great difficulty
in bringing this about, for our boys insisted on obeying every order
given to the guard. At last, out of patience with us, he exclaimed:
"See here! I want you Yanks to stand still, when I give orders! I'm
speaking to the company, not you uns!"
When at length he had formed the order of march, he commanded,
"Forward, march!" The guard started, and we stood still. This was
not observed until about half of the guard had passed us. This
necessitated a halt, and he then explained that now he wanted us to
"git up along with the balance."
Thus, laughing and jesting, we passed up the street and into our
first prison pen, an old tobacco warehouse situated on the principal
street, but rather small for the company it was expected to
entertain. Here we commenced our prison life.
Attached to the building was a small yard, which at certain hours we
were permitted to visit, for the purpose of supplying ourselves with
water, washing clothes, exercise, etc. Our prison proper was a room
about twenty by fifty feet. Into this space were crowded nearly two
hundred officers; for prior to this time the enlisted men had been
separated from us, while additions of officers from other sources had
been added to our squad.
Treatment at Lynchburg
The floors of the building were filthy, and the ceilings swarmed with
vermin. The only ventilation was from two windows at one end of
the room. The building was only a fit habitation for the rats that
infested it. Very few of us had blankets, and none were issued to us.
At night we were obliged to lie on the floor, so closely packed that
every inch of space was occupied; and if necessity required one to
leave the room during the night, he was compelled to travel over his
comrades to accomplish his purpose. Before morning the air would
become almost poisonous, through lack of ventilation.
Our rations here consisted of bread and a small quantity of meat.
They were good in quality, although rather limited in quantity; but
our experience as soldiers, sometimes on short rations, would have
accustomed us to such hardships, if we could only have divested
ourselves of the intense longing for liberty. Compared with other
Southern prisons, our condition here was quite tolerable.
The officer in command of this prison was humane. Only once did he
show any temper, and that was one night when we all began to sing
patriotic songs, ending with "Old John Brown." When we got to
"We'll hang Jeff Davis on a sour apple tree."
he came into the room and ordered us to stop singing; but we only
sang the louder, telling him that our tongues were our own, and we
should sing if we wanted to.
"Well," he replied, "sing, if you will, but you shan't eat, for I'll stop
your rations."
This had the desired effect. Our sonorous chorus soon sank to a
feeble quaver and faded away. Some of us consoled ourselves with
the memory of one occasion when the Iron Brigade entered
Warrenton, every man singing "John Brown," the column keeping
time to the music. But we did not sing any more on this occasion.
For a time we kept up our courage by cheerful conversation or
practical jokes. Sometimes an amusing incident would serve to break
the monotony, and was eagerly seized upon and made the most of.
Many obtained nick-names, such as "Lengthy," "Shorty,"
"Whitehead," etc. One, a Lieutenant Wetterville, obtained the
nickname of "Rats" in this way: One night, after all had retired, and
the cheerful snore began to enliven the sleepless hours of the
restless, this young officer was roused from his slumbers by a huge
rat gnawing his toes. He sprang to his feet in affright, and ran the
length of the room, shouting: "Rats! Rats!" arousing all the sleepers,
to the indignation of some and the mirth of others. The scene ended
with three cheers and a tiger, for "Rats." This light-heartedness was
but the foam on the surface, and only ill concealed the troubled
under-current that was gradually mining away the better feelings of
our natures.
The mind of man is so constituted that he cannot be deprived of his
liberty for any considerable time, without there being generated an
inordinate desire to be free. Actual physical ills become secondary to
this acute desire:
"The wish which ages have not yet subdued,
In man to have no master but his mood."
At Danville
Before we had perfected our tunnel, we were removed to Danville.
There we were confined in a two-storied brick building that had
been used as a prison for deserters, and was filthy beyond
description. The floors were covered with dirt and grease, and
literally swarmed with vermin. Our rations here, consisted of pea
soup and corn bread. Such bread, and such soup! The very
recollection is nauseating. Guards were stationed around the
building, with orders to shoot any person seen looking out of the
windows. The first knowledge we had of the existence of such an
order was, by a bullet whistling through the room, and grazing an
officer's head. The official in charge of the prison apologized for this
occurrence, telling us that he had forgotten to notify us of the
standing order given the guard, a slight omission that might have
proved fatal to some of us.
Removed to Macon
We remained here but a few days, when we were again packed in
freight cars and started for Macon, Georgia. Every change in our
place of imprisonment thus far had been for the worse, yet we
hailed this news almost with rapture. We thought, poor fools! that
anything was better than our present situation. Alas! We had not yet
tasted the dregs of the bitter draught before us. We had not
conceived the idea that such a brute as "Hog Winder" could exist, or
that men wearing the human form could be so debased as to serve
as the willing agents of such a demon. We had not even heard the
names of Tabb and Wirz. We were then miserably dirty, covered with
vermin, and half starved; but we had yet to learn the horrors of
starvation.
Happily ignorant of the future, we gladly started for our new
destination. A rumor of an exchange in progress filled us with new
hope, and although standing room was scarce and a chance to sit
down at a premium in our crowded cars—seventy-five men being
packed into each small-sized freight car—once more the song and
jest went round. We could even laugh, as we told and retold each
other that we should certainly be exchanged now; the more
sanguine being sure that we were even then on the way to a general
rendezvous established on the coast for that purpose.
While the train halted at Augusta to take on wood, a crowd gathered
around to see the show—among others a boy about twelve years
old, who carried a large market basket filled with sandwiches. We
looked longingly at the food and tried to purchase, but he refused to
sell to "Yanks," and the guard seemed highly pleased at his spirit,
allowing him to approach near to the train.
Ours was the last car, and he lingered around the rear of it, talking
with us, always in the most defiant manner; only it seemed to me
that his countenance did not denote him to be the ferocious rebel
his language seemed to indicate, and I could not help thinking it
strange that he should refuse to sell to the guards, who tried to buy
of him. At last the train began to move. He waited until we were
fairly under way, then tossed the basket to us and ran back into the
crowd.
In the basket was a note from his mother, a Union woman, filled
with brave, hopeful words, saying that she trusted to the native
shrewdness of her son to secure to us her offering. The note was
handed round, and many a thankful heart blessed that woman, not
so much for the timely offering of food, as for the words of
sympathy and kindness that accompanied the gift.
After a long and exceedingly tiresome journey, we arrived at Macon.
I can not even now repress a shudder as I pronounce that name. It
is associated in my mind with suffering, misery, starvation, death.
Near a beautiful grove of trees, about twenty rods from the railroad,
was an enclosure of about five acres, nearly square in form,
surrounded by a fence constructed of pine boards twelve feet long,
fastened perpendicularly to rails in the same manner we sometimes
see tight-board-fences made in the North. Four feet from the top, on
the outside, a walk was constructed. On this sentinels were
stationed at intervals of about fifty feet. Near the entrance, on the
outside, was the office of the commander of the prison, a small
wooden structure.
Upon our arrival we were passed into the office, one at a time, and
from there into the prison yard. We could not imagine why so much
caution should be used in passing us in. Some suspected that the
Provost Marshal wanted to examine our passports. At length my turn
came, and I passed in. Before me stood a thing in uniform. I cannot
describe his personal appearance. Imagine, if you can, an
excessively vicious baboon, dressed in gray, half drunk, and you
have him—Captain Tabb!
Upon my entrance he looked me over and observed to a
subordinate, "No pickin's here!" Then he walked up to me, and with
the dexterity of an expert pickpocket inserted his hands in my
pockets. He seemed intuitively to know the exact location of each
one. If my life had depended on keeping silence, I could not have
refrained from telling him, as I did, when he found nothing to
reward his industry, that another thief had forestalled him.
I expected that he would be very angry at hearing this, but he only
laughed, remarking: "I kind o' reck'ned from your looks that you'd
been cleaned out. You can git." Filled with indignation and disgust, I
left his presence, and was ushered into the Macon prison pen.