Patterns and string processing in shell scripts PDF Print E-mail

Shell programming is heavily dependent on string processing. The term string is used generically to refer to any sequence of characters; typical examples of strings might be a line of input or a single argument to a command. Users enter responses to prompts, file names are generated, and commands produce output. Recurring throughout this is the need to determine whether a given string conforms to a given pattern; this process is called pattern matching. The shell has a fair amount of built-in pattern matching functionality.


Shell programming is heavily dependent on string processing. The term string is used generically to refer to any sequence of characters; typical examples of strings might be a line of input or a single argument to a command. Users enter responses to prompts, file names are generated, and commands produce output. Recurring throughout this is the need to determine whether a given string conforms to a given pattern; this process is called pattern matching. The shell has a fair amount of built-in pattern matching functionality.


Posted originally: 2008-12-26 08:00:00

Read Full Article
 
< Prev   Next >

Main Menu

Home
Blog
Contact Us
Shop

Shop

Open Source CD

List All Products


Advanced Search
Show Cart
Your Cart is currently empty.

Login Form






Lost Password?
No account yet? Register