bash shell

0

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 13 years 3 weeks ago – Made popular 13 years 3 weeks ago
Category: Beginner   Tags:
0

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 13 years 5 weeks ago – Made popular 13 years 5 weeks ago
Category: Beginner   Tags:
0

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 13 years 9 weeks ago – Made popular 13 years 9 weeks ago
Category: Beginner   Tags:
0

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 13 years 10 weeks ago – Made popular 13 years 10 weeks ago
Category: Beginner   Tags:
0

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 13 years 12 weeks ago – Made popular 13 years 12 weeks ago
Category: Beginner   Tags:
0

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 13 years 12 weeks ago – Made popular 13 years 12 weeks ago
Category: Beginner   Tags:
0

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 13 years 20 weeks ago – Made popular 13 years 20 weeks ago
Category: Beginner   Tags:
0

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 13 years 21 weeks ago – Made popular 13 years 21 weeks ago
Category: Beginner   Tags:
0

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 13 years 26 weeks ago – Made popular 13 years 26 weeks ago
Category: Beginner   Tags:
0

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 13 years 28 weeks ago – Made popular 13 years 28 weeks ago
Category: Beginner   Tags:
0

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 13 years 33 weeks ago – Made popular 13 years 33 weeks ago
Category: Beginner   Tags:
0

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 13 years 33 weeks ago – Made popular 13 years 33 weeks ago
Category: Beginner   Tags:
0

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 13 years 33 weeks ago – Made popular 13 years 33 weeks ago
Category: Beginner   Tags:
0

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 13 years 35 weeks ago – Made popular 13 years 35 weeks ago
Category: Beginner   Tags:
0

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 13 years 35 weeks ago – Made popular 13 years 35 weeks ago
Category: Beginner   Tags:

Best karma users