bash shell

warning: Creating default object from empty value in /home/www/drupal/drupal-6.19/modules/taxonomy/taxonomy.pages.inc on line 34.
37

String Matches in Regular Expressions

http://bashshell.net

Use parentheses to create the string matches you need in regular expressions. Parentheses allows you to use pipes for multiple matches.

Read more »
aweber's picture
Created by aweber 2 years 43 weeks ago – Made popular 2 years 43 weeks ago
Category: Beginner   Tags:
39

Using Character Classes to Create Matches

http://bashshell.net

Use character matches to help select data out of files. Character classes help you select based on as series of letters or text strings.

Read more »
aweber's picture
Created by aweber 2 years 45 weeks ago – Made popular 2 years 44 weeks ago
Category: Beginner   Tags:
23

Sustitution with sed

http://bashshell.net

The Linux utility sed provides a great way to substitute text strings in a file. Using the "s" option and by listing the current string and the string to use as the new text allows sed to perform this task.

Read more »
aweber's picture
Created by aweber 2 years 48 weeks ago – Made popular 2 years 48 weeks ago
Category: Beginner   Tags:
22

Line Addressing in sed

http://bashshell.net

sed can select lines in a file that can be individually modified, printed or deleted. sed is able to select and number any of lines within a file.

Read more »
aweber's picture
Created by aweber 2 years 49 weeks ago – Made popular 2 years 49 weeks ago
Category: Beginner   Tags:
13

Using Functions in a Library

http://bashshell.net

When you want to reuse functions in multiple scripts you can create a library which allows you to access those created functions.

Read more »
aweber's picture
Created by aweber 2 years 51 weeks ago – Made popular 2 years 51 weeks ago
Category: Beginner   Tags:
101

Alter Your Environment with Functions

http://bashshell.net

The user can alter the Bash shell environment by adding functions to their .bash_profile or by editing the global /etc/profile script for all users. This feature provides a great deal of flexibility for the administrator and user.

Read more »
aweber's picture
Created by aweber 2 years 52 weeks ago – Made popular 2 years 52 weeks ago
Category: Beginner   Tags:
20

Using nl to Number Lines

http://bashshell.net

The Linux utility nl is an easy tool to use to number lines in scripts or flexible enough to create headers, body and footers in your documents.

Read more »
aweber's picture
Created by aweber 3 years 7 weeks ago – Made popular 3 years 7 weeks ago
Category: Beginner   Tags:
25

Learning How to Delete Files Safely in Linux

http://bashshell.net

The rm command can be used safely to remove files and directories in Linux, especially if you create an alias that will interactively ask about deletions.

Read more »
aweber's picture
Created by aweber 3 years 8 weeks ago – Made popular 3 years 8 weeks ago
Category: Beginner   Tags:
29

for Loop Example

http://bashshell.net

Using a for loop to examine a series of IP Addresses to use in a firewall script to block Zombie networks.

Read more »
aweber's picture
Created by aweber 3 years 13 weeks ago – Made popular 3 years 13 weeks ago
Category: Beginner   Tags:
11

Using find to Execute a Command

http://bashshell.net

The find command can be used to execute a command based on the data that is located with the initial find command. This provides a powerful alternative for manipulating the data you retrieve.

Read more »
aweber's picture
Created by aweber 3 years 15 weeks ago – Made popular 3 years 15 weeks ago
Category: Beginner   Tags:
12

Exercise #5: Managing the Structure of the awk file

http://bashshell.net

The awk file can be modified to include a BEGIN section and an END section that allows you to perform tasks before and after the records are processed.

Read more »
aweber's picture
Created by aweber 3 years 20 weeks ago – Made popular 3 years 20 weeks ago
Category: Beginner   Tags:
23

Exercise #2: Learning awk with Operators

http://bashshell.net

When you use awk with operators levels, comparisons and ranges can be part of the data search.

Read more »
aweber's picture
Created by aweber 3 years 20 weeks ago – Made popular 3 years 20 weeks ago
Category: Beginner   Tags:
11

Exercise #1: Learning awk Basics

http://bashshell.net

By performing these basic commands you will begin to see the power and flexibility of the Linux utility awk. This exercise is designed to start you down the path of using awk.

Read more »
aweber's picture
Created by aweber 3 years 20 weeks ago – Made popular 3 years 20 weeks ago
Category: Beginner   Tags:
12

Record Screen Activity with the script Command

http://bashshell.net

The script command makes a transcript of the text that is printed to the terminal. You can record your interaction with the shell using this command.

Read more »
aweber's picture
Created by aweber 3 years 22 weeks ago – Made popular 3 years 22 weeks ago
Category: Beginner   Tags:
58

Using awk Operators for Math Functions

http://bashshell.net

This tutorial describes how awk can use operators to increment or decrement as well as other arithmetic functions. awk uses four arithmetic functions:
+ addition
- subtraction
* multiplication and
/ division.

Read more »
aweber's picture
Created by aweber 3 years 22 weeks ago – Made popular 3 years 22 weeks ago
Category: Beginner   Tags: