POSS Politeknik Aceh
Welcome to POSS POLITEKNIK ACEH
<<=======================>>
You are currently viewing our boards as a guest, which gives you limited access to view most discussions and access our other features. By joining our free community, you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content, and access many other special features. Registration is fast, simple, and absolutely free.
POSS Politeknik Aceh
Welcome to POSS POLITEKNIK ACEH
<<=======================>>
You are currently viewing our boards as a guest, which gives you limited access to view most discussions and access our other features. By joining our free community, you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content, and access many other special features. Registration is fast, simple, and absolutely free.
POSS Politeknik Aceh
Would you like to react to this message? Create an account in a few clicks or log in to continue.
POSS Politeknik Aceh

Melihat sifat keterbukaan Linus Torvalds dengan memerdekakan source kernel buatannya, membuat terdorong hati nurani kami untuk Go OPEN SOURCE.......
 
IndeksLatest imagesPencarianPendaftaranLogin
Latest topics
» Dasar - Dasar Python
linuxCBT Scripting edition I_icon_minitimeThu Mar 15, 2012 2:29 am by Admin

» Pemograman java... hello.java
linuxCBT Scripting edition I_icon_minitimeWed Mar 07, 2012 8:49 pm by zack

» Cracking WEP Menggunakan Backtrack
linuxCBT Scripting edition I_icon_minitimeWed Oct 12, 2011 9:07 am by zack

» sedikit tentang array
linuxCBT Scripting edition I_icon_minitimeWed Oct 12, 2011 8:54 am by zack

» Cara mengembalikan data yang telah terformat diubuntu
linuxCBT Scripting edition I_icon_minitimeWed Oct 12, 2011 8:19 am by zack

» Dasar-dasar PHP 12: Penutup
linuxCBT Scripting edition I_icon_minitimeTue Jul 12, 2011 10:31 am by Admin

» Dasar-dasar PHP 11: Menguasai Fungsi (bag. 2)
linuxCBT Scripting edition I_icon_minitimeTue Jul 12, 2011 10:30 am by Admin

» Dasar-dasar PHP 11: Menguasai Fungsi (bag 1)
linuxCBT Scripting edition I_icon_minitimeTue Jul 12, 2011 10:26 am by Admin

» Dasar-dasar PHP 10 — Hula Loops
linuxCBT Scripting edition I_icon_minitimeTue Jul 12, 2011 10:20 am by Admin


 

 linuxCBT Scripting edition

Go down 
PengirimMessage
zack

zack


Jumlah posting : 67
Join date : 13.04.11

linuxCBT Scripting edition Empty
PostSubyek: linuxCBT Scripting edition   linuxCBT Scripting edition I_icon_minitimeThu Apr 14, 2011 1:38 am

linuxCBT Scripting edition LCBT_SE_Box




Price: Subscription Includes ALL LinuxCBT | UnixCBT Products
Subscription Terms: 1-Month | 3-Month | 6-Month | 12-Month
License: Single-User (Default)
Multiple Licenses: Select During Checkout
System Requirements: Web Browser with Flash support
Duration: 84 hours
MD5SUM: 448a8d36e728852249037e965d80b88f
SHA1SUM: cc3be2b6bf659aa5912b88705d08da1d3a8b1f68
Content Size: 3.92 GB ( 4,210,495,488 bytes )
Demos: here


LinuxCBT Scripting Edition is a unique approach to teaching GNU/Linux Scripting skills. Serious Linux IT-professionals are expected to have a command of various scripting environments for administrative purposes. LinuxCBT Scripting Edition consists of the following 7 Modules:

* Bourne Again Shell (BASH)
* Perl
* Python
* PHP
* Regular Expressions (RegEx)
* Awk & Sed field (Column) and streams (Automated Text Editing)
* KornShell

LinuxCBT Scripting Edition, is unparalleled in content, depth and expertise. LinuxCBT Scripting Edition prepares you or your organization for successfully developing and implementing business-critical GNU/Linux-based scripting solutions. Linux automation requires a solid scripting foundation.

Recommended Prerequisites:

* Open mind & determination to master Linux Scripting Solutions - BASH/Perl/Python/PHP
* Access to a GNU/Linux-based PC to perform exercises in LinuxCBT Scripting Edition

Bourne Again Shell (BASH) Scripting - Module I

* Introduction to BASH Command Line Interface (CLI)
o Identify BASH installation & key configuration files on RedHat & Debian GNU/Linux distros
+ .profile/.bash_profile/.bashrc/.bash_history
o Identify & use common built-in BASH commands (pwd,cd,set,unset,export,source,etc.)
o BASH Command-line Expansion
+ Brace Expansion
+ Tilde Expansion
+ Parameter & variable Expansion
+ Command Substitution
o BASH Reserved words
o BASH History identification & configuration
o Aliases (ls,du,df,rm,cp)
o Backticks - command expansion & execution
o BASH Prompt configuration
o Command chaining
o Error level/Return code (Command Exit Status) identification
o Conditional execution of subsequent commands (&&,||)
*
* Redirection | Error Handling
o Standard Input
+ Direct input from STDIN (Standard Input)
+ Redirect input from a file
o Standard Output
+ Direct output to STDOUT (Standard Output )
+ Redirect output to a file
+ Append Standard Output to an existing file
o Standard Error
+ Explore STDERR attributes
+ Redirect Standard Error
o Input/Output (I/O) Redirection
+ Pipes
+ Sequential execution via pipes
o Quoting & Escaping
*
* BASH Scripting
o Basic Script definition (hello world), permissions modification & execution
o Internal BASH variables
o Global Variable definition
o Function definition
o Local Variable definition - function scope
o BASH Arrays
o Loops
o Menu creation using Select
o Job control - Foreground/Background processing
o Conditionals
o Case - Concise Conditional Branching
o Positional Parameters
*
* BASH Script Definition
o Create BASH script to move multiple files to new names defined by positional parameters
o Create script to monitor directory for file changes and report the differences via E-mail to Administrator
o Create script to monitor directory size and report threshold encroachment to Administrator via E-mail
o Define script to parse logs for keywords and notify the Administrator via E-mail
o Create script to monitor network connectivity between hosts and report outages to Admin via E-mail
o Define script to monitor process, restart if fails, and E-mail Administrator at defineable limits
o Create script to backup sub-directories using Tar & Gzip, define threshold, and SSH file to remote host
o Log the output of BASH scripts to a Syslog-like format
*
* BASH 3.x Updates
o Explore BASH 3.x on multiple platforms: Linux|Solaris|MacOSX|FreeBSD
o Compare and contrast to BASH 2.x
o Execute BASH 2.x commands|scripts within BASH 3.x on multiple platforms
o Evaluate results
*
* top

Practical Extraction & Reporting Language (Perl) - Module II

* Perl Basics
o Discuss Perl's capabilities
o Identify available Perl binaries on the system
o Discuss Perldoc - documentation program
o Discuss Perl interpreter
o Define first Perl program - Hello World
o Explain the application of the SHEBANG header within Perl scripts
o Explain warnings options
o Explain strict options
o Discuss compilation of Perl scripts and compare and contrast with shell scripts
o Comments
o Print function
o Escape sequences including (\t, \n, etc.)
o Explain quoting rules and variable interpolation
o Variable definition
o Operators
*
* Perl Variables
o Variable scopes (Global/Local)
o Scalars - single values
+ Discuss the properties of scalar variables
+ Evaluate the definition of scalars
+ Variable concatenation
o Arrays - lists & lists of lists
+ Discuss the properties of array variables
+ Evaluate the definition of arrays
+ Multi-dimensional arrays
+ Array slices
+ Array functions
+ Ranges
o Hashes - Key/Value pairs
+ Discuss the properties of hashes
+ Evaluate the definition of hashes
*
* Control Structures
o Discuss various types of Subroutines and features
o Define non-returning sub-routines
o Define returning sub-routine
o Conditionals
o If - integer and string comparisons
o Else/elsif testing
o Unless
o For Loops
o Foreach Loops - Array iteration
o While Loops
o Until Loops
*
* General Perl Information I
o Block Definition
o Use the X Functions for file system testing
o Positional parameters - ARGV
o Determine number of command line arguments
o Record Separators
o Internal Perl Variables
o Modules
o Explore the module path and applicable variables
o Discuss various ways to install Perl modules
o Install modules
o File I/O
o File Handles
o Open Function
o Discuss rules regarding file handles and use of the open function
o Assign file handles to Perl arrays for iteration
o Process text files using applicable file I/O functions and foreach loops
o Generate data files using file I/O functions
o Die function
o Error handing with Perl's built-in variables
o Count records from input file
o Use the Split function to separate fields based on various delimiters
o Use Join to assemble lists
*
* General Perl Information II
o References
o Chomp - strip superfluous characters
o Command substitution
o Use execute function to launch external programs
o Use system function to execute external commands and evaluate return status
o Regular Expressions discussion
o Demonstrate the many rules of Regular Expressions
o Process arrays using push/pop functions
o Generated data files and process them using split and field determination
o Mail integration using Sendmail
o Mail integration using downloaded Perl mail module
o Define and execute Perl one-liners
o Common Gateway Interface (CGI) - Apache 2.x integration
o Process GET & POST variables
o MySQL Database integration
o Identify required modules for MySQL integration
o Define connection object
o Execute SELECT queries
o Execute INSERT queries
o Execute UPDATE queries
o Execute DELETE queries
*
* Perl LFTP Integration - Error Handling
o Integrate LFTP client with Perl
o Automate LFTP process with Perl
o Implement error-handling
o Evaluate results
*
* top

Python - Object Oriented Linux Scripting Environment - Module III

* Basics
o Discuss Python's capabilities & features
o Identify location of pre-installed Python
o Discuss Python's Interactive interface
o Use the interactive interface to ouput basic expressions
o Hello World
o Identify reserved keywords
o Escape sequences & escape character exploration
o Define Python script using Linux SHEBANG header
o Execute Python scripts using the Python interpreter directly
o Discuss data types including strings, integers, lists, tuples, dictionaries, etc.
o Define standard variable types
o Use the print function to examine ouput of variables and expressions
o Use the type function to resolve data type
o Use the id function to expose the memory location of the stored variable
o Explain and define references and integrate with the id function
o Comments definition
o Perform basic arithmetic to illustrate the PEMDAS order of operations and examine how to alter it
*
* General Python Information I
o Explain and illustrate STDIN usage
o Examine the input function
o Examine the raw_input function
o Compare and contrast between input and raw_input functions
o Define small script to make use of input/raw_input and basic math functions
o Python Function concepts, applications and definition
*
* String Manipulation
o Define and ascertain the length of strings
o String extraction using list elements and list slicing
o Discuss immutable and mutable data types
o Loop through string slices using for loops
o Compare strings using string operators
o Discuss Python's object-oriented nature of various modules including classes and methods
o Import strings module
o Convert strings to upper and lower case using strings module methods
o Split strings into lists
o Join lists into strings
*
* List Manipulation
o Define lists
o Discuss and Define tuples
o Compare and contrast lists and tuples
o Reverse lists
o Append lists
o Extend lists
o Nest lists
o Define multi-dimensional lists
o Stack Lists using Last In First Out (LIFO) using the pop function
o Define First In First Out (FIFO) lists to emulate queueing using the pop function
o Insert values into various positions of the list
o Use ranges to generate integers
o Lists with Integers
o Lists with Strings
o Emulate standard UNIX Syslog logfile format using Lists
o Parse emulated logfile format using the Split function
o Recap list manipulation using integers, strings and various list methods
o Explain and define Dictionaries - key/value pairs similar to Hashes in Perl
*
* Control Structures
o IF - Defintion and usage
o Discuss the importance of indentation
o Else/Elif - comparisons against integers and strings
o Comparison negation
o Write script to perform conditional testing
o Import sys module to evaluate positional parameters using ARGV
o Define script which requires minimum number of command-line arguments
o Nest multiple if/elif statements to match logic
o Explain how for loops work in Python
o for loops definition and usage
o Iterate through lists of strings using for loops
o Integrate for loops with string manipulation functions and log file parsing
o Define and use While loops
o Define and examine the consequences of incorrect logic with an infinite while loop
o Integrate while loop with raw_input function to obtain data from the end-user
o Discuss file handle concepts and applications
o Use control structures to generate output for use in File I/O exercises
o Use the open function to read a file into a file handle
o Iterate through the lines within the opened file using readline functions, etc.
o Open file handles for writing
o Open multiple file handles
o Write strings to files using string formatting options and variable substitution
o Parse source file by extracting columns to be stored in destination file
o Regular Expressions
o Discuss Regular Expressions
o Import Regular Expressions module (re) for usage
o Implement Regular Expressions (REs)
o Regular Expressions Matching of strings and variables
o REGEX Repeaters
o Integrate Regular Expressions with text file processing
o Exception Handling
o Try & Except
o Modules
o Identification of default Python modules
o Import modules (sys, os, etc.) for usage
o Use the dir function to ascertain the classes and methods available within modules
o Use the SHUTIL module for advanced, high-level File I/O (Copy, Move, etc.)
o Python - Syslog integration
o Define script using the Syslog module to log to syslog
o Common Gateway Interface
o CGI Discussion and applications
o Implement Python CGI with Apache 2.x
o Evaluate results of CGI integration
o Globbing
*
* Dictionaries
o Further exploration of dictionaries
o Parse log files into dictionary data structure
o Organize results
o Analyse data
*
* Time
o Review properties of various time functions
o Export time with various functions
o Use time functions to create log entries in process akin to Perl
o Evaluate results
*
* top

PHP - Hyper Text Pre-Processor - Dynamic Web Applications & CLI - Module IV

* Installation
o Identify Online PHP resources
o Download PHP
o Identify Apache prerequisite packages and programs - Modular support (mod.so)
o Extract, compile and install PHP with Apache modular support
o Compile and install PHP with Command Line Interface (CLI) support
o Identify key PHP configuration files & directories
o Configure Apache httpd.conf with PHP integration to provide PHP support
o Configure Apache with PHP binary and source support
*
* PHP Basics
o Explain PHP-supported long/short/ASP parse-tags & identify configuration changes in php.ini
o Hello World script output using echo to the web browser
o Describe the various comments supported by PHP
o Examine the ouput of PHP-maintained variables using phpinfo()
o Explain supported data types via variables (integers, strings, floating points, here documents, arrays, etc.)
o Test instantiation of supported variables with default types
o Explain Quoting rules and variable interpolation
o Demonstrate escape sequences such as tab, new lines, spaces, etc.
o Exercise the echo command
o Define basic associated arrays (i.e. hashes/dictionaries)
o Define nested associative arrays
*
* General Information
o Examine key CGI PHP-server variables
+ HTTP_USER_AGENT
+ PHP_SELF
+ REQUEST_METHOD
+ DOCUMENT_ROOT
+ REMOTE_ADDR
+ HTTP_REFERRER
o Explore HTTP GET Request Methods via the URLString and Forms
o Explore HTTP POST Request Methods via the URLString and Forms
o NULL Variables
o Basic Math - PEMDAS
o Integer and String Comparison Operators
o Examine execution operators for executing Linux Shell commands and obtaining the ouput
o Variable assignment via execution operations
o Illustrate the usage of nested arrays
*
* Control Structures
o IF - comparisons against integers and strings
o Else/Elseif - comparisons against integers and strings
o Test whether variables are of the same type
o Comparison negation
o C-stlye for loops definition and usage
o Generate HTML option boxes using C-style for loops
o foreach list iterator loop definition and usage
o Generate HTML based on the contents of the list iterated by foreach
o While loops definition and usage
o Examine filesystem listings using execution operators and while loops
o do While definition and usage
o Break
o Continue
o Switch - for concise if/elseif conditional examination
*
* General Information II
o Discuss the applications of Server Side Includes (SSI)
o Server Side Includes using require
o Server Side Includes using include
o Explain and examine the differences between require and include
o Demonstrate distributed include applications by including content using HTTP
o Header, leftnav, body, and footer definition and integration with require/include
o HTML Form defintion using include and control structures
o PHP Functions definition and sample usage
o ISSET & UNSET for examining and controlling variables
o Discuss the way PHP handles uploaded files
o Identify key configuration files which affect uploaded files
o HTTP File I/O - uploads & processing via HTML forms
o Define back-end action pages to handle HTTP file uploads
o Examine available file attributes of HTTP-uploaded files
o PHP SMTP E-mail integration discussion
o Define scripts to process forms and generate SMTP-based e-mail
o Examine PHP Mail function options
o Use mutt on the Linux system to examine PHP-generated SMTP-based e-mail
*
* PHP - Dynamic Web Programming
o PHP cookie concepts & usage discussion
o Cookie definition and examination on server and client system (Mozilla Firefox)
o Set and unset cookies on client system
o Make decisions based on the existence of cookies on the client system
o Session Variables concepts & usage discussion
o Identify pertinent configuration options for session variables
o Define session variables
o Integrate cookies with session variables
o Download MySQL RDBMS packages for usage with PHP
o Install MySQL RDBMS for usage with PHP
o Download the latest phpMyAdmin for installation
o Install phpMyAdmin with Apache supportfor web-based administration of MySQL RDBMS
o Recompile PHP for MySQL RDBMS support
o Update PHP configuration information to support MySQL
o Define basic database structure for usage
o Structured Query Language (SQL) integration with PHP
o Explain steps for connecting PHP scripts to MySQL
o Define and execute SELECT queries
o Define and execute INSERT queries
o Define and execute UPDATE queries
o Define and execute DELETE queries
o Forms Processing with MySQL integration
o Forms with Cookies
o Forms with Session Variables
*
* PHP - Command Line Interface (CLI)
o Discuss concepts and applications
o Identify CLI binary
o Discuss the possible ways of executing PHP scripts from the CLI
o Define and execute PHP one-liners
o Execute scripts using PHP binary as a prefix
o Explore executing PHP via the Interpreter mode
o PHP-Linux SHEBANG definition and usage
o Execute basic commands
o CLI - File I/O usage - Stat files
o Examine file attributes
o Determine access and modification times and make decisions using control structures
*
* PHP - Input Validation
o Define form and action script to process form fields
o Submit form-fields for processing
o Examine results
o Define input validation masks with regular expressions
o Evaluate results
o Extend validation masks to command line interface (CLI)
o Supply PHP CLI with input
o Confirm validation masks
*
* top

LinuxCBT Scripting Editon - RegEx - Module V

* Introduction - Features
o Discuss course outline
o Explore system configuration
o Identify key systems to be used
o Install the Bluefish graphical editor - Supports POSIX and PERL-compatible RegExes
o List key Regular Expressions applications
o Enumerate and discuss key Regular Expressions features
*
* Metacharacters
o Enumerate important metacharacters
o Provide examples of asterisk '*' usage
o Apply simple character classes to searches
o Perform searches in the Bluefish editor using literals and metacharacters
o Explain and apply anchors: '^', '$'
*
* Character Classes
o Discuss features and applications
o Perform searches in the Bluefish editor using character classes
o Search for case-insensitive characters
o Negate character class values using the circumflex character: '^'
o Specify ranges and inclusions
o Search for string boundaries
o Alternate between POSIX and Perl-compatible Regular Expressions in Bluefish Editor
*
* RegExes with GREP & EGREP
o Discuss features and applications
o Perform simple GREP searches
o Use EGREP to find strings based on RegExes
o Parse installed applications using EGREP
o Extract 'su' attempts from the system log file: /var/log/messages
o Parse log file entries based on specific dates
*
* Parenthetical Expressions
o Discuss features and applications
o Compare and contrast with character classes
o Search for strings using the Bluefish Editor
o Combine anchors with parenthesis and evaluate results
o Search for multiple groups of strings using alternation
o Use parenthetical expressions with EGREP
o Nest expressions using parenthesis
*
* Quantifiers
o Discuss features and benefits
o Define RegEx tokens
o Enumerate and discuss RegEx quantifiers
o Test '?' using the Bluefish Editor and EGREP
o Test '*' using the Bluefish Editor and EGREP
o Test '+' using the Bluefish Editor and EGREP
o Test '*' using the Bluefish Editor and EGREP
o Test '{ }' - arbitrary quantifiers with the Bluefish Editor and EGREP
o Combine anchors, parenthesis and various quantifiers
*
* Shortcut Sequences - POSIX & Perl
o Discuss features and benefits
o Enumerate and discuss key shortcut sequences
o Test shortcut sequences using the Bluefish Editor
*
* Awk - Field Parser
o Discuss features and applications
o Use awk to extract fields from the process listing
o Apply RegEx literal strings to awk search and evaluate results
o Apply RegEx character classes to awk search and evaluate results
o Apply RegEx parenthetical expressions to awk search and evaluate results
o Apply RegEx quantifiers to awk search and evaluate results
o Incorporate conditional RegEx matching with awk search and evaluate results
o Extract fields, based on RegExes, from system log file: /var/log/messages
*
* SED - Stream Editor
o Discuss features and applications
o Perform text transformation of text file using string literals
o Perform text transformation of text file using string literals and character classes
o Perform text transformation of text file using string literals and anchors
o Perform text transformation of text file using string literals and character classes
o Evaluate results
*
* GNU Utilities (GREP|Awk|SED) for Windows
o Discuss features and benefits
o Identify and connect to Windows Server target system
o Download and install GNU utilities for Windows: GREP, Awk, SED
o Perform EGREP searches and evaluate results
o Perform gawk searches and evaluate results
o Perform SED substitutions and evaluate results
*
* Perl Regular Expressions
o Discuss features and applications
o Write simple Perl script to compare command line argument to RegEx and evaluate results
o Alter Perl script to read text file and perform RegEx comparisons and evaluate results
o Incorporate character classes, parenthetical expressions, case-insensitivity and quantifiers
o Evaluate results
o Substitute matched text using Perl RegExes
o Substitute matched text using Perl RegExes from the command line
o Update system log using text substitution from the command line
*
* PHP Regular Expressions
o Discuss features and applications
o Perform POSIX and Perl-compatible RegExes from the command line
o Substitute text using RegExes
o Evaluate results
o Design HTML form to collect fields via the browser
o Design back-end, action script to process the POST fields using RegExes
o Halt processing if POST fields do NOT meed criteria based on RegExes
o Evaluate results
*
* Apache Regular Expressions
o Discuss features and benefits
o Identify key configuration files
o Explore key RegEx-supporting Apache directives
o Match a range of directories using RegExes with <DirectoryMatch> directive
o Restrict access to files using RegExes with <FilesMatch> directive
o Match URL directory values using RegExes with <AliasMatch> directive
o Redirect users to alternate content using RegExes with <RedirectMatch> directive
*
* Date | Time Extractions | Regular Expressions | Logs
o Identify log entries to filter
o Filter date | time ranges using regular expressions
o Substitute extracted columns with replacement data
o Evaluate results
*
* HTML Updates
o Select HTML | PHP files to update
o Identify key strings
o Replace key strings with substitutes
o Perform widespread changes across HTML | PHP documents
o Evaluate results
*
* top

LinuxCBT Scripting Edition - Awk & Sed - Module VI

* Introduction - Features
o Discuss course outline
o Explore system configuration
o Identify key systems to be used
o Install the Bluefish graphical editor - Supports POSIX and PERL-compatible RegExes
o Discuss features common and distinct to: Awk and Sed
*
* Regular Expressions Review
o Enumerate important metacharacters
o Provide examples of quatinfier usage
o Apply simple character classes to searches
o Perform searches in the Bluefish editor using literals and metacharacters
o Explain and apply anchors: '^', '$'
*
* Intro to Sed - Stream Editor
o Discuss features and applications
o Explain general usage syntax
o Print specific lines from input
o Delete specific lines from input
o Match streams using RegExes
o Search for ranges of text using line numbers and text ranges
o Save transformed output
*
* Sed - Search & Replace
o Discuss features and applications
o Discuss Left-hand and Righ-hand side (LHS | RHS) sections in search & replace actions
o Acquire input from: STDIN, PIPES and Files and transform according to criteria
o Backup and overwrite source files using Sed one-liners
o Perform substitutions based on matched addresses
o Reuse matched strings in replacement output
o Perform text substitutions across multiple files
o Perform multiple replacements in one command
o Apply substitutions globally across all matches
*
* Sed - Scripts
o Discuss features and applications
o Explain general usage syntax
o Create script to remove blank lines from input stream
o Create script to make general substitutions
o Perform case-insensitive replacements via Sed script
o Insert strings into desried location in the input stream via Sed script
o Strip trailing numeric values from input stream via Sed script
o Apply changes to multiple files
o Save scripts for reuse
*
* Intro to Awk - Field Processor & Reporter
o Discuss features and benefits
o Explain general usage syntax
o Print full lines from input
o Print desired fields from input
o Match patterns using RegExes
o Control the input field | column delimiters
o Save output
*
* Awk - Scripts
o Discuss features and benefits
o Explain structure of Awk scripts
o Implement BEGIN and END blocks
o Parse system files using Awk script
*
* Awk - Variables
o Discuss features and applications
o Enumerate and discuss key Awk system variables
o Increment counters based on matched patterns using Awk
o Explain variable concatenation
o Explore arrays (lists of values)
o Create arrays using the split function
*
* Awk - Operators
o Discuss features and applications
o Explore Boolean and Relational operators
o Discuss looping strategies
o Evaluate conditional testing using system variables
o Evaluate results
*
* Awk - Process Records
o Discuss features and benefits
o Define and evaluate multiple input field separators with files with mixed delimiters
o Normalize output by controlling the Output Field Separator (OFS)
o Extract records from system file and evaluated
o Account for number of processed and matched records in END block
*
* Awk - Print Formatting
o Discuss features and applications
o Compare and contrast 'print' and 'printf' output formatting
o Discuss 'printf' supported data types
o Evaluate 'printf' application in reporting
*
* Awk & Sed - Various Examples
o Discuss features and applications
o Parse and cleanup HTML and PHP files with Sed & Awk
o Replace values in system file with Awk
o Evaluate results
*
* Awk & Sed - Win32
o Discuss features and benefits
o Download and install Awk & Sed for Win32
o Transfer Linux files to Windows
o Test various parsing and substitution on Linux files
o Evaluate results
*
* Sed - File Name Transformations - Batch
o Enumerate poorly-named files for transformation
o Identify key replacement strings for regular expressions match
o Define and apply regular expressions for transformations
o Transform prefixes and suffixes
o Evaluate results
*
* Awk - E-Mail Address Parsing
o Generate sample data set
o Define regular expressions patterns for transformation
o Transform sample data
o Evaluate results
*
* top

LinuxCBT feat. KornSHell Edition - Module VII

* Introduction - Features
o Discuss KornShell history
o Explore system configuration
o Identify key systems to be used
o Discuss key features
*
* Shell Basics
o Create KornShell users on various systems
o Identify key KornShell binaries and configuration files
o Explore key KornShell variables
o Discuss shell redirection and piping
*
* Command Chaining | Substitution
o Discuss features and applications
o Explain general usage of 'test' command
o Evaluate sequential execution of processes
o Invoke commands contingently using logical AND and OR
o Implement command substitution
o Evaluate defined variables using command substitution
*
* Variables
o Discuss features and applications
o Discuss and reference positional parameters
o Explore standard command exit status variable
o Learn how to define variables
o Define persistent variables
o Unset variables and evaluate
*
* The Prompt - $PS{1..4}
o Discuss various prompt shell variables
o Setup vi-style command history access
o Customize primary prompt with useful KornShell variables
o Define a persistent prompt
o Evaluate results
*
* Functions
o Discuss features and benefits
o Explore POSIX and KornShell functions
o Define useful functions in a script
o Reference functions from a script
o Discuss how positional parameters are supported with funcitons
o Evaluate results
*
* Loops
o Discuss features and benefits
o Identify the supported iteration mechanisms
o Implement for | while | until loops
o Create finite and infinite loops
o Evaluate results
*
* Conditions
o Discuss features and applications
o Explore comparison testing
o Perform numeric comparisons
o Perform string comparisons
o Branch out using if | elif | else
o Evaluate results
*
* Error Handling
o Discuss features and applications
o Create script which requires a positional parameter
o Error handle as necessary
o Confirm the existence of the file referenced by the positional parameter
o Compartmentalize error handling into a function
o Evaluate results
*
* Backup Script
o Discuss features and benefits
o Write a script to backup various files and directories
o Ensure that script is executed with appropriate number of positional parameters
o Auto-create backup file name using a unique date identifier
o Tar and compress (using gzip) backup items
o Incorporate error handling
o Evaluate results
*
* Arrays
o Discuss features and applications
o Explain supported arrays
o Define indexed array with various items
o Reference individual and total array elements
o Evaluate results
o Build indexed array using command substitution
o Loop through array elements
o Define associative array with various items
o Expose total array elements
*
* Regular Expressions
o Discuss features and applications
o Highlight key metacharacters
o Use character-classes
o Implement RegExes with shell commands: ls|grep|awk|sed
o Evaluate results
*
* Kornshell on Solaris
o Compare & contrast Linux and Solaris Korn implementation
o Create Kornshell user on Solaris
o Identify key files
o Explore Solaris Kornshell as the user
o Customize Solaris Kornshell environment
o Run scripts created on Linux
o Evaluate results
*
* Case
o Discuss features and benefits
o Explain usage
o Create cases based on simple RegExes
o Write script to identify file types using case
o Explore case usage in system scripts
o Evaluate results
*
* Job Control
o Discuss features and benefits
o Background and foreground jobs
o Interact with running jobs
o Isolate jobs from TTY
o Evaluate results
*
* Typeset
o Discuss features and benefits
o Define variables of disparate types
o Justfiy variables
o Transform positional parameters and variables
o Enumerate system variables
o Scope variables in and out of functions
o Evaluate results
*
* Input Validation
o Discuss features and benefits
o Ensure the requisite number of positional parameters
o Confirm input prior to execution
o Evaluate results
*
* top
Kembali Ke Atas Go down
 
linuxCBT Scripting edition
Kembali Ke Atas 
Halaman 1 dari 1

Permissions in this forum:Anda tidak dapat menjawab topik
POSS Politeknik Aceh :: UNIX :: LINUX-
Navigasi: