Linux Shell Scripting Tutorial – A Beginner\’s handbook

Image via Wikipedia

Linux Shell Scripting Tutorial – A Beginner\’s handbook —

This book is for students and Linux System Administrators. It provides the skills to read, write, and debug Linux shell scripts using bash shell. The book begins by describing Linux and simple scripts to automate frequently executed commands and continues by describing conditional logic, user interaction, loops, menus, traps, and functions. Finally, book covers various sys admin related scripts such as making a backup, using cron jobs, writing interactive tools, web based tools, remote login, ftp and database backup related scripts. This book is intended for Linux system administrators or students who have mastered the basics of a Linux Operating System. You should be able to:

  • Login to local or remote Linux system.
  • Use basic Linux commands, such as cp, mv, rm, man,less, chmod and others.
  • Create and edit text files in vi or any other text editor.
  • GUI is not required except for interactive GTK+ based GUI scripts.

Read more.


prepend to a file with sponge from moreutils

A few weeks I wrote about a tool, which helps you easily prepend to a file. I submitted prepend to moreutils and Joey was kind enough to point out this could be done with `sponge\’.? sponge reads standard input and when done, writes it to a file:
Probably the most general …