Lakshman S. - Linux Shell Scripting Cookbook [2011, PDF, ENG] + Code

seeders: 6
leechers: 0
Added 15 years ago by Danilov in Books  > Non-Fiction

Download Fast Safe Anonymous
movies, software, shows...

Files

Lakshman S. - Linux Shell Scripting Cookbook [2011, PDF, ENG] + Code (Size: 12.63 MB)
  3760_Code
  3760_01_code
  baseconvert.sh 294 B
  baseconvert.sh.out 124 B
  debug.sh 111 B
  debug.sh.out 151 B
  out.txt 21 B
  passwd_line.sh 293 B
  passwd_line.sh.out 46 B
  password.sh 148 B
  password.sh.out 69 B
  printf.sh 217 B
  printf.sh.out 91 B
  recipe1.txt 568 B
  recipe10.txt 661 B
  recipe11.txt 537 B
  recipe12.txt 491 B
  recipe13.txt 541 B
  recipe14.txt 581 B
  recipe2.txt 528 B
  recipe3.txt 569 B
  recipe4.txt 967 B
  recipe5.txt 550 B
  recipe6.txt 155 B
  recipe7.txt 673 B
  recipe8.txt 376 B
  recipe9.txt 148 B
  script.sh 128 B
  script.sh.out 119 B
  superuser.sh 101 B
  superuser.sh.out 85 B
  time_take.sh 228 B
  time_take.sh.out 63 B
  variables.sh 89 B
  variables.sh.out 19 B
  3760_02_code
  aspellcheck.sh 238 B
  aspellcheck.sh.out 103 B
  automate_expect.sh 201 B
  automate_expect.sh.out 105 B
  checkword.sh 234 B
  checkword.sh.out 102 B
  data.txt 52 B
  data2.txt 39 B
  data3.txt 40 B
  example.txt 29 B
  file 6 B
  file1 6 B
  file2 6 B
  file3 6 B
  interactive.sh 128 B
  interactive.sh.out 69 B
  output.session 618 B
  recipe1.txt 373 B
  recipe10.txt 285 B
  recipe11.txt 158 B
  recipe12.txt 126 B
  recipe2.txt 537 B
  recipe3.txt 2.05 KB
  recipe4.txt 1.59 KB
  recipe5.txt 742 B
  recipe6.txt 680 B
  recipe7.txt 1.4 KB
  recipe8.txt 232 B
  recipe9.txt 1.25 KB
  rename
  pic-image1.jpg?042148 0 B
  pic-image10.jpg?042148 0 B
  pic-image2.jpg?042148 0 B
  pic-image3.jpg?042148 0 B
  pic-image4.jpg?042148 0 B
  pic-image5.jpg?042148 0 B
  pic-image6.jpg?042148 0 B
  pic-image7.jpg?042148 0 B
  pic-image8.jpg?042148 0 B
  pic-image9.jpg?042148 0 B
  rename.sh 181 B
  server
  server.log 418 B
  server01.log 140 B
  server02.log 138 B
  server03.log 140 B
  sort.sh 212 B
  sort.sh.out 20 B
  sorted.txt 23 B
  split
  data.file 100 KB
  xaa 10 KB
  xab 10 KB
  xac 10 KB
  xad 10 KB
  xae 10 KB
  xaf 10 KB
  xag 10 KB
  xah 10 KB
  xai 10 KB
  xaj 10 KB
  sum.txt 10 B
  timing.log 205 B
  3760_03_code
  duplicates
  duplicate_sample 52 B
  other 5 B
  remove_duplicates.sh 703 B
  remove_duplicates.sh.out 133 B
  test 0 B
  test_copy1 0 B
  test_copy2 0 B
  file 36 B
  filestat.sh 357 B
  filestat.sh.out 191 B
  items1.txt 42 B
  items2.txt 31 B
  recipe1.txt 178 B
  recipe10.txt 1.14 KB
  recipe11.txt 639 B
  recipe12.txt 1.34 KB
  recipe13.txt 1.43 KB
  recipe14.txt 1.18 KB
  recipe15.txt 662 B
  recipe16.txt 666 B
  recipe17.txt 769 B
  recipe2.txt 681 B
  recipe3.txt 274 B
  recipe4.txt 381 B
  recipe5.txt 956 B
  recipe6.txt 294 B
  recipe7.txt 429 B
  recipe8.txt 543 B
  recipe9.txt 209 B
  unixfs
  bin
  cat 0 B
  ls 0 B
  etc
  passwd 0 B
  home
  pactpub
  automate.sh 0 B
  schedule 0 B
  out.html 2.78 KB
  version.patch 2.26 KB
  version1.txt 61 B
  version2.txt 70 B
  3760_04_code
  actress_rankings.txt 1.79 KB
  delimited_data.txt 61 B
  match_palindrome.sh 515 B
  match_palindrome.sh.out 81 B
  obfuscated.txt 106 B
  pal.txt 29 B
  paste1.txt 10 B
  paste2.txt 21 B
  range_fields.txt 108 B
  recipe10.txt 181 B
  recipe11.txt 323 B
  recipe12.txt 574 B
  recipe13.txt 342 B
  recipe14.txt 252 B
  recipe15.txt 667 B
  recipe16.txt 1.18 KB
  recipe17.txt 1.5 KB
  recipe18.txt 262 B
  recipe19.txt 517 B
  recipe2.txt 2.21 KB
  recipe3.txt 1.19 KB
  recipe4.txt 80 B
  recipe5.txt 1.28 KB
  recipe6.txt 1.42 KB
  recipe7.txt 381 B
  recipe8.txt 807 B
  recipe9.txt 416 B
  sample.js 182 B
  sample.txt 41 B
  section.txt 99 B
  sed_data.txt 55 B
  sentence.txt 781 B
  silent_grep.sh 321 B
  silent_grep.sh.out 74 B
  student_data.txt 62 B
  url_email.txt 226 B
  word_freq.sh 333 B
  word_freq.sh.out 99 B
  words.txt 96 B
  3760_05_code
  actresslist.txt 2 KB
  change_track.sh 553 B
  change_track.sh.out 480 B
  define.sh 606 B
  define.sh.out 443 B
  fetch_gmail.sh 407 B
  fetch_gmail.sh.out 174 B
  find_broken.sh 476 B
  img_downloader.sh 542 B
  photo_album
  generate_album.sh 647 B
  generate_album.sh.out 71 B
  recipe1.txt 1.4 KB
  recipe10.txt 77 B
  recipe11.txt 72 B
  recipe12.txt 274 B
  recipe2.txt 91 B
  recipe3.txt 1.99 KB
  recipe4.txt 86 B
  recipe5.txt 2.35 KB
  recipe6.txt 74 B
  recipe7.txt 84 B
  recipe8.txt 66 B
  recipe9.txt 61 B
  tweets.sh 709 B
  tweets.sh.out 193 B
  3760_06_code
  recipe1.txt 1.89 KB
  recipe10.txt 1.91 KB
  recipe11.txt 898 B
  recipe2.txt 327 B
  recipe3.txt 1.01 KB
  recipe4.txt 892 B
  recipe5.txt 899 B
  recipe6.txt 385 B
  recipe7.txt 490 B
  recipe8.txt 844 B
  recipe9.txt 873 B
  3760_07_code
  .ping.sh.swp 12 KB
  etherconnect.sh 687 B
  fast_ping.sh 188 B
  ftp.sh 215 B
  multi_cast_window.sh 282 B
  ping.sh 164 B
  ping.sh.out 55 B
  recipe1.txt 2.94 KB
  recipe10.txt 2.03 KB
  recipe2.txt 1.38 KB
  recipe3.txt 381 B
  recipe4.txt 787 B
  recipe5.txt 1.23 KB
  recipe6.txt 911 B
  recipe7.txt 1.1 KB
  recipe8.txt 197 B
  recipe9.txt 194 B
  uptime.sh 232 B
  uptime.sh.out 93 B
  wlan_connect.sh 917 B
  3760_08_code
  disklog.sh 843 B
  intruder_detect.sh 1.24 KB
  pcpu_usage.sh 479 B
  pcpu_usage.sh.out 151 B
  recipe1.txt 2.87 KB
  recipe2.txt 299 B
  recipe3.txt 1.04 KB
  recipe4.txt 85 B
  recipe5.txt 85 B
  recipe6.txt 319 B
  recipe7.txt 76 B
  recipe8.txt 250 B
  recipe9.txt 451 B
  top10_commands.sh 251 B
  top10_commands.sh.out 122 B
  watchdir.sh 189 B
  watchdir.sh.out 83 B
  3760_09_code
  create_db.sh 524 B
  create_db.sh.out 53 B
  image_help.sh 890 B
  image_help.sh.out 203 B
  message_user.sh 260 B
  message_user.sh.out 42 B
  read_db.sh 416 B
  read_db.sh.out 234 B
  recipe1.txt 3.7 KB
  recipe10.txt 80 B
  recipe2.txt 479 B
  recipe3.txt 511 B
  recipe4.txt 545 B
  recipe5.txt 512 B
  recipe6.txt 72 B
  recipe7.txt 626 B
  recipe8.txt 145 B
  recipe9.txt 65 B
  sighandle.sh 351 B
  studentdat.txt 153 B
  user_adm.sh 1.54 KB
  user_adm.sh.out 488 B
  write_to_db.sh 481 B
  write_to_db.sh.out 55 B
  Readme.txt 347 B
  Sarath Lakshman - Linux Shell Scripting Cookbook + Code - 2011.pdf 12.31 MB

Description




Книги и журналы » Компьютерная литература » Mac OS; Linux, FreeBSD и прочие *NIX

Linux Shell Scripting Cookbook + Code

Год: 2011
Автор: Sarath Lakshman
Издательство: Packt
ISBN: 1849513767
Язык: Английский
Формат: PDF
Качество: Изначально компьютерное (eBook)
Количество страниц: 360

Описание: GNU/Linux is a remarkable operating system that comes with a complete development environment that is stable, reliable, and extremely powerful. The shell being the native interface to communicate with the operating system is capable of controlling the entire operating system. There are numerous commands on Linux shell which are documented but hard to understand. The man pages are helpful but they are very lengthy and it does not give any clues on key areas where commands can be used. Proper usage of shell commands can easily solve many complex tasks with a few lines of code, but most linux users don’t have the right know-how to use the Linux shell to its full potential.

Linux Shell Scripting Cookbook is a collection of essential command-line recipes along with detailed descriptions tuned with practical applications. It covers most of the commands on Linux with a variety of usecases accompanied by plenty of examples. This book helps you to perform complex data manipulations involving tasks such as text processing, file management, backups and more with the combination of few commands.

Linux Shell Scripting Cookbook shows you how to capitalize on all the aspects of Linux using the shell scripting language. This book teaches you how to use commands to perform simple tasks all the way to scripting complex tasks such as managing large amounts of data on a network.

It guides you on implementing some of the most common commands in Linux with recipes that handle any of the operations or properties related with files like searching and mining inside a file with grep. It also shows you how utilities such as sed, awk, grep, cut can be combined to solve text processing related problems. The focus is on saving time by automating many activities that we perform interactively through as browser with a few lines of script.

This book will take you from a clear problem description to a fully functional program. The recipes contained within the chapter will introduce the reader to specific problems and provide hands-on solutions.

This practical book will help you gain control over all the aspects of Linux using the powerful shell scripting language

What you will learn from this book

Explore a variety of regular usage tasks and how it can be made faster using shell command
Couple frequently used commands like grep, find, sed, awk
Write shell scripts that can dig data from web and process it with few lines of code
Perform and automate tasks such as automating backups and restore with archiving tools
Understand file systems, file types and manipulations
Create and maintain file/folder archives, compression formats and encrypting techniques with shell
Set up Ethernet and Wireless LAN with the shell script
Monitor different activities on the network using logging techniques
[spoiler="Примеры страниц"]

[/spoiler]
[spoiler="Оглавление"]
Table of Contents
Preface
Chapter 1: Shell Something Out
Chapter 2: Have a Good Command
Chapter 3: File In, File Out
Chapter 4: Texting and Driving
Chapter 5: Tangled Web? Not At All!
Chapter 6: The Backup Plan
Chapter 7: The Old-boy Network
Chapter 8: Put on the Monitor's Cap
Chapter 9: Administration Calls
Index

•Preface
•Chapter 1: Shell Something Out
◦Introduction
◦Printing in the terminal
◦Playing with variables and environment variables
◦Doing math calculations with the shell
◦Playing with file descriptors and redirection
◦Arrays and associative arrays
◦Visiting aliases
◦Grabbing information about terminal
◦Getting, setting dates, and delays
◦Debugging the script
◦Functions and arguments
◦Reading the output of a sequence of commands
◦Reading "n" characters without pressing Return
◦Field separators and iterators
◦Comparisons and tests
Up
•Chapter 2: Have a Good Command
◦Introduction
◦Concatenating with cat
◦Recording and playback of terminal sessions
◦Finding files and file listing
◦Playing with xargs
◦Translating with tr
◦Checksum and verification
◦Sorting, unique and duplicates
◦Temporary file naming and random numbers
◦Splitting files and data
◦Slicing file names based on extension
◦Renaming and moving files in bulk
◦Spell checking and dictionary manipulation
◦Automating interactive input
Up
•Chapter 3: File In, File Out
◦Introduction
◦Generating files of any size
◦Intersection and set difference (A-B) on text files
◦Finding and deleting duplicate files
◦Making directories for a long path
◦File permissions, ownership, and sticky bit
◦Making files immutable
◦Generating blank files in bulk
◦Finding a symbolic link and its target
◦Enumerating file type statistics
◦Loopback files and mounting
◦Creating ISO files, Hybrid ISO
◦Finding difference between files, patching
◦head and tail – printing the last or first 10 lines
◦Listing only directories – alternative methods
◦Fast command-line navigation using pushd and popd
◦Counting number of lines, words, and characters in a file
◦Printing directory tree
Up
•Chapter 4: Texting and Driving
◦Introduction
◦Basic regular expression primer
◦Searching and mining "text" inside a file with grep
◦Column-wise cutting of a file with cut
◦Frequency of words used in a given file
◦Basic sed primer
◦Basic awk primer
◦Replacing strings from a text or file
◦Compressing or decompressing JavaScript
◦Iterating through lines, words, and characters in a file
◦Merging multiple files as columns
◦Printing the nth word or column in a file or line
◦Printing text between line numbers or patterns
◦Checking palindrome strings with a script
◦Printing lines in the reverse order
◦Parsing e-mail addresses and URLs from text
◦Printing n lines before or after a pattern in a file
◦Removing a sentence in a file containing a word
◦Implementing head, tail, and tac with awk
◦Text slicing and parameter operations
Up
•Chapter 5: Tangled Web? Not At All!
◦Introduction
◦Downloading from a web page
◦Downloading a web page as formatted plain text
◦A primer on cURL
◦Accessing Gmail from the command line
◦Parsing data from a website
◦Image crawler and downloader
◦Web photo album generator
◦Twitter command-line client
◦define utility with Web backend
◦Finding broken links in a website
◦Tracking changes to a website
◦Posting to a web page and reading response
Up
•Chapter 6: The Backup Plan
◦Introduction
◦Archiving with tar
◦Archiving with cpio
◦Compressing with gunzip (gzip)
◦Compressing with bunzip (bzip)
◦Compressing with lzma
◦Archiving and compressing with zip
◦squashfs – the heavy compression filesystem
◦Cryptographic tools and hashes
◦Backup snapshots with rsync
◦Version control based backup with Git
◦Cloning hard drive and disks with dd
Up
•Chapter 7: The Old-boy Network
◦Introduction
◦Basic networking primer
◦Let's ping!
◦Listing all the machines alive on a network
◦Transferring files
◦Setting up an Ethernet and wireless LAN with script
◦Password-less auto-login with SSH
◦Running commands on remote host with SSH
◦Mounting a remote drive at a local mount point
◦Multi-casting window messages on a network
◦Network traffic and port analysis
Up
•Chapter 8: Put on the Monitor's Cap
◦Introduction
◦Disk usage hacks
◦Calculating execution time for a command
◦Information about logged users, boot logs, and failure boot
◦Printing the 10 most frequently-used commands
◦Listing the top 10 CPU consuming process in a hour
◦Monitoring command outputs with watch
◦Logging access to files and directories
◦Logfile management with logrotate
◦Logging with syslog
◦Monitoring user logins to find intruders
◦Remote disk usage health monitor
◦Finding out active user hours on a system
Up
•Chapter 9: Administration Calls
◦Introduction
◦Gathering information about processes
◦Killing processes and send or respond to signals
◦which, whereis, file, whatis, and loadavg explained
◦Sending messages to user terminals
◦Gathering system information
◦Using /proc – gathering information
◦Scheduling with cron
◦Writing and reading MySQL database from Bash
◦User administration script
◦Bulk image resizing and format conversion
Up
•Index
[/spoiler]