Introduction to text manipulation on UNIX-based systems

Mar 14, 2012 ... The cat command is one of the most basic commands. ... The control-d signals an
end-of-file, returning control to the shell. ... specified by a regular expression
pattern, in this case, lines starting with the letters 'a' or 'b'. .... Earlier the nl
command was used to add line numbers to a file displayed on stdout .

Common threads: Sed by example, Part 2

Oct 1, 2000 ... Let's look at one of sed's most useful commands, the substitution command. ...
This is a good first attempt at a sed script that will remove HTML tags from a file,
but it .... Now, we will define regions by inserting backslashed parentheses ... a
line beginning with the letters "END", or the end of file if "END" is not ...

vi tips and tricks: Ten cool commands sure to impress your friends

Jul 27, 2010 ... Insert mode puts anything you type into the current file in your vi ... and end line
numbers that you'll use in the appropriate vi command. ... You can also turn
indentation on and set the indentation level in one ... For example, to search for
the word echo in a file, enter command .... !awk '{print "New text",$0}' ...

Learn Linux, 101: Search text files using regular expressions

Feb 3, 2010 ... Another program that uses regular expression extensively is awk . .... text1 # a
followed by two other letters ... So ^..b matches any two characters at the
beginning of a line ... Character classes are one area where regular expressions
and ... If you add the -n option, it tells you what line numbers matched.

Search patterns in files using Linux grep command (Real world Linux)

Nov 23, 2012 ... In this article, we will understand the usage of Linux grep command through ... in
the argument FILE indicates that more than one files can be ... In the output
above, the line in the file input.txt containing the pattern or string ... Match the
empty string at the beginning of word. ... Add a Comment; More Actions v ...

Learn Linux, 101: Text streams and filters

Aug 26, 2009 ... By the end of this tutorial, you will be manipulating text like an expert. ...
Manipulating text at the command line using GNU textutils ... Although either the
input or the output can come from a file, in the Linux and UNIX environments,
filtering is most ..... There are many handy sed one-liners such as Listing 22.

Learn 10 more good UNIX usage habits

May 27, 2008 ... Become a UNIX command-line wizard ... Process data with awk . ... files satisfy
your request and you need to add text to select one of the ... When you click Tab
once, Bash completes file; clicking Tab one .... Note that you must provide the
end-of-file character when you're ... Any line with at least one letter.

UNIX tips and tricks for a new user, Part 2: The vi text editor

Nov 7, 2006 ... The vi text editor separates operations into insert mode and command ... Any time
a capital letter is referenced for a command, you should use the Shift ... to other
locations in the file, but then bring it back to the end of line one.

Common threads: Sed by example, Part 1

Sep 1, 2000 ... Sed is an ideal tool for batch-editing files or for creating shell scripts to modify
existing files ... Fortunately for us Linux users, one of the nicest versions of sed
out there happens to ... Why not take some time to install GNU sed 3.02.80 now?
.... Will match any line ending with '}' followed by zero or more spaces.

Linux tip: Bash parameters and parameter expansions

May 16, 2007 ... You will need to use single or double quotes to pass parameters that contain ...
The default IFS value is a blank, tab, and newline. If IFS is .... The first argument to
getopts is a list of option letters to be recognized, in this case, p and r . ... a -f
option might be used to indicate a file name, as in the tar command.

Develop, deploy, and manage your apps in the cloud

The Bluemix cloud platform has everything you need to get started.

Build new skills on the latest cloud technologies

Advance your career with powerful tools, services, training, and networking.