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 10 years 37 weeks ago – Made popular 10 years 37 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 10 years 39 weeks ago – Made popular 10 years 39 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 10 years 42 weeks ago – Made popular 10 years 42 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 10 years 43 weeks ago – Made popular 10 years 43 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 10 years 45 weeks ago – Made popular 10 years 45 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 10 years 46 weeks ago – Made popular 10 years 46 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 11 years 1 week ago – Made popular 11 years 1 week 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 11 years 2 weeks ago – Made popular 11 years 2 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 11 years 7 weeks ago – Made popular 11 years 7 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 11 years 9 weeks ago – Made popular 11 years 9 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 11 years 14 weeks ago – Made popular 11 years 14 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 11 years 14 weeks ago – Made popular 11 years 14 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 11 years 15 weeks ago – Made popular 11 years 15 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 11 years 16 weeks ago – Made popular 11 years 16 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 11 years 16 weeks ago – Made popular 11 years 16 weeks ago
Category: Beginner   Tags:

Best karma users