Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com
Answertopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 

Debian GNU/Linux Reference Guide
Prev Home Next

4.4 Unix-like text processing

There are few standard text processing tools which are used very often on the Unix-like system.

  • No regular expression is used:

    • head outputs the first part of files.

    • tail outputs the last part of files.

    • sort sorts lines of text files.

    • uniq removes duplicate lines from a sorted file.

    • tr translates or deletes characters.

    • diff compares files line by line.

  • Basic regular expression (BRE) is used:

    • grep matches text with the pattern.

    • ed is a primitive line editor.

    • sed is a stream editor.

    • vi is a screen editor.

    • emacs is a screen editor.

  • Extended regular expression (ERE) is used:

See Regular-expression substitution, Section 8.6.13, Script snippets for piping commands, Section 8.6.18, and Perl short script madness, Section 8.6.20 for some script examples.


Debian GNU/Linux Reference Guide
Prev Home Next

 
 
  Published under the terms of the GNU General Public License Design by Interspire