stan_ch: переводы
bash Cookbook / bash: Сборник рецептов
→Enough (several books this size worth) has already been said about all of these
aspects of GNU, Unix, and Linux, but we felt that this brief note was appropriate.
See http://www.gnu.org for much more on the topic.
aspects of GNU, Unix, and Linux, but we felt that this brief note was appropriate.
See http://www.gnu.org for much more on the topic.
0 Мы уже достаточно рассказали о GNU, Unix, Linux (по этой теме можно написать несколько книг такого же размера), но мы чувствуем, что данное краткое изложение этих вопросов было необходимо. Для получения дополнительной информации воспользуйтесь ссылкой http://www.gnu.org.
→The GNU project has contributed a vast amount of superior software, notably
including bash, but there are GNU versions of practically every tool we discuss in
this book. And while the GNU tools are more rich in terms of features and (usually)
friendliness, they are also sometimes a little different. We discuss this in Recipe 15.3,
“Developing Portable Shell Scripts,” though the commercial Unix vendors in the
1980s and 1990s are also largely to blame for these differences.
including bash, but there are GNU versions of practically every tool we discuss in
this book. And while the GNU tools are more rich in terms of features and (usually)
friendliness, they are also sometimes a little different. We discuss this in Recipe 15.3,
“Developing Portable Shell Scripts,” though the commercial Unix vendors in the
1980s and 1990s are also largely to blame for these differences.
0 Проект GNU поддерживает огромное количество превосходного программного обеспечения, включая bash, и практически для каждого инструмента, обсуждаемого в данной книге, найдется несколько GNU версий. В то время как, инструменты GNU имеют более богатый набор возможностей и (обычно) более дружественный интерфейс, они могут иметь и небольшие отличия друг от друга. Мы обсуждаем этот вопрос в Рецепте 15.3, "Разработка переносимых скриптов оболочки". Тем не менее, пользователи коммерческих версий Unix в 1980-х и 1990-х годах активно осуждали наличие подобных отличий.
→The GNU project argues that Linux should in fact be called “GNU/Linux” and they
have a good point, so some distributions, notably Debian, do this. Therefore GNU’s
goal has arguably been achieved, though the result is not exclusively GNU.
have a good point, so some distributions, notably Debian, do this. Therefore GNU’s
goal has arguably been achieved, though the result is not exclusively GNU.
0 В проекте GNU поддерживается мнение о том, что операционная система Linux на самом деле должна называться "GNU/Linux", и эта точка зрения является довольно распространенной, так что некоторые дистрибутивы, например Debian, называют себя именно таким образом. Поэтому цель проекта GNU вероятно можно считать достигнутой, хотя результат и не принадлежит исключительно GNU.
→Without getting into too much detail, what is commonly referred to as Linux is, in
fact, a kernel with various supporting software as a core.The GNU tools are wrapped
around it and it has a vast array of other software possibly included, depending on
your distribution. However, the Linux kernel itself is not GNU software.
fact, a kernel with various supporting software as a core.The GNU tools are wrapped
around it and it has a vast array of other software possibly included, depending on
your distribution. However, the Linux kernel itself is not GNU software.
0 Не вдаваясь глубоко в детали о том, что обычно понимают под Linux, можно сказать, что Linux - это ядро системы, включая сопутствующее программное обеспечение. Инструменты GNU обрамляют ядро, наряду с обширным перечнем другого программного обеспечения, которое может варьироваться в зависимости от Вашего дистрибутива. Стоит отметить, что ядро Linux само не является программным обеспечением GNU.
→This book covers bash, the GNU Bourne Again Shell, which is a member of the
Bourne family of shells that includes the original Bourne shell sh, the Kornshell ksh,
and the Public Domain Korn Shell pdksh. While these and other shells such as dash,
and zsh are not specifically covered, odds are that most of the scripts will work pretty
well with them.
Bourne family of shells that includes the original Bourne shell sh, the Kornshell ksh,
and the Public Domain Korn Shell pdksh. While these and other shells such as dash,
and zsh are not specifically covered, odds are that most of the scripts will work pretty
well with them.
0 Эта книга описывает bash (GNU Bourne Again Shell), который является членом семейства командных интерпретаторов Bourne, которое, в свою очередь, включает в себя оригинальный Bourne shell sh, Kornshell ksh и Public Domain Korn Shell pdksh. До тех пор, пока вышеупомянутые и другие оболочки, типа dash и zsh не используют свои отличительные особенности, большинство скриптов будет в них работать.
→This book was written using OpenOffice.org Writer running on whatever Linux or
Windows machine happened to be handy, and kept in Subversion (see Appendix D).
The nature of the Open Document Format facilitated many critical aspects of writing this book, including cross-references and extracting code see Recipe 13.17, “Processing Files with No Line Breaks.”
Windows machine happened to be handy, and kept in Subversion (see Appendix D).
The nature of the Open Document Format facilitated many critical aspects of writing this book, including cross-references and extracting code see Recipe 13.17, “Processing Files with No Line Breaks.”
0 Эта книга была написана с помощью редактора OpenOffice.org, c которым одинаково удобно работать как в Linux, так и в Windows. В качестве системы контроля версий использовался Subversion. Использование открытого формата документа упростило множество важных аспектов написания данной книги, включая создание перекрестных ссылок и извлечение кода (см. Рецепт 13.17 - "Обработка файлов без символа перевода строки").
→A great part of the Unix philosophy is to build simple tools that do one thing well,
then combine them as needed. This combination of tools is of ten accomplished via a
shell script because these commands, called pipe lines, can be long or difficult to
remember and type. Where appropriate, we’ll cover the use of many of these tools in
the context of the shell script as the glue that holds the pieces together to achieve the
goal.
then combine them as needed. This combination of tools is of ten accomplished via a
shell script because these commands, called pipe lines, can be long or difficult to
remember and type. Where appropriate, we’ll cover the use of many of these tools in
the context of the shell script as the glue that holds the pieces together to achieve the
goal.
0 Основной частью философии Unix является построение простых инструментов, делающих хорошо одну вещь, и их последующие комбинирование по необходимости. Такая комбинация, которая может состоять из десятка инструментов, обычно выполняется с помощью скрипта оболочки, так как все эти команды, называемые конвейером, могут быть длинными и сложными для запоминания и набора. Там, где это будет уместно, мы будем использовать множество из этих инструментов внутри скрипта оболочки, который как клей, соединяет отдельные куски вместе для достижения конечной цели.
→bash, and many of the tools we discuss in this book, are part of the GNU Project
(http://www.gnu.org/). GNU (pronounced guh-noo, like canoe) is are cursive acronym for “GNU’s Not Unix” and the project dates back to 1984. Its goal is to develop
a free (as in freedom) Unix-like operating system.
(http://www.gnu.org/). GNU (pronounced guh-noo, like canoe) is are cursive acronym for “GNU’s Not Unix” and the project dates back to 1984. Its goal is to develop
a free (as in freedom) Unix-like operating system.
0 bash, как и многие из рассматриваемых в этой книге инструментов, являются частью проекта GNU (http://www.gnu.org/). GNU (произносится как гу-ну, напоминая по произношению английское слово каноэ (кэ-ну)) является рекурсивной аббревиатурой для “GNU’s Not Unix” (GNU - не Unix), а сам проект стартовал в 1984 году. Его целью является разработка свободной (как предмет свободы) Unix подобной операционной системы.
→You should be able to read this book cover to cover, and also just pick it up and read
anything that catches your eye. But perhaps most importantly, we hope that when
you have a question about how to do something or you need a hint, you will be able
to easily find the right answer—or something close enough—and save time and
effort.
anything that catches your eye. But perhaps most importantly, we hope that when
you have a question about how to do something or you need a hint, you will be able
to easily find the right answer—or something close enough—and save time and
effort.
0 Вы можете читать эту книгу последовательно от первого до последнего листа, а можете просто открывать любую страницу и читать то, что попадется на Ваши глаза. Но, возможно, самое важное, на что мы надеемся, это то, что когда у Вас возникнет вопрос о том, как сделать что-то или Вы будете нуждаться в подсказке, Вы без труда сможете найти правильный ответ, или что-нибудь достаточно близкое к нему, сэкономив свое время и усилия.
→This book will only briefly cover basic and intermediate shell scripting — see Learning the bash Shell by Cameron Newham (O’Reilly) and Classic Shell Scripting by Nelson H.F. Beebe and Arnold Robbins (O’Reilly) for more in-depth coverage. Instead, our goal is to provide solutions to common problems, with a strong focus on the “howto” rather than the theory. We hope this book will save you time when figuring out solutions or trying to remember syntax. In fact, that’s why we wrote this book. It’s one we wanted to read through to get ideas, then refer to practical working examples when needed. That way we don’t have to remember the subtle differences between the shell, Perl, C, and so forth.
0 Эта книга лишь коротко освещает начальные и средние уровни программирования shell - для более детального изучения смотрите книги Learning the bash Shell by Cameron Newham (O’Reilly) и Classic Shell Scripting by Nelson H.F. Beebe and Arnold Robbins (O’Reilly). Вместо этого, наша цель - показать решения общих задач, причем скорее с точки зрения "как сделать", нежели дать теорию. Мы надеемся, эта книга сохранит Ваше время на поиски решения и попытки запомнить синтаксис команд. На самом деле, именно для этого мы и написали эту книгу. Единственно, что мы хотели - показать идеи и примеры их практического использования, когда это необходимо. Таким образом, нам нет необходимости учитывать тонкие различия между shell, Perl, C и подобных языках.
→This book assumes you have access to a Unix or Linux system (or see Recipe1.15, “Getting bash Without Getting bash” and Recipe15.4, “Testing Scripts in VMware”) and are familiar with logging in, typing basic commands, and using a text editor. You do not have to be root to use the vast majority of the recipes, thought here are a few, particularly dealing with installing bash, where root access will be needed.
0 Для работы с этой книгой, предполагается, что Вы имеете доступ к Unix или Linux системе (или см. Рецепт 1.15 - "Использование bash не имея bash" и Рецепт 15.4 - "Тестирование скриптов в VMware") и знакомы с процедурой входа в систему, основными текстовыми командами, а также умеете пользоваться текстовым редактором. Вам не обязательно иметь права администратора для того, чтобы использовать большинство приведенных советов, хотя среди них есть несколько, в основном связанных с установкой bash, где права администратора необходимы.
→Ideal readers include:
• New Unix or Linux users who don’t know much about the shell, but want to do more than point and click
• Experienced Unix or Linux users and system administrators looking for quick answers to shell scripting questions
• Programmers who work in a Unix or Linux (or even Windows) environment and want to be more productive
• New Unix or Linux sysadmins, or those coming from a Windows environment who need to come up to speed quickly
• Experienced Windows users and sysadmins who want a more powerful scripting environment
• New Unix or Linux users who don’t know much about the shell, but want to do more than point and click
• Experienced Unix or Linux users and system administrators looking for quick answers to shell scripting questions
• Programmers who work in a Unix or Linux (or even Windows) environment and want to be more productive
• New Unix or Linux sysadmins, or those coming from a Windows environment who need to come up to speed quickly
• Experienced Windows users and sysadmins who want a more powerful scripting environment
0 Идельными читателями являются:
• Новички в использовании Unix или Linux, которые пока еще много не знают об оболочке, но хотят делать больше, чем кликать мышью
• Опытные пользователи Unix или Linux, а также системные администраторы, которые ищут быстрые ответы на вопросы, связанные с программированием оболочки.
• Программисты, работающие в операционных системах Unix или Linux (и даже Windows), желающие увеличить свою производительность
• Новички в администрировании Unix или Linux, и те, кто использовал раньше Windows, которые нуждаются в быстром старте
• Опытные пользователи Windows и системные администраторы, которые хотят иметь более мощную программируемую среду
• Новички в использовании Unix или Linux, которые пока еще много не знают об оболочке, но хотят делать больше, чем кликать мышью
• Опытные пользователи Unix или Linux, а также системные администраторы, которые ищут быстрые ответы на вопросы, связанные с программированием оболочки.
• Программисты, работающие в операционных системах Unix или Linux (и даже Windows), желающие увеличить свою производительность
• Новички в администрировании Unix или Linux, и те, кто использовал раньше Windows, которые нуждаются в быстром старте
• Опытные пользователи Windows и системные администраторы, которые хотят иметь более мощную программируемую среду
→Anyone? Yes. New users will appreciate the sections on automating repetitive tasks, making simple substitutions, and customizing their environment to be more friendly and perhaps behave in more familiar ways. Power users and administrators will find new and different solutions to common tasks and challenges. Advanced users will have a collection of techniques they can use at a moment’s notice to put out the latest fire, without having to remember every little detail of syntax.
0 Для всех? Да. Новички оценят разделы об автоматизации выполнения повторяющихся задач, применении простых подстановок и настройке рабочего окружения таким образом, чтобы оно стало более дружелюбным и знакомым. Искушенные пользователи и администраторы найдут новые и необычные способы решения общих задач и сложных проблем. Опытные пользователи найдут коллекцию технических приемов, которые они смогут немедленно использовать без необходимости помнить о каждой мелкой детали в синтаксисе.
→This book is for anyone who uses a Unix or Linux system, as well as system administrators who may use several systems on any given day. With it, you will be able to create scripts that allow you to accomplish more, in less time, more easily, consistently, and repeatably than ever before.
0 Эта книга будет полезна всем тем, кто использует Unix или Linux, включая системных администраторов, которые могут работать с несколькими системами каждый день. С помощью этой книги, Вы сможете создавать скрипты, которые позволят Вам достигать большего за меньшее время, с большей легкостью, последовательностью и возможностью повторного использования, по сравнению с тем, как Вы могли бы сделать это раньше.
Резюме
- Пол:
- мужчина
- Родной язык:
- русский
- С нами:
-
с 5 января 2009 г.
(6495 дней)
Не является членом клуба. - Деятельность:
-
14 версий перевода
с общим рейтингом 0
Карма: 1 (оценок: 1)
