<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://phyc-wiki.chem.oregonstate.edu/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Tjmustard</id>
	<title>PHYC  Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://phyc-wiki.chem.oregonstate.edu/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Tjmustard"/>
	<link rel="alternate" type="text/html" href="https://phyc-wiki.chem.oregonstate.edu/index.php?title=Special:Contributions/Tjmustard"/>
	<updated>2026-04-14T12:17:28Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.34.0</generator>
	<entry>
		<id>https://phyc-wiki.chem.oregonstate.edu/index.php?title=Public:Public_Test&amp;diff=132</id>
		<title>Public:Public Test</title>
		<link rel="alternate" type="text/html" href="https://phyc-wiki.chem.oregonstate.edu/index.php?title=Public:Public_Test&amp;diff=132"/>
		<updated>2014-05-21T22:34:17Z</updated>

		<summary type="html">&lt;p&gt;Tjmustard: Created page with &amp;quot;This is a public test page. 5/21/14&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This is a public test page. 5/21/14&lt;/div&gt;</summary>
		<author><name>Tjmustard</name></author>
		
	</entry>
	<entry>
		<id>https://phyc-wiki.chem.oregonstate.edu/index.php?title=Main_Page&amp;diff=129</id>
		<title>Main Page</title>
		<link rel="alternate" type="text/html" href="https://phyc-wiki.chem.oregonstate.edu/index.php?title=Main_Page&amp;diff=129"/>
		<updated>2014-05-21T22:33:55Z</updated>

		<summary type="html">&lt;p&gt;Tjmustard: /* Public Resources */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
===General===&lt;br /&gt;
----&lt;br /&gt;
* [[Public:Group_News|Group News]]&lt;br /&gt;
&lt;br /&gt;
* [[About PHYC]]&lt;br /&gt;
&lt;br /&gt;
* [[General Research in the PHYC Group]]&lt;br /&gt;
&lt;br /&gt;
* [[Public:Collaborators|Collabrators]]&lt;br /&gt;
&lt;br /&gt;
* [http://phyc.chem.oregonstate.edu/publications Publications]&lt;br /&gt;
&lt;br /&gt;
===Software Related===&lt;br /&gt;
----&lt;br /&gt;
* [[Apple Related]]&lt;br /&gt;
&lt;br /&gt;
* [[Linux Related]]&lt;br /&gt;
&lt;br /&gt;
* [[Text Editors]]&lt;br /&gt;
&lt;br /&gt;
* [[Computational Software Related]]&lt;br /&gt;
&lt;br /&gt;
* [[Computational Software Manuals]]&lt;br /&gt;
&lt;br /&gt;
* [[Ad Hoc Script Collection]]&lt;br /&gt;
&lt;br /&gt;
* [[Strange Error Messages]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Resources===&lt;br /&gt;
----&lt;br /&gt;
* [[Woodward]]&lt;br /&gt;
&lt;br /&gt;
* [[Fermi]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Programming===&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
* [[BASH]]&lt;br /&gt;
&lt;br /&gt;
* [[Python]]&lt;br /&gt;
&lt;br /&gt;
* [[C++]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Links===&lt;br /&gt;
----&lt;br /&gt;
* [[Chemistry Journals]]&lt;br /&gt;
&lt;br /&gt;
* [[Computational Chemistry]]&lt;br /&gt;
&lt;br /&gt;
* [[Organic Chemistry News, Highlights and Blogs]]&lt;br /&gt;
&lt;br /&gt;
* [[Other Links]]&lt;br /&gt;
&lt;br /&gt;
===Public Resources===&lt;br /&gt;
----&lt;br /&gt;
[[Publics:Public Test Page]]&lt;br /&gt;
[[Public:Public_Test|Public Test]]&lt;br /&gt;
&lt;br /&gt;
== Getting started ==&lt;br /&gt;
* [//www.mediawiki.org/wiki/Manual:Configuration_settings Configuration settings list]&lt;br /&gt;
* [//www.mediawiki.org/wiki/Manual:FAQ MediaWiki FAQ]&lt;br /&gt;
* [https://lists.wikimedia.org/mailman/listinfo/mediawiki-announce MediaWiki release mailing list]&lt;br /&gt;
* [//www.mediawiki.org/wiki/Localisation#Translation_resources Localise MediaWiki for your language]&lt;br /&gt;
&lt;br /&gt;
Consult the [//meta.wikimedia.org/wiki/Help:Contents User's Guide] for information on using the wiki software.&lt;/div&gt;</summary>
		<author><name>Tjmustard</name></author>
		
	</entry>
	<entry>
		<id>https://phyc-wiki.chem.oregonstate.edu/index.php?title=SED&amp;diff=113</id>
		<title>SED</title>
		<link rel="alternate" type="text/html" href="https://phyc-wiki.chem.oregonstate.edu/index.php?title=SED&amp;diff=113"/>
		<updated>2014-05-13T17:46:22Z</updated>

		<summary type="html">&lt;p&gt;Tjmustard: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==General Use==&lt;br /&gt;
SED can be used to:&lt;br /&gt;
# replace a sting with a new string&lt;br /&gt;
# remove unwanted characters&lt;br /&gt;
&lt;br /&gt;
==Handy One Liners==&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
;HANDY ONE-LINERS FOR SED (Unix stream editor) Oct. 29, 1997 &lt;br /&gt;
:compiled by Eric Pement &amp;lt;epement@jpusa.chi.il.us&amp;gt; version 4.3 &lt;br /&gt;
:Latest version of this file is always at &amp;lt;http://www.wollery.demon.co.uk&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==FILE SPACING:==&lt;br /&gt;
&lt;br /&gt;
===double space a file===&lt;br /&gt;
 sed G&lt;br /&gt;
&lt;br /&gt;
===triple space a file===&lt;br /&gt;
 sed 'G;G'&lt;br /&gt;
&lt;br /&gt;
===undo double-spacing (assumes even-numbered lines are always blank)===&lt;br /&gt;
 sed 'n;d'&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==NUMBERING:==&lt;br /&gt;
&lt;br /&gt;
===number each line of a file (simple left alignment). Using a tab (see note on '\t' at end of file) instead of space will preserve margins. ===&lt;br /&gt;
 sed = filename | sed 'N;s/\n/\t/'&lt;br /&gt;
&lt;br /&gt;
===number each line of a file (number on left, right-aligned) ===&lt;br /&gt;
 sed = filename | sed 'N; s/^/ /; s/ *\(.\{6,\}\)\n/\1 /'&lt;br /&gt;
&lt;br /&gt;
===number each line of file, but only print numbers if line is not blank ===&lt;br /&gt;
 sed '/./=' filename | sed '/./N; s/\n/ /'&lt;br /&gt;
&lt;br /&gt;
===count lines (emulates &amp;quot;wc -l&amp;quot;) ===&lt;br /&gt;
 sed -n '$='&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==TEXT CONVERSION AND SUBSTITUTION:==&lt;br /&gt;
&lt;br /&gt;
===IN UNIX ENVIRONMENT: convert DOS newlines (CR/LF) to Unix format ===&lt;br /&gt;
 sed 's/.$//'&lt;br /&gt;
&lt;br /&gt;
===IN DOS ENVIRONMENT: convert Unix newlines (LF) to DOS format ===&lt;br /&gt;
 sed 's/$//' # method 1 &lt;br /&gt;
 sed -n p # method 2&lt;br /&gt;
&lt;br /&gt;
===delete leading whitespace (spaces, tabs) from front of each line aligns all text flush left ===&lt;br /&gt;
 sed 's/^[ \t]*//' # see note on '\t' at end of file&lt;br /&gt;
&lt;br /&gt;
===delete trailing whitespace (spaces, tabs) from end of each line=== &lt;br /&gt;
 sed 's/[ \t]*$//' # see note on '\t' at end of file&lt;br /&gt;
&lt;br /&gt;
===delete BOTH leading and trailing whitespace from each line=== &lt;br /&gt;
 sed 's/^[ \t]*//;s/[ \t]*$//'&lt;br /&gt;
&lt;br /&gt;
===insert 5 blank spaces at beginning of each line (make page offset) ===&lt;br /&gt;
 sed 's/^/ /'&lt;br /&gt;
&lt;br /&gt;
===align all text flush right on a 79-column width=== &lt;br /&gt;
 sed -e :a -e 's/^.\{1,78\}$/ &amp;amp;/;ta' # set at 78 plus 1 space&lt;br /&gt;
&lt;br /&gt;
===center all text in the middle of 79-column width. In method 1, spaces at the beginning of the line are significant, and trailing spaces are appended at the end of the line. In method 2, spaces at the beginning of the line are discarded in centering the line, and no trailing spaces appear at the end of lines. ===&lt;br /&gt;
 sed -e :a -e 's/^.\{1,77\}$/ &amp;amp; /;ta' # method 1 &lt;br /&gt;
 sed -e :a -e 's/^.\{1,77\}$/ &amp;amp;/;ta' -e 's/\( *\)\1/\1/' # method 2&lt;br /&gt;
&lt;br /&gt;
===substitute (find &amp;amp; replace) &amp;quot;foo&amp;quot; with &amp;quot;bar&amp;quot; on each line ===&lt;br /&gt;
 sed 's/foo/bar/' # replaces only 1st instance in a line &lt;br /&gt;
 sed 's/foo/bar/4' # replaces only 4th instance in a line &lt;br /&gt;
 sed 's/foo/bar/g' # replaces ALL instances in a line&lt;br /&gt;
&lt;br /&gt;
===substitute &amp;quot;foo&amp;quot; with &amp;quot;bar&amp;quot; ONLY for lines which contain &amp;quot;baz&amp;quot; ===&lt;br /&gt;
 sed '/baz/s/foo/bar/g'&lt;br /&gt;
&lt;br /&gt;
===substitute &amp;quot;foo&amp;quot; with &amp;quot;bar&amp;quot; EXCEPT for lines which contain &amp;quot;baz&amp;quot; ===&lt;br /&gt;
 sed '/baz/!s/foo/bar/g'&lt;br /&gt;
&lt;br /&gt;
===reverse order of lines (emulates &amp;quot;tac&amp;quot;) ===&lt;br /&gt;
 sed '1!G;h;$!d'&lt;br /&gt;
&lt;br /&gt;
===reverse each character on the line (emulates &amp;quot;rev&amp;quot;) ===&lt;br /&gt;
 sed '/\n/!G;s/\(.\)\(.*\n\)/&amp;amp;\2\1/;//D;s/.//'&lt;br /&gt;
&lt;br /&gt;
===join pairs of lines side-by-side (like &amp;quot;paste&amp;quot;) ===&lt;br /&gt;
 sed 'N;s/\n/ /'&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==SELECTIVE PRINTING OF CERTAIN LINES:==&lt;br /&gt;
&lt;br /&gt;
===print first 10 lines of file (emulates behavior of &amp;quot;head&amp;quot;) ===&lt;br /&gt;
 sed 10q&lt;br /&gt;
&lt;br /&gt;
===print first line of file (emulates &amp;quot;head -1&amp;quot;) ===&lt;br /&gt;
 sed q&lt;br /&gt;
&lt;br /&gt;
===print last 10 lines of file (emulates &amp;quot;tail&amp;quot;) ===&lt;br /&gt;
 sed -e :a -e '$q;N;11,$D;ba'&lt;br /&gt;
&lt;br /&gt;
===print last line of file (emulates &amp;quot;tail -1&amp;quot;) ===&lt;br /&gt;
 sed '$!d'&lt;br /&gt;
&lt;br /&gt;
===print only lines which match regular expression (emulates &amp;quot;grep&amp;quot;) ===&lt;br /&gt;
 sed -n '/regexp/p' # method 1 &lt;br /&gt;
 sed '/regexp/!d' # method 2&lt;br /&gt;
&lt;br /&gt;
===print only lines which do NOT match regexp (emulates &amp;quot;grep -v&amp;quot;) ===&lt;br /&gt;
 sed -n '/regexp/!p' # method 1, corresponds to above &lt;br /&gt;
 sed '/regexp/d' # method 2, simpler syntax&lt;br /&gt;
&lt;br /&gt;
===print 1 line of context before and after regexp, with line number indicating where the regexp occurred (similar to &amp;quot;grep -A1 -B1&amp;quot;) ===&lt;br /&gt;
 sed -n -e '/regexp/{=;x;1!p;g;$!N;p;D;}' -e h&lt;br /&gt;
&lt;br /&gt;
===grep for AAA and BBB and CCC (in any order) ===&lt;br /&gt;
 sed '/AAA/!d; /BBB/!d; /CCC/!d'&lt;br /&gt;
&lt;br /&gt;
===grep for AAA or BBB or CCC (emulates &amp;quot;egrep&amp;quot;) ===&lt;br /&gt;
 sed -e '/AAA/b' -e '/BBB/b' -e '/CCC/b' -e d&lt;br /&gt;
&lt;br /&gt;
===print only lines of 65 characters or longer ===&lt;br /&gt;
 sed -n '/^.\{65\}/p'&lt;br /&gt;
&lt;br /&gt;
===print only lines of less than 65 characters ===&lt;br /&gt;
 sed -n '/^.\{65\}/!p' # method 1, corresponds to above &lt;br /&gt;
 sed '/^.\{65\}/d' # method 2, simpler syntax&lt;br /&gt;
&lt;br /&gt;
===print section of file from regular expression to end of file ===&lt;br /&gt;
 sed -n '/regexp/,$p'&lt;br /&gt;
&lt;br /&gt;
===print section of file based on line numbers (lines 8-12, inclusive) ===&lt;br /&gt;
 sed -n '8,12p' # method 1 &lt;br /&gt;
 sed '8,12!d' # method 2&lt;br /&gt;
&lt;br /&gt;
===print line number 52 ===&lt;br /&gt;
 sed -n '52p' # method 1 &lt;br /&gt;
 sed '52!d' # method 2 &lt;br /&gt;
 sed '52q;d' # method 3, efficient on large files&lt;br /&gt;
&lt;br /&gt;
===print section of file between two regular expressions (inclusive) ===&lt;br /&gt;
 sed -n '/Iowa/,/Montana/p' # case sensitive&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==SELECTIVE DELETION OF CERTAIN LINES:==&lt;br /&gt;
&lt;br /&gt;
===print all of file EXCEPT section between 2 regular expressions ===&lt;br /&gt;
 sed '/Iowa/,/Montana/d'&lt;br /&gt;
&lt;br /&gt;
===delete duplicate lines from a sorted file (emulates &amp;quot;uniq&amp;quot;). First line in a set of duplicate lines is kept, the rest are deleted ===&lt;br /&gt;
 sed '$!N; /^\(.*\)\n\1$/!P; D'&lt;br /&gt;
&lt;br /&gt;
===delete ALL blank lines from a file (same as &amp;quot;grep '.' &amp;quot;) ===&lt;br /&gt;
 sed '/^$/d'&lt;br /&gt;
&lt;br /&gt;
===delete all CONSECUTIVE blank lines from file except the first; also deletes all blank lines from top and end of file (emulates &amp;quot;cat -s&amp;quot;) ===&lt;br /&gt;
 sed '/./,/^$/!d' # method 1, allows 0 blanks at top, 1 at EOF &lt;br /&gt;
 sed '/^$/N;/\n$/D' # method 2, allows 1 blank at top, 0 at EOF&lt;br /&gt;
&lt;br /&gt;
===delete all CONSECUTIVE blank lines from file except the first 2:=== &lt;br /&gt;
 sed '/^$/N;/\n$/N;//D'&lt;br /&gt;
&lt;br /&gt;
===delete all leading blank lines at top of file=== &lt;br /&gt;
 sed '/./,$!d'&lt;br /&gt;
&lt;br /&gt;
===delete all trailing blank lines at end of file=== &lt;br /&gt;
 sed -e :a -e '/^\n*$/N;/\n$/ba'&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==SPECIAL APPLICATIONS:==&lt;br /&gt;
&lt;br /&gt;
===remove nroff overstrikes (char, backspace) from man pages=== &lt;br /&gt;
 sed &amp;quot;s/.`echo \\\b`//g&amp;quot; # double quotes required for Unix environment &lt;br /&gt;
 sed 's/.\x08//g' # hex expression for GNU sed (octal is &amp;quot;\010&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
===get Usenet/e-mail message header=== &lt;br /&gt;
 sed '/^$/q' # deletes everything after first blank line&lt;br /&gt;
&lt;br /&gt;
===get Usenet/e-mail message body=== &lt;br /&gt;
 sed '1,/^$/d' # deletes everything up to first blank line&lt;br /&gt;
&lt;br /&gt;
===get Subject header, but remove initial &amp;quot;Subject: &amp;quot; portion ===&lt;br /&gt;
 sed '/^Subject: */!d; s///;q'&lt;br /&gt;
&lt;br /&gt;
===get return address header ===&lt;br /&gt;
 sed '/^Reply-To:/q; /^From:/h; /./d;g;q'&lt;br /&gt;
&lt;br /&gt;
===parse out the address proper. Pulls out the e-mail address by itself from the 1-line return address header (see preceding script) ===&lt;br /&gt;
 sed 's/ *(.*)//; s/&amp;gt;.*//; s/.*[:&amp;lt;] *//'&lt;br /&gt;
&lt;br /&gt;
===add a leading angle bracket and space to each line (quote a message)=== &lt;br /&gt;
 sed 's/^/&amp;gt; /&lt;br /&gt;
&lt;br /&gt;
===delete leading angle bracket &amp;amp; space from each line (unquote a message)=== &lt;br /&gt;
 sed 's/^&amp;gt; //'&lt;br /&gt;
&lt;br /&gt;
===remove most HTML tags (accommodates multiple-line tags)=== &lt;br /&gt;
 sed -e :a -e 's/&amp;lt;[^&amp;lt;]*&amp;gt;/ /g;/&amp;lt;/{N;s/\n/ /;ba;}'&lt;br /&gt;
&lt;br /&gt;
===extract multi-part uuencoded binaries, removing extraneous header info, so that only the uuencoded portion remains. Files passed to sed must be passed in the proper order. Version 1 can be entered from the command line; version 2 can be made into an executable Unix shell script. (Modified from a script by Rahul Dhesi.) ===&lt;br /&gt;
 sed '/^end/,/^begin/d' file1 file2 ... fileX | uudecode # vers. 1 &lt;br /&gt;
 sed '/^end/,/^begin/d' $* | uudecode # vers. 2&lt;br /&gt;
&lt;br /&gt;
===zip up each .TXT file individually, deleting the source file and setting the name of each .ZIP file to the basename of the .TXT file (under DOS: the &amp;quot;dir /b&amp;quot; switch returns bare filenames in all caps).=== &lt;br /&gt;
 echo @echo off &amp;gt;zipup.bat &lt;br /&gt;
 dir /b *.txt | sed &amp;quot;s/^\(.*\)\.TXT/pkzip -mo \1 \1.TXT/&amp;quot; &amp;gt;&amp;gt;zipup.bat&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==TYPICAL USE:==&lt;br /&gt;
;Sed takes one or more editing commands and applies all of them, in sequence, to each line of input. After all the commands have been applied to the first input line, that line is output and a second input line is taken for processing, and the cycle repeats. The preceding examples assume that input comes from the standard input device (i.e, the console, normally this will be piped input). One or more filenames can be appended to the command line if the input does not come from stdin. Output is sent to stdout (the screen). Thus:&lt;br /&gt;
&lt;br /&gt;
 cat filename | sed '10q' # uses piped input &lt;br /&gt;
 sed '10q' filename # same effect, avoids a useless &amp;quot;cat&amp;quot; &lt;br /&gt;
 sed '10q' filename &amp;gt; newfile # redirects output to disk&lt;br /&gt;
&lt;br /&gt;
;For additional syntax instructions, including the way to apply editing commands from a disk file instead of the command line, consult &amp;quot;sed &amp;amp; awk, 2nd Edition,&amp;quot; by Dale Dougherty and Arnold Robbins (O'Reilly, 1997; http://www.ora.com), &amp;quot;UNIX Text Processing,&amp;quot; by Dale Dougherty and Tim O'Reilly (Hayden Books, 1987) or the tutorials by Mike Arst distributed in U-SEDIT2.ZIP (many sites). To fully exploit the power  of sed, one must understand &amp;quot;regular expressions.&amp;quot; For this, see  &amp;quot;Mastering Regular Expressions&amp;quot; by Jeffrey Friedl (O'Reilly, 1997).  The manual (&amp;quot;man&amp;quot;) pages on Unix systems may be helpful (try &amp;quot;man  sed&amp;quot;, &amp;quot;man regexp&amp;quot;, or the subsection on regular expressions in &amp;quot;man  ed&amp;quot;), but man pages are notoriously difficult. They are not written to  teach sed use or regexps to first-time users, but as a reference text  for those already acquainted with these tools. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==QUOTING SYNTAX:==&lt;br /&gt;
;The preceding examples use single quotes ('...')  instead of double quotes (&amp;quot;...&amp;quot;) to enclose editing commands, since  sed is typically used on a Unix platform. Single quotes prevent the  Unix shell from intrepreting the dollar sign ($) and backquotes  (`...`), which are expanded by the shell if they are enclosed in  double quotes. Users of the &amp;quot;csh&amp;quot; shell and derivatives will also need  to quote the exclamation mark (!) with the backslash (i.e., \!) to  properly run the examples listed above, even within single quotes.  Versions of sed written for DOS invariably require double quotes  (&amp;quot;...&amp;quot;) instead of single quotes to enclose editing commands. &lt;br /&gt;
&lt;br /&gt;
;USE OF '\t' IN SED SCRIPTS: For clarity in documentation, we have used  the expression '\t' to indicate a tab character (0x09) in the scripts.  However, most versions of sed do not recognize the '\t' abbreviation,  so when typing these scripts from the command line, you should press  the TAB key instead. '\t' is supported as a regular expression  metacharacter in awk, perl, and in a few implementations of sed. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==VERSIONS OF SED:==&lt;br /&gt;
;Versions of sed do differ, and some slight syntax  variation is to be expected. In particular, most do not support the  use of labels (:name) or branch instructions (b,t) within editing  commands, except at the end of those commands. We have used the syntax  which will be portable to most users of sed, even though the popular  GNU versions of sed allow a more succinct syntax. When the reader sees  a fairly long command such as this: &lt;br /&gt;
&lt;br /&gt;
sed -e '/AAA/b' -e '/BBB/b' -e '/CCC/b' -e d&lt;br /&gt;
&lt;br /&gt;
;it is heartening to know that GNU sed will let you reduce it to:&lt;br /&gt;
&lt;br /&gt;
 sed '/AAA/b;/BBB/b;/CCC/b;d'&lt;br /&gt;
&lt;br /&gt;
;In addition, remember that while many versions of sed accept a command like &amp;quot;/one/ s/RE1/RE2/&amp;quot;, some do NOT allow &amp;quot;/one/! s/RE1/RE2/&amp;quot;, which contains space before the 's'. Omit the space when typing the command.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==OPTIMIZING FOR SPEED:==&lt;br /&gt;
;If execution speed needs to be increased (due to large input files or slow processors or hard disks), substitution will be executed more quickly if the &amp;quot;find&amp;quot; expression is specified before giving the &amp;quot;s/.../.../&amp;quot; instruction. Thus:&lt;br /&gt;
&lt;br /&gt;
 sed 's/foo/bar/g' filename # standard replace command &lt;br /&gt;
 sed '/foo/ s/foo/bar/g' filename # executes more quickly &lt;br /&gt;
 sed '/foo/ s//bar/g' filename # shorthand sed syntax&lt;br /&gt;
&lt;br /&gt;
;On line selection or deletion in which you only need to output lines from the first part of the file, a &amp;quot;quit&amp;quot; command (q) in the script will drastically reduce processing time for large files. Thus:&lt;br /&gt;
&lt;br /&gt;
 sed -n '45,50p' filename # print line nos. 45-50 of a file &lt;br /&gt;
 sed -n '51q;45,50p' filename # same, but executes much faster&lt;br /&gt;
&lt;br /&gt;
;If you have any additional scripts to contribute or if you find errors in this document, please send e-mail to the compiler. Indicate the version of sed you used, the operating system it was compiled for, and the nature of the problem. Various scripts in this file were written or contributed by:&lt;br /&gt;
&lt;br /&gt;
 Al Aab &amp;lt;af137@freenet.toronto.on.ca&amp;gt; # &amp;quot;seders&amp;quot; list moderator &lt;br /&gt;
 Dale Dougherty &amp;lt;dale@songline.com&amp;gt; # author of &amp;quot;sed &amp;amp; awk&amp;quot; &lt;br /&gt;
 Carlos Duarte &amp;lt;cdua@algos.inesc.pt&amp;gt; # author of &amp;quot;do it with sed&amp;quot; &lt;br /&gt;
 Eric Pement &amp;lt;epement@jpusa.chi.il.us&amp;gt; # author of this document &lt;br /&gt;
 S.G.Ravenhall &amp;lt; S.G.Ravenhall@open.ac.uk&amp;gt; # great de-html script &lt;br /&gt;
 Greg Ubben &amp;lt;gsu@romulus.ncsc.mil&amp;gt; # many contributions &amp;amp; much help&lt;br /&gt;
&lt;br /&gt;
==Additional SED Commands==&lt;br /&gt;
===Lowercase to Upercase===&lt;br /&gt;
 sed ’s/./\u&amp;amp;/g’&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Tjmustard</name></author>
		
	</entry>
	<entry>
		<id>https://phyc-wiki.chem.oregonstate.edu/index.php?title=SED&amp;diff=111</id>
		<title>SED</title>
		<link rel="alternate" type="text/html" href="https://phyc-wiki.chem.oregonstate.edu/index.php?title=SED&amp;diff=111"/>
		<updated>2014-05-13T17:45:30Z</updated>

		<summary type="html">&lt;p&gt;Tjmustard: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==General Use==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Handy One Liners==&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
;HANDY ONE-LINERS FOR SED (Unix stream editor) Oct. 29, 1997 &lt;br /&gt;
:compiled by Eric Pement &amp;lt;epement@jpusa.chi.il.us&amp;gt; version 4.3 &lt;br /&gt;
:Latest version of this file is always at &amp;lt;http://www.wollery.demon.co.uk&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==FILE SPACING:==&lt;br /&gt;
&lt;br /&gt;
===double space a file===&lt;br /&gt;
 sed G&lt;br /&gt;
&lt;br /&gt;
===triple space a file===&lt;br /&gt;
 sed 'G;G'&lt;br /&gt;
&lt;br /&gt;
===undo double-spacing (assumes even-numbered lines are always blank)===&lt;br /&gt;
 sed 'n;d'&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==NUMBERING:==&lt;br /&gt;
&lt;br /&gt;
===number each line of a file (simple left alignment). Using a tab (see note on '\t' at end of file) instead of space will preserve margins. ===&lt;br /&gt;
 sed = filename | sed 'N;s/\n/\t/'&lt;br /&gt;
&lt;br /&gt;
===number each line of a file (number on left, right-aligned) ===&lt;br /&gt;
 sed = filename | sed 'N; s/^/ /; s/ *\(.\{6,\}\)\n/\1 /'&lt;br /&gt;
&lt;br /&gt;
===number each line of file, but only print numbers if line is not blank ===&lt;br /&gt;
 sed '/./=' filename | sed '/./N; s/\n/ /'&lt;br /&gt;
&lt;br /&gt;
===count lines (emulates &amp;quot;wc -l&amp;quot;) ===&lt;br /&gt;
 sed -n '$='&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==TEXT CONVERSION AND SUBSTITUTION:==&lt;br /&gt;
&lt;br /&gt;
===IN UNIX ENVIRONMENT: convert DOS newlines (CR/LF) to Unix format ===&lt;br /&gt;
 sed 's/.$//'&lt;br /&gt;
&lt;br /&gt;
===IN DOS ENVIRONMENT: convert Unix newlines (LF) to DOS format ===&lt;br /&gt;
 sed 's/$//' # method 1 &lt;br /&gt;
 sed -n p # method 2&lt;br /&gt;
&lt;br /&gt;
===delete leading whitespace (spaces, tabs) from front of each line aligns all text flush left ===&lt;br /&gt;
 sed 's/^[ \t]*//' # see note on '\t' at end of file&lt;br /&gt;
&lt;br /&gt;
===delete trailing whitespace (spaces, tabs) from end of each line=== &lt;br /&gt;
 sed 's/[ \t]*$//' # see note on '\t' at end of file&lt;br /&gt;
&lt;br /&gt;
===delete BOTH leading and trailing whitespace from each line=== &lt;br /&gt;
 sed 's/^[ \t]*//;s/[ \t]*$//'&lt;br /&gt;
&lt;br /&gt;
===insert 5 blank spaces at beginning of each line (make page offset) ===&lt;br /&gt;
 sed 's/^/ /'&lt;br /&gt;
&lt;br /&gt;
===align all text flush right on a 79-column width=== &lt;br /&gt;
 sed -e :a -e 's/^.\{1,78\}$/ &amp;amp;/;ta' # set at 78 plus 1 space&lt;br /&gt;
&lt;br /&gt;
===center all text in the middle of 79-column width. In method 1, spaces at the beginning of the line are significant, and trailing spaces are appended at the end of the line. In method 2, spaces at the beginning of the line are discarded in centering the line, and no trailing spaces appear at the end of lines. ===&lt;br /&gt;
 sed -e :a -e 's/^.\{1,77\}$/ &amp;amp; /;ta' # method 1 &lt;br /&gt;
 sed -e :a -e 's/^.\{1,77\}$/ &amp;amp;/;ta' -e 's/\( *\)\1/\1/' # method 2&lt;br /&gt;
&lt;br /&gt;
===substitute (find &amp;amp; replace) &amp;quot;foo&amp;quot; with &amp;quot;bar&amp;quot; on each line ===&lt;br /&gt;
 sed 's/foo/bar/' # replaces only 1st instance in a line &lt;br /&gt;
 sed 's/foo/bar/4' # replaces only 4th instance in a line &lt;br /&gt;
 sed 's/foo/bar/g' # replaces ALL instances in a line&lt;br /&gt;
&lt;br /&gt;
===substitute &amp;quot;foo&amp;quot; with &amp;quot;bar&amp;quot; ONLY for lines which contain &amp;quot;baz&amp;quot; ===&lt;br /&gt;
 sed '/baz/s/foo/bar/g'&lt;br /&gt;
&lt;br /&gt;
===substitute &amp;quot;foo&amp;quot; with &amp;quot;bar&amp;quot; EXCEPT for lines which contain &amp;quot;baz&amp;quot; ===&lt;br /&gt;
 sed '/baz/!s/foo/bar/g'&lt;br /&gt;
&lt;br /&gt;
===reverse order of lines (emulates &amp;quot;tac&amp;quot;) ===&lt;br /&gt;
 sed '1!G;h;$!d'&lt;br /&gt;
&lt;br /&gt;
===reverse each character on the line (emulates &amp;quot;rev&amp;quot;) ===&lt;br /&gt;
 sed '/\n/!G;s/\(.\)\(.*\n\)/&amp;amp;\2\1/;//D;s/.//'&lt;br /&gt;
&lt;br /&gt;
===join pairs of lines side-by-side (like &amp;quot;paste&amp;quot;) ===&lt;br /&gt;
 sed 'N;s/\n/ /'&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==SELECTIVE PRINTING OF CERTAIN LINES:==&lt;br /&gt;
&lt;br /&gt;
===print first 10 lines of file (emulates behavior of &amp;quot;head&amp;quot;) ===&lt;br /&gt;
 sed 10q&lt;br /&gt;
&lt;br /&gt;
===print first line of file (emulates &amp;quot;head -1&amp;quot;) ===&lt;br /&gt;
 sed q&lt;br /&gt;
&lt;br /&gt;
===print last 10 lines of file (emulates &amp;quot;tail&amp;quot;) ===&lt;br /&gt;
 sed -e :a -e '$q;N;11,$D;ba'&lt;br /&gt;
&lt;br /&gt;
===print last line of file (emulates &amp;quot;tail -1&amp;quot;) ===&lt;br /&gt;
 sed '$!d'&lt;br /&gt;
&lt;br /&gt;
===print only lines which match regular expression (emulates &amp;quot;grep&amp;quot;) ===&lt;br /&gt;
 sed -n '/regexp/p' # method 1 &lt;br /&gt;
 sed '/regexp/!d' # method 2&lt;br /&gt;
&lt;br /&gt;
===print only lines which do NOT match regexp (emulates &amp;quot;grep -v&amp;quot;) ===&lt;br /&gt;
 sed -n '/regexp/!p' # method 1, corresponds to above &lt;br /&gt;
 sed '/regexp/d' # method 2, simpler syntax&lt;br /&gt;
&lt;br /&gt;
===print 1 line of context before and after regexp, with line number indicating where the regexp occurred (similar to &amp;quot;grep -A1 -B1&amp;quot;) ===&lt;br /&gt;
 sed -n -e '/regexp/{=;x;1!p;g;$!N;p;D;}' -e h&lt;br /&gt;
&lt;br /&gt;
===grep for AAA and BBB and CCC (in any order) ===&lt;br /&gt;
 sed '/AAA/!d; /BBB/!d; /CCC/!d'&lt;br /&gt;
&lt;br /&gt;
===grep for AAA or BBB or CCC (emulates &amp;quot;egrep&amp;quot;) ===&lt;br /&gt;
 sed -e '/AAA/b' -e '/BBB/b' -e '/CCC/b' -e d&lt;br /&gt;
&lt;br /&gt;
===print only lines of 65 characters or longer ===&lt;br /&gt;
 sed -n '/^.\{65\}/p'&lt;br /&gt;
&lt;br /&gt;
===print only lines of less than 65 characters ===&lt;br /&gt;
 sed -n '/^.\{65\}/!p' # method 1, corresponds to above &lt;br /&gt;
 sed '/^.\{65\}/d' # method 2, simpler syntax&lt;br /&gt;
&lt;br /&gt;
===print section of file from regular expression to end of file ===&lt;br /&gt;
 sed -n '/regexp/,$p'&lt;br /&gt;
&lt;br /&gt;
===print section of file based on line numbers (lines 8-12, inclusive) ===&lt;br /&gt;
 sed -n '8,12p' # method 1 &lt;br /&gt;
 sed '8,12!d' # method 2&lt;br /&gt;
&lt;br /&gt;
===print line number 52 ===&lt;br /&gt;
 sed -n '52p' # method 1 &lt;br /&gt;
 sed '52!d' # method 2 &lt;br /&gt;
 sed '52q;d' # method 3, efficient on large files&lt;br /&gt;
&lt;br /&gt;
===print section of file between two regular expressions (inclusive) ===&lt;br /&gt;
 sed -n '/Iowa/,/Montana/p' # case sensitive&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==SELECTIVE DELETION OF CERTAIN LINES:==&lt;br /&gt;
&lt;br /&gt;
===print all of file EXCEPT section between 2 regular expressions ===&lt;br /&gt;
 sed '/Iowa/,/Montana/d'&lt;br /&gt;
&lt;br /&gt;
===delete duplicate lines from a sorted file (emulates &amp;quot;uniq&amp;quot;). First line in a set of duplicate lines is kept, the rest are deleted ===&lt;br /&gt;
 sed '$!N; /^\(.*\)\n\1$/!P; D'&lt;br /&gt;
&lt;br /&gt;
===delete ALL blank lines from a file (same as &amp;quot;grep '.' &amp;quot;) ===&lt;br /&gt;
 sed '/^$/d'&lt;br /&gt;
&lt;br /&gt;
===delete all CONSECUTIVE blank lines from file except the first; also deletes all blank lines from top and end of file (emulates &amp;quot;cat -s&amp;quot;) ===&lt;br /&gt;
 sed '/./,/^$/!d' # method 1, allows 0 blanks at top, 1 at EOF &lt;br /&gt;
 sed '/^$/N;/\n$/D' # method 2, allows 1 blank at top, 0 at EOF&lt;br /&gt;
&lt;br /&gt;
===delete all CONSECUTIVE blank lines from file except the first 2:=== &lt;br /&gt;
 sed '/^$/N;/\n$/N;//D'&lt;br /&gt;
&lt;br /&gt;
===delete all leading blank lines at top of file=== &lt;br /&gt;
 sed '/./,$!d'&lt;br /&gt;
&lt;br /&gt;
===delete all trailing blank lines at end of file=== &lt;br /&gt;
 sed -e :a -e '/^\n*$/N;/\n$/ba'&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==SPECIAL APPLICATIONS:==&lt;br /&gt;
&lt;br /&gt;
===remove nroff overstrikes (char, backspace) from man pages=== &lt;br /&gt;
 sed &amp;quot;s/.`echo \\\b`//g&amp;quot; # double quotes required for Unix environment &lt;br /&gt;
 sed 's/.\x08//g' # hex expression for GNU sed (octal is &amp;quot;\010&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
===get Usenet/e-mail message header=== &lt;br /&gt;
 sed '/^$/q' # deletes everything after first blank line&lt;br /&gt;
&lt;br /&gt;
===get Usenet/e-mail message body=== &lt;br /&gt;
 sed '1,/^$/d' # deletes everything up to first blank line&lt;br /&gt;
&lt;br /&gt;
===get Subject header, but remove initial &amp;quot;Subject: &amp;quot; portion ===&lt;br /&gt;
 sed '/^Subject: */!d; s///;q'&lt;br /&gt;
&lt;br /&gt;
===get return address header ===&lt;br /&gt;
 sed '/^Reply-To:/q; /^From:/h; /./d;g;q'&lt;br /&gt;
&lt;br /&gt;
===parse out the address proper. Pulls out the e-mail address by itself from the 1-line return address header (see preceding script) ===&lt;br /&gt;
 sed 's/ *(.*)//; s/&amp;gt;.*//; s/.*[:&amp;lt;] *//'&lt;br /&gt;
&lt;br /&gt;
===add a leading angle bracket and space to each line (quote a message)=== &lt;br /&gt;
 sed 's/^/&amp;gt; /&lt;br /&gt;
&lt;br /&gt;
===delete leading angle bracket &amp;amp; space from each line (unquote a message)=== &lt;br /&gt;
 sed 's/^&amp;gt; //'&lt;br /&gt;
&lt;br /&gt;
===remove most HTML tags (accommodates multiple-line tags)=== &lt;br /&gt;
 sed -e :a -e 's/&amp;lt;[^&amp;lt;]*&amp;gt;/ /g;/&amp;lt;/{N;s/\n/ /;ba;}'&lt;br /&gt;
&lt;br /&gt;
===extract multi-part uuencoded binaries, removing extraneous header info, so that only the uuencoded portion remains. Files passed to sed must be passed in the proper order. Version 1 can be entered from the command line; version 2 can be made into an executable Unix shell script. (Modified from a script by Rahul Dhesi.) ===&lt;br /&gt;
 sed '/^end/,/^begin/d' file1 file2 ... fileX | uudecode # vers. 1 &lt;br /&gt;
 sed '/^end/,/^begin/d' $* | uudecode # vers. 2&lt;br /&gt;
&lt;br /&gt;
===zip up each .TXT file individually, deleting the source file and setting the name of each .ZIP file to the basename of the .TXT file (under DOS: the &amp;quot;dir /b&amp;quot; switch returns bare filenames in all caps).=== &lt;br /&gt;
 echo @echo off &amp;gt;zipup.bat &lt;br /&gt;
 dir /b *.txt | sed &amp;quot;s/^\(.*\)\.TXT/pkzip -mo \1 \1.TXT/&amp;quot; &amp;gt;&amp;gt;zipup.bat&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==TYPICAL USE:==&lt;br /&gt;
;Sed takes one or more editing commands and applies all of them, in sequence, to each line of input. After all the commands have been applied to the first input line, that line is output and a second input line is taken for processing, and the cycle repeats. The preceding examples assume that input comes from the standard input device (i.e, the console, normally this will be piped input). One or more filenames can be appended to the command line if the input does not come from stdin. Output is sent to stdout (the screen). Thus:&lt;br /&gt;
&lt;br /&gt;
 cat filename | sed '10q' # uses piped input &lt;br /&gt;
 sed '10q' filename # same effect, avoids a useless &amp;quot;cat&amp;quot; &lt;br /&gt;
 sed '10q' filename &amp;gt; newfile # redirects output to disk&lt;br /&gt;
&lt;br /&gt;
;For additional syntax instructions, including the way to apply editing commands from a disk file instead of the command line, consult &amp;quot;sed &amp;amp; awk, 2nd Edition,&amp;quot; by Dale Dougherty and Arnold Robbins (O'Reilly, 1997; http://www.ora.com), &amp;quot;UNIX Text Processing,&amp;quot; by Dale Dougherty and Tim O'Reilly (Hayden Books, 1987) or the tutorials by Mike Arst distributed in U-SEDIT2.ZIP (many sites). To fully exploit the power  of sed, one must understand &amp;quot;regular expressions.&amp;quot; For this, see  &amp;quot;Mastering Regular Expressions&amp;quot; by Jeffrey Friedl (O'Reilly, 1997).  The manual (&amp;quot;man&amp;quot;) pages on Unix systems may be helpful (try &amp;quot;man  sed&amp;quot;, &amp;quot;man regexp&amp;quot;, or the subsection on regular expressions in &amp;quot;man  ed&amp;quot;), but man pages are notoriously difficult. They are not written to  teach sed use or regexps to first-time users, but as a reference text  for those already acquainted with these tools. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==QUOTING SYNTAX:==&lt;br /&gt;
;The preceding examples use single quotes ('...')  instead of double quotes (&amp;quot;...&amp;quot;) to enclose editing commands, since  sed is typically used on a Unix platform. Single quotes prevent the  Unix shell from intrepreting the dollar sign ($) and backquotes  (`...`), which are expanded by the shell if they are enclosed in  double quotes. Users of the &amp;quot;csh&amp;quot; shell and derivatives will also need  to quote the exclamation mark (!) with the backslash (i.e., \!) to  properly run the examples listed above, even within single quotes.  Versions of sed written for DOS invariably require double quotes  (&amp;quot;...&amp;quot;) instead of single quotes to enclose editing commands. &lt;br /&gt;
&lt;br /&gt;
;USE OF '\t' IN SED SCRIPTS: For clarity in documentation, we have used  the expression '\t' to indicate a tab character (0x09) in the scripts.  However, most versions of sed do not recognize the '\t' abbreviation,  so when typing these scripts from the command line, you should press  the TAB key instead. '\t' is supported as a regular expression  metacharacter in awk, perl, and in a few implementations of sed. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==VERSIONS OF SED:==&lt;br /&gt;
;Versions of sed do differ, and some slight syntax  variation is to be expected. In particular, most do not support the  use of labels (:name) or branch instructions (b,t) within editing  commands, except at the end of those commands. We have used the syntax  which will be portable to most users of sed, even though the popular  GNU versions of sed allow a more succinct syntax. When the reader sees  a fairly long command such as this: &lt;br /&gt;
&lt;br /&gt;
sed -e '/AAA/b' -e '/BBB/b' -e '/CCC/b' -e d&lt;br /&gt;
&lt;br /&gt;
;it is heartening to know that GNU sed will let you reduce it to:&lt;br /&gt;
&lt;br /&gt;
 sed '/AAA/b;/BBB/b;/CCC/b;d'&lt;br /&gt;
&lt;br /&gt;
;In addition, remember that while many versions of sed accept a command like &amp;quot;/one/ s/RE1/RE2/&amp;quot;, some do NOT allow &amp;quot;/one/! s/RE1/RE2/&amp;quot;, which contains space before the 's'. Omit the space when typing the command.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==OPTIMIZING FOR SPEED:==&lt;br /&gt;
;If execution speed needs to be increased (due to large input files or slow processors or hard disks), substitution will be executed more quickly if the &amp;quot;find&amp;quot; expression is specified before giving the &amp;quot;s/.../.../&amp;quot; instruction. Thus:&lt;br /&gt;
&lt;br /&gt;
 sed 's/foo/bar/g' filename # standard replace command &lt;br /&gt;
 sed '/foo/ s/foo/bar/g' filename # executes more quickly &lt;br /&gt;
 sed '/foo/ s//bar/g' filename # shorthand sed syntax&lt;br /&gt;
&lt;br /&gt;
;On line selection or deletion in which you only need to output lines from the first part of the file, a &amp;quot;quit&amp;quot; command (q) in the script will drastically reduce processing time for large files. Thus:&lt;br /&gt;
&lt;br /&gt;
 sed -n '45,50p' filename # print line nos. 45-50 of a file &lt;br /&gt;
 sed -n '51q;45,50p' filename # same, but executes much faster&lt;br /&gt;
&lt;br /&gt;
;If you have any additional scripts to contribute or if you find errors in this document, please send e-mail to the compiler. Indicate the version of sed you used, the operating system it was compiled for, and the nature of the problem. Various scripts in this file were written or contributed by:&lt;br /&gt;
&lt;br /&gt;
 Al Aab &amp;lt;af137@freenet.toronto.on.ca&amp;gt; # &amp;quot;seders&amp;quot; list moderator &lt;br /&gt;
 Dale Dougherty &amp;lt;dale@songline.com&amp;gt; # author of &amp;quot;sed &amp;amp; awk&amp;quot; &lt;br /&gt;
 Carlos Duarte &amp;lt;cdua@algos.inesc.pt&amp;gt; # author of &amp;quot;do it with sed&amp;quot; &lt;br /&gt;
 Eric Pement &amp;lt;epement@jpusa.chi.il.us&amp;gt; # author of this document &lt;br /&gt;
 S.G.Ravenhall &amp;lt; S.G.Ravenhall@open.ac.uk&amp;gt; # great de-html script &lt;br /&gt;
 Greg Ubben &amp;lt;gsu@romulus.ncsc.mil&amp;gt; # many contributions &amp;amp; much help&lt;br /&gt;
&lt;br /&gt;
==Additional SED Commands==&lt;br /&gt;
===Lowercase to Upercase===&lt;br /&gt;
 sed ’s/./\u&amp;amp;/g’&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Tjmustard</name></author>
		
	</entry>
	<entry>
		<id>https://phyc-wiki.chem.oregonstate.edu/index.php?title=SED&amp;diff=110</id>
		<title>SED</title>
		<link rel="alternate" type="text/html" href="https://phyc-wiki.chem.oregonstate.edu/index.php?title=SED&amp;diff=110"/>
		<updated>2014-05-13T17:45:11Z</updated>

		<summary type="html">&lt;p&gt;Tjmustard: /* =Handy One Liners */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;====General Use====&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Handy One Liners====&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
;HANDY ONE-LINERS FOR SED (Unix stream editor) Oct. 29, 1997 &lt;br /&gt;
:compiled by Eric Pement &amp;lt;epement@jpusa.chi.il.us&amp;gt; version 4.3 &lt;br /&gt;
:Latest version of this file is always at &amp;lt;http://www.wollery.demon.co.uk&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==FILE SPACING:==&lt;br /&gt;
&lt;br /&gt;
===double space a file===&lt;br /&gt;
 sed G&lt;br /&gt;
&lt;br /&gt;
===triple space a file===&lt;br /&gt;
 sed 'G;G'&lt;br /&gt;
&lt;br /&gt;
===undo double-spacing (assumes even-numbered lines are always blank)===&lt;br /&gt;
 sed 'n;d'&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==NUMBERING:==&lt;br /&gt;
&lt;br /&gt;
===number each line of a file (simple left alignment). Using a tab (see note on '\t' at end of file) instead of space will preserve margins. ===&lt;br /&gt;
 sed = filename | sed 'N;s/\n/\t/'&lt;br /&gt;
&lt;br /&gt;
===number each line of a file (number on left, right-aligned) ===&lt;br /&gt;
 sed = filename | sed 'N; s/^/ /; s/ *\(.\{6,\}\)\n/\1 /'&lt;br /&gt;
&lt;br /&gt;
===number each line of file, but only print numbers if line is not blank ===&lt;br /&gt;
 sed '/./=' filename | sed '/./N; s/\n/ /'&lt;br /&gt;
&lt;br /&gt;
===count lines (emulates &amp;quot;wc -l&amp;quot;) ===&lt;br /&gt;
 sed -n '$='&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==TEXT CONVERSION AND SUBSTITUTION:==&lt;br /&gt;
&lt;br /&gt;
===IN UNIX ENVIRONMENT: convert DOS newlines (CR/LF) to Unix format ===&lt;br /&gt;
 sed 's/.$//'&lt;br /&gt;
&lt;br /&gt;
===IN DOS ENVIRONMENT: convert Unix newlines (LF) to DOS format ===&lt;br /&gt;
 sed 's/$//' # method 1 &lt;br /&gt;
 sed -n p # method 2&lt;br /&gt;
&lt;br /&gt;
===delete leading whitespace (spaces, tabs) from front of each line aligns all text flush left ===&lt;br /&gt;
 sed 's/^[ \t]*//' # see note on '\t' at end of file&lt;br /&gt;
&lt;br /&gt;
===delete trailing whitespace (spaces, tabs) from end of each line=== &lt;br /&gt;
 sed 's/[ \t]*$//' # see note on '\t' at end of file&lt;br /&gt;
&lt;br /&gt;
===delete BOTH leading and trailing whitespace from each line=== &lt;br /&gt;
 sed 's/^[ \t]*//;s/[ \t]*$//'&lt;br /&gt;
&lt;br /&gt;
===insert 5 blank spaces at beginning of each line (make page offset) ===&lt;br /&gt;
 sed 's/^/ /'&lt;br /&gt;
&lt;br /&gt;
===align all text flush right on a 79-column width=== &lt;br /&gt;
 sed -e :a -e 's/^.\{1,78\}$/ &amp;amp;/;ta' # set at 78 plus 1 space&lt;br /&gt;
&lt;br /&gt;
===center all text in the middle of 79-column width. In method 1, spaces at the beginning of the line are significant, and trailing spaces are appended at the end of the line. In method 2, spaces at the beginning of the line are discarded in centering the line, and no trailing spaces appear at the end of lines. ===&lt;br /&gt;
 sed -e :a -e 's/^.\{1,77\}$/ &amp;amp; /;ta' # method 1 &lt;br /&gt;
 sed -e :a -e 's/^.\{1,77\}$/ &amp;amp;/;ta' -e 's/\( *\)\1/\1/' # method 2&lt;br /&gt;
&lt;br /&gt;
===substitute (find &amp;amp; replace) &amp;quot;foo&amp;quot; with &amp;quot;bar&amp;quot; on each line ===&lt;br /&gt;
 sed 's/foo/bar/' # replaces only 1st instance in a line &lt;br /&gt;
 sed 's/foo/bar/4' # replaces only 4th instance in a line &lt;br /&gt;
 sed 's/foo/bar/g' # replaces ALL instances in a line&lt;br /&gt;
&lt;br /&gt;
===substitute &amp;quot;foo&amp;quot; with &amp;quot;bar&amp;quot; ONLY for lines which contain &amp;quot;baz&amp;quot; ===&lt;br /&gt;
 sed '/baz/s/foo/bar/g'&lt;br /&gt;
&lt;br /&gt;
===substitute &amp;quot;foo&amp;quot; with &amp;quot;bar&amp;quot; EXCEPT for lines which contain &amp;quot;baz&amp;quot; ===&lt;br /&gt;
 sed '/baz/!s/foo/bar/g'&lt;br /&gt;
&lt;br /&gt;
===reverse order of lines (emulates &amp;quot;tac&amp;quot;) ===&lt;br /&gt;
 sed '1!G;h;$!d'&lt;br /&gt;
&lt;br /&gt;
===reverse each character on the line (emulates &amp;quot;rev&amp;quot;) ===&lt;br /&gt;
 sed '/\n/!G;s/\(.\)\(.*\n\)/&amp;amp;\2\1/;//D;s/.//'&lt;br /&gt;
&lt;br /&gt;
===join pairs of lines side-by-side (like &amp;quot;paste&amp;quot;) ===&lt;br /&gt;
 sed 'N;s/\n/ /'&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==SELECTIVE PRINTING OF CERTAIN LINES:==&lt;br /&gt;
&lt;br /&gt;
===print first 10 lines of file (emulates behavior of &amp;quot;head&amp;quot;) ===&lt;br /&gt;
 sed 10q&lt;br /&gt;
&lt;br /&gt;
===print first line of file (emulates &amp;quot;head -1&amp;quot;) ===&lt;br /&gt;
 sed q&lt;br /&gt;
&lt;br /&gt;
===print last 10 lines of file (emulates &amp;quot;tail&amp;quot;) ===&lt;br /&gt;
 sed -e :a -e '$q;N;11,$D;ba'&lt;br /&gt;
&lt;br /&gt;
===print last line of file (emulates &amp;quot;tail -1&amp;quot;) ===&lt;br /&gt;
 sed '$!d'&lt;br /&gt;
&lt;br /&gt;
===print only lines which match regular expression (emulates &amp;quot;grep&amp;quot;) ===&lt;br /&gt;
 sed -n '/regexp/p' # method 1 &lt;br /&gt;
 sed '/regexp/!d' # method 2&lt;br /&gt;
&lt;br /&gt;
===print only lines which do NOT match regexp (emulates &amp;quot;grep -v&amp;quot;) ===&lt;br /&gt;
 sed -n '/regexp/!p' # method 1, corresponds to above &lt;br /&gt;
 sed '/regexp/d' # method 2, simpler syntax&lt;br /&gt;
&lt;br /&gt;
===print 1 line of context before and after regexp, with line number indicating where the regexp occurred (similar to &amp;quot;grep -A1 -B1&amp;quot;) ===&lt;br /&gt;
 sed -n -e '/regexp/{=;x;1!p;g;$!N;p;D;}' -e h&lt;br /&gt;
&lt;br /&gt;
===grep for AAA and BBB and CCC (in any order) ===&lt;br /&gt;
 sed '/AAA/!d; /BBB/!d; /CCC/!d'&lt;br /&gt;
&lt;br /&gt;
===grep for AAA or BBB or CCC (emulates &amp;quot;egrep&amp;quot;) ===&lt;br /&gt;
 sed -e '/AAA/b' -e '/BBB/b' -e '/CCC/b' -e d&lt;br /&gt;
&lt;br /&gt;
===print only lines of 65 characters or longer ===&lt;br /&gt;
 sed -n '/^.\{65\}/p'&lt;br /&gt;
&lt;br /&gt;
===print only lines of less than 65 characters ===&lt;br /&gt;
 sed -n '/^.\{65\}/!p' # method 1, corresponds to above &lt;br /&gt;
 sed '/^.\{65\}/d' # method 2, simpler syntax&lt;br /&gt;
&lt;br /&gt;
===print section of file from regular expression to end of file ===&lt;br /&gt;
 sed -n '/regexp/,$p'&lt;br /&gt;
&lt;br /&gt;
===print section of file based on line numbers (lines 8-12, inclusive) ===&lt;br /&gt;
 sed -n '8,12p' # method 1 &lt;br /&gt;
 sed '8,12!d' # method 2&lt;br /&gt;
&lt;br /&gt;
===print line number 52 ===&lt;br /&gt;
 sed -n '52p' # method 1 &lt;br /&gt;
 sed '52!d' # method 2 &lt;br /&gt;
 sed '52q;d' # method 3, efficient on large files&lt;br /&gt;
&lt;br /&gt;
===print section of file between two regular expressions (inclusive) ===&lt;br /&gt;
 sed -n '/Iowa/,/Montana/p' # case sensitive&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==SELECTIVE DELETION OF CERTAIN LINES:==&lt;br /&gt;
&lt;br /&gt;
===print all of file EXCEPT section between 2 regular expressions ===&lt;br /&gt;
 sed '/Iowa/,/Montana/d'&lt;br /&gt;
&lt;br /&gt;
===delete duplicate lines from a sorted file (emulates &amp;quot;uniq&amp;quot;). First line in a set of duplicate lines is kept, the rest are deleted ===&lt;br /&gt;
 sed '$!N; /^\(.*\)\n\1$/!P; D'&lt;br /&gt;
&lt;br /&gt;
===delete ALL blank lines from a file (same as &amp;quot;grep '.' &amp;quot;) ===&lt;br /&gt;
 sed '/^$/d'&lt;br /&gt;
&lt;br /&gt;
===delete all CONSECUTIVE blank lines from file except the first; also deletes all blank lines from top and end of file (emulates &amp;quot;cat -s&amp;quot;) ===&lt;br /&gt;
 sed '/./,/^$/!d' # method 1, allows 0 blanks at top, 1 at EOF &lt;br /&gt;
 sed '/^$/N;/\n$/D' # method 2, allows 1 blank at top, 0 at EOF&lt;br /&gt;
&lt;br /&gt;
===delete all CONSECUTIVE blank lines from file except the first 2:=== &lt;br /&gt;
 sed '/^$/N;/\n$/N;//D'&lt;br /&gt;
&lt;br /&gt;
===delete all leading blank lines at top of file=== &lt;br /&gt;
 sed '/./,$!d'&lt;br /&gt;
&lt;br /&gt;
===delete all trailing blank lines at end of file=== &lt;br /&gt;
 sed -e :a -e '/^\n*$/N;/\n$/ba'&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==SPECIAL APPLICATIONS:==&lt;br /&gt;
&lt;br /&gt;
===remove nroff overstrikes (char, backspace) from man pages=== &lt;br /&gt;
 sed &amp;quot;s/.`echo \\\b`//g&amp;quot; # double quotes required for Unix environment &lt;br /&gt;
 sed 's/.\x08//g' # hex expression for GNU sed (octal is &amp;quot;\010&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
===get Usenet/e-mail message header=== &lt;br /&gt;
 sed '/^$/q' # deletes everything after first blank line&lt;br /&gt;
&lt;br /&gt;
===get Usenet/e-mail message body=== &lt;br /&gt;
 sed '1,/^$/d' # deletes everything up to first blank line&lt;br /&gt;
&lt;br /&gt;
===get Subject header, but remove initial &amp;quot;Subject: &amp;quot; portion ===&lt;br /&gt;
 sed '/^Subject: */!d; s///;q'&lt;br /&gt;
&lt;br /&gt;
===get return address header ===&lt;br /&gt;
 sed '/^Reply-To:/q; /^From:/h; /./d;g;q'&lt;br /&gt;
&lt;br /&gt;
===parse out the address proper. Pulls out the e-mail address by itself from the 1-line return address header (see preceding script) ===&lt;br /&gt;
 sed 's/ *(.*)//; s/&amp;gt;.*//; s/.*[:&amp;lt;] *//'&lt;br /&gt;
&lt;br /&gt;
===add a leading angle bracket and space to each line (quote a message)=== &lt;br /&gt;
 sed 's/^/&amp;gt; /&lt;br /&gt;
&lt;br /&gt;
===delete leading angle bracket &amp;amp; space from each line (unquote a message)=== &lt;br /&gt;
 sed 's/^&amp;gt; //'&lt;br /&gt;
&lt;br /&gt;
===remove most HTML tags (accommodates multiple-line tags)=== &lt;br /&gt;
 sed -e :a -e 's/&amp;lt;[^&amp;lt;]*&amp;gt;/ /g;/&amp;lt;/{N;s/\n/ /;ba;}'&lt;br /&gt;
&lt;br /&gt;
===extract multi-part uuencoded binaries, removing extraneous header info, so that only the uuencoded portion remains. Files passed to sed must be passed in the proper order. Version 1 can be entered from the command line; version 2 can be made into an executable Unix shell script. (Modified from a script by Rahul Dhesi.) ===&lt;br /&gt;
 sed '/^end/,/^begin/d' file1 file2 ... fileX | uudecode # vers. 1 &lt;br /&gt;
 sed '/^end/,/^begin/d' $* | uudecode # vers. 2&lt;br /&gt;
&lt;br /&gt;
===zip up each .TXT file individually, deleting the source file and setting the name of each .ZIP file to the basename of the .TXT file (under DOS: the &amp;quot;dir /b&amp;quot; switch returns bare filenames in all caps).=== &lt;br /&gt;
 echo @echo off &amp;gt;zipup.bat &lt;br /&gt;
 dir /b *.txt | sed &amp;quot;s/^\(.*\)\.TXT/pkzip -mo \1 \1.TXT/&amp;quot; &amp;gt;&amp;gt;zipup.bat&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==TYPICAL USE:==&lt;br /&gt;
;Sed takes one or more editing commands and applies all of them, in sequence, to each line of input. After all the commands have been applied to the first input line, that line is output and a second input line is taken for processing, and the cycle repeats. The preceding examples assume that input comes from the standard input device (i.e, the console, normally this will be piped input). One or more filenames can be appended to the command line if the input does not come from stdin. Output is sent to stdout (the screen). Thus:&lt;br /&gt;
&lt;br /&gt;
 cat filename | sed '10q' # uses piped input &lt;br /&gt;
 sed '10q' filename # same effect, avoids a useless &amp;quot;cat&amp;quot; &lt;br /&gt;
 sed '10q' filename &amp;gt; newfile # redirects output to disk&lt;br /&gt;
&lt;br /&gt;
;For additional syntax instructions, including the way to apply editing commands from a disk file instead of the command line, consult &amp;quot;sed &amp;amp; awk, 2nd Edition,&amp;quot; by Dale Dougherty and Arnold Robbins (O'Reilly, 1997; http://www.ora.com), &amp;quot;UNIX Text Processing,&amp;quot; by Dale Dougherty and Tim O'Reilly (Hayden Books, 1987) or the tutorials by Mike Arst distributed in U-SEDIT2.ZIP (many sites). To fully exploit the power  of sed, one must understand &amp;quot;regular expressions.&amp;quot; For this, see  &amp;quot;Mastering Regular Expressions&amp;quot; by Jeffrey Friedl (O'Reilly, 1997).  The manual (&amp;quot;man&amp;quot;) pages on Unix systems may be helpful (try &amp;quot;man  sed&amp;quot;, &amp;quot;man regexp&amp;quot;, or the subsection on regular expressions in &amp;quot;man  ed&amp;quot;), but man pages are notoriously difficult. They are not written to  teach sed use or regexps to first-time users, but as a reference text  for those already acquainted with these tools. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==QUOTING SYNTAX:==&lt;br /&gt;
;The preceding examples use single quotes ('...')  instead of double quotes (&amp;quot;...&amp;quot;) to enclose editing commands, since  sed is typically used on a Unix platform. Single quotes prevent the  Unix shell from intrepreting the dollar sign ($) and backquotes  (`...`), which are expanded by the shell if they are enclosed in  double quotes. Users of the &amp;quot;csh&amp;quot; shell and derivatives will also need  to quote the exclamation mark (!) with the backslash (i.e., \!) to  properly run the examples listed above, even within single quotes.  Versions of sed written for DOS invariably require double quotes  (&amp;quot;...&amp;quot;) instead of single quotes to enclose editing commands. &lt;br /&gt;
&lt;br /&gt;
;USE OF '\t' IN SED SCRIPTS: For clarity in documentation, we have used  the expression '\t' to indicate a tab character (0x09) in the scripts.  However, most versions of sed do not recognize the '\t' abbreviation,  so when typing these scripts from the command line, you should press  the TAB key instead. '\t' is supported as a regular expression  metacharacter in awk, perl, and in a few implementations of sed. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==VERSIONS OF SED:==&lt;br /&gt;
;Versions of sed do differ, and some slight syntax  variation is to be expected. In particular, most do not support the  use of labels (:name) or branch instructions (b,t) within editing  commands, except at the end of those commands. We have used the syntax  which will be portable to most users of sed, even though the popular  GNU versions of sed allow a more succinct syntax. When the reader sees  a fairly long command such as this: &lt;br /&gt;
&lt;br /&gt;
sed -e '/AAA/b' -e '/BBB/b' -e '/CCC/b' -e d&lt;br /&gt;
&lt;br /&gt;
;it is heartening to know that GNU sed will let you reduce it to:&lt;br /&gt;
&lt;br /&gt;
 sed '/AAA/b;/BBB/b;/CCC/b;d'&lt;br /&gt;
&lt;br /&gt;
;In addition, remember that while many versions of sed accept a command like &amp;quot;/one/ s/RE1/RE2/&amp;quot;, some do NOT allow &amp;quot;/one/! s/RE1/RE2/&amp;quot;, which contains space before the 's'. Omit the space when typing the command.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==OPTIMIZING FOR SPEED:==&lt;br /&gt;
;If execution speed needs to be increased (due to large input files or slow processors or hard disks), substitution will be executed more quickly if the &amp;quot;find&amp;quot; expression is specified before giving the &amp;quot;s/.../.../&amp;quot; instruction. Thus:&lt;br /&gt;
&lt;br /&gt;
 sed 's/foo/bar/g' filename # standard replace command &lt;br /&gt;
 sed '/foo/ s/foo/bar/g' filename # executes more quickly &lt;br /&gt;
 sed '/foo/ s//bar/g' filename # shorthand sed syntax&lt;br /&gt;
&lt;br /&gt;
;On line selection or deletion in which you only need to output lines from the first part of the file, a &amp;quot;quit&amp;quot; command (q) in the script will drastically reduce processing time for large files. Thus:&lt;br /&gt;
&lt;br /&gt;
 sed -n '45,50p' filename # print line nos. 45-50 of a file &lt;br /&gt;
 sed -n '51q;45,50p' filename # same, but executes much faster&lt;br /&gt;
&lt;br /&gt;
;If you have any additional scripts to contribute or if you find errors in this document, please send e-mail to the compiler. Indicate the version of sed you used, the operating system it was compiled for, and the nature of the problem. Various scripts in this file were written or contributed by:&lt;br /&gt;
&lt;br /&gt;
 Al Aab &amp;lt;af137@freenet.toronto.on.ca&amp;gt; # &amp;quot;seders&amp;quot; list moderator &lt;br /&gt;
 Dale Dougherty &amp;lt;dale@songline.com&amp;gt; # author of &amp;quot;sed &amp;amp; awk&amp;quot; &lt;br /&gt;
 Carlos Duarte &amp;lt;cdua@algos.inesc.pt&amp;gt; # author of &amp;quot;do it with sed&amp;quot; &lt;br /&gt;
 Eric Pement &amp;lt;epement@jpusa.chi.il.us&amp;gt; # author of this document &lt;br /&gt;
 S.G.Ravenhall &amp;lt; S.G.Ravenhall@open.ac.uk&amp;gt; # great de-html script &lt;br /&gt;
 Greg Ubben &amp;lt;gsu@romulus.ncsc.mil&amp;gt; # many contributions &amp;amp; much help&lt;br /&gt;
&lt;br /&gt;
==Additional SED Commands==&lt;br /&gt;
===Lowercase to Upercase===&lt;br /&gt;
 sed ’s/./\u&amp;amp;/g’&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Tjmustard</name></author>
		
	</entry>
	<entry>
		<id>https://phyc-wiki.chem.oregonstate.edu/index.php?title=SED&amp;diff=107</id>
		<title>SED</title>
		<link rel="alternate" type="text/html" href="https://phyc-wiki.chem.oregonstate.edu/index.php?title=SED&amp;diff=107"/>
		<updated>2014-05-13T17:44:16Z</updated>

		<summary type="html">&lt;p&gt;Tjmustard: Created page with &amp;quot;====Handy One Liners=== &amp;lt;pre&amp;gt; ;HANDY ONE-LINERS FOR SED (Unix stream editor) Oct. 29, 1997  :compiled by Eric Pement &amp;lt;epement@jpusa.chi.il.us&amp;gt; version 4.3  :Latest version of ...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;====Handy One Liners===&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
;HANDY ONE-LINERS FOR SED (Unix stream editor) Oct. 29, 1997 &lt;br /&gt;
:compiled by Eric Pement &amp;lt;epement@jpusa.chi.il.us&amp;gt; version 4.3 &lt;br /&gt;
:Latest version of this file is always at &amp;lt;http://www.wollery.demon.co.uk&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==FILE SPACING:==&lt;br /&gt;
&lt;br /&gt;
===double space a file===&lt;br /&gt;
 sed G&lt;br /&gt;
&lt;br /&gt;
===triple space a file===&lt;br /&gt;
 sed 'G;G'&lt;br /&gt;
&lt;br /&gt;
===undo double-spacing (assumes even-numbered lines are always blank)===&lt;br /&gt;
 sed 'n;d'&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==NUMBERING:==&lt;br /&gt;
&lt;br /&gt;
===number each line of a file (simple left alignment). Using a tab (see note on '\t' at end of file) instead of space will preserve margins. ===&lt;br /&gt;
 sed = filename | sed 'N;s/\n/\t/'&lt;br /&gt;
&lt;br /&gt;
===number each line of a file (number on left, right-aligned) ===&lt;br /&gt;
 sed = filename | sed 'N; s/^/ /; s/ *\(.\{6,\}\)\n/\1 /'&lt;br /&gt;
&lt;br /&gt;
===number each line of file, but only print numbers if line is not blank ===&lt;br /&gt;
 sed '/./=' filename | sed '/./N; s/\n/ /'&lt;br /&gt;
&lt;br /&gt;
===count lines (emulates &amp;quot;wc -l&amp;quot;) ===&lt;br /&gt;
 sed -n '$='&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==TEXT CONVERSION AND SUBSTITUTION:==&lt;br /&gt;
&lt;br /&gt;
===IN UNIX ENVIRONMENT: convert DOS newlines (CR/LF) to Unix format ===&lt;br /&gt;
 sed 's/.$//'&lt;br /&gt;
&lt;br /&gt;
===IN DOS ENVIRONMENT: convert Unix newlines (LF) to DOS format ===&lt;br /&gt;
 sed 's/$//' # method 1 &lt;br /&gt;
 sed -n p # method 2&lt;br /&gt;
&lt;br /&gt;
===delete leading whitespace (spaces, tabs) from front of each line aligns all text flush left ===&lt;br /&gt;
 sed 's/^[ \t]*//' # see note on '\t' at end of file&lt;br /&gt;
&lt;br /&gt;
===delete trailing whitespace (spaces, tabs) from end of each line=== &lt;br /&gt;
 sed 's/[ \t]*$//' # see note on '\t' at end of file&lt;br /&gt;
&lt;br /&gt;
===delete BOTH leading and trailing whitespace from each line=== &lt;br /&gt;
 sed 's/^[ \t]*//;s/[ \t]*$//'&lt;br /&gt;
&lt;br /&gt;
===insert 5 blank spaces at beginning of each line (make page offset) ===&lt;br /&gt;
 sed 's/^/ /'&lt;br /&gt;
&lt;br /&gt;
===align all text flush right on a 79-column width=== &lt;br /&gt;
 sed -e :a -e 's/^.\{1,78\}$/ &amp;amp;/;ta' # set at 78 plus 1 space&lt;br /&gt;
&lt;br /&gt;
===center all text in the middle of 79-column width. In method 1, spaces at the beginning of the line are significant, and trailing spaces are appended at the end of the line. In method 2, spaces at the beginning of the line are discarded in centering the line, and no trailing spaces appear at the end of lines. ===&lt;br /&gt;
 sed -e :a -e 's/^.\{1,77\}$/ &amp;amp; /;ta' # method 1 &lt;br /&gt;
 sed -e :a -e 's/^.\{1,77\}$/ &amp;amp;/;ta' -e 's/\( *\)\1/\1/' # method 2&lt;br /&gt;
&lt;br /&gt;
===substitute (find &amp;amp; replace) &amp;quot;foo&amp;quot; with &amp;quot;bar&amp;quot; on each line ===&lt;br /&gt;
 sed 's/foo/bar/' # replaces only 1st instance in a line &lt;br /&gt;
 sed 's/foo/bar/4' # replaces only 4th instance in a line &lt;br /&gt;
 sed 's/foo/bar/g' # replaces ALL instances in a line&lt;br /&gt;
&lt;br /&gt;
===substitute &amp;quot;foo&amp;quot; with &amp;quot;bar&amp;quot; ONLY for lines which contain &amp;quot;baz&amp;quot; ===&lt;br /&gt;
 sed '/baz/s/foo/bar/g'&lt;br /&gt;
&lt;br /&gt;
===substitute &amp;quot;foo&amp;quot; with &amp;quot;bar&amp;quot; EXCEPT for lines which contain &amp;quot;baz&amp;quot; ===&lt;br /&gt;
 sed '/baz/!s/foo/bar/g'&lt;br /&gt;
&lt;br /&gt;
===reverse order of lines (emulates &amp;quot;tac&amp;quot;) ===&lt;br /&gt;
 sed '1!G;h;$!d'&lt;br /&gt;
&lt;br /&gt;
===reverse each character on the line (emulates &amp;quot;rev&amp;quot;) ===&lt;br /&gt;
 sed '/\n/!G;s/\(.\)\(.*\n\)/&amp;amp;\2\1/;//D;s/.//'&lt;br /&gt;
&lt;br /&gt;
===join pairs of lines side-by-side (like &amp;quot;paste&amp;quot;) ===&lt;br /&gt;
 sed 'N;s/\n/ /'&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==SELECTIVE PRINTING OF CERTAIN LINES:==&lt;br /&gt;
&lt;br /&gt;
===print first 10 lines of file (emulates behavior of &amp;quot;head&amp;quot;) ===&lt;br /&gt;
 sed 10q&lt;br /&gt;
&lt;br /&gt;
===print first line of file (emulates &amp;quot;head -1&amp;quot;) ===&lt;br /&gt;
 sed q&lt;br /&gt;
&lt;br /&gt;
===print last 10 lines of file (emulates &amp;quot;tail&amp;quot;) ===&lt;br /&gt;
 sed -e :a -e '$q;N;11,$D;ba'&lt;br /&gt;
&lt;br /&gt;
===print last line of file (emulates &amp;quot;tail -1&amp;quot;) ===&lt;br /&gt;
 sed '$!d'&lt;br /&gt;
&lt;br /&gt;
===print only lines which match regular expression (emulates &amp;quot;grep&amp;quot;) ===&lt;br /&gt;
 sed -n '/regexp/p' # method 1 &lt;br /&gt;
 sed '/regexp/!d' # method 2&lt;br /&gt;
&lt;br /&gt;
===print only lines which do NOT match regexp (emulates &amp;quot;grep -v&amp;quot;) ===&lt;br /&gt;
 sed -n '/regexp/!p' # method 1, corresponds to above &lt;br /&gt;
 sed '/regexp/d' # method 2, simpler syntax&lt;br /&gt;
&lt;br /&gt;
===print 1 line of context before and after regexp, with line number indicating where the regexp occurred (similar to &amp;quot;grep -A1 -B1&amp;quot;) ===&lt;br /&gt;
 sed -n -e '/regexp/{=;x;1!p;g;$!N;p;D;}' -e h&lt;br /&gt;
&lt;br /&gt;
===grep for AAA and BBB and CCC (in any order) ===&lt;br /&gt;
 sed '/AAA/!d; /BBB/!d; /CCC/!d'&lt;br /&gt;
&lt;br /&gt;
===grep for AAA or BBB or CCC (emulates &amp;quot;egrep&amp;quot;) ===&lt;br /&gt;
 sed -e '/AAA/b' -e '/BBB/b' -e '/CCC/b' -e d&lt;br /&gt;
&lt;br /&gt;
===print only lines of 65 characters or longer ===&lt;br /&gt;
 sed -n '/^.\{65\}/p'&lt;br /&gt;
&lt;br /&gt;
===print only lines of less than 65 characters ===&lt;br /&gt;
 sed -n '/^.\{65\}/!p' # method 1, corresponds to above &lt;br /&gt;
 sed '/^.\{65\}/d' # method 2, simpler syntax&lt;br /&gt;
&lt;br /&gt;
===print section of file from regular expression to end of file ===&lt;br /&gt;
 sed -n '/regexp/,$p'&lt;br /&gt;
&lt;br /&gt;
===print section of file based on line numbers (lines 8-12, inclusive) ===&lt;br /&gt;
 sed -n '8,12p' # method 1 &lt;br /&gt;
 sed '8,12!d' # method 2&lt;br /&gt;
&lt;br /&gt;
===print line number 52 ===&lt;br /&gt;
 sed -n '52p' # method 1 &lt;br /&gt;
 sed '52!d' # method 2 &lt;br /&gt;
 sed '52q;d' # method 3, efficient on large files&lt;br /&gt;
&lt;br /&gt;
===print section of file between two regular expressions (inclusive) ===&lt;br /&gt;
 sed -n '/Iowa/,/Montana/p' # case sensitive&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==SELECTIVE DELETION OF CERTAIN LINES:==&lt;br /&gt;
&lt;br /&gt;
===print all of file EXCEPT section between 2 regular expressions ===&lt;br /&gt;
 sed '/Iowa/,/Montana/d'&lt;br /&gt;
&lt;br /&gt;
===delete duplicate lines from a sorted file (emulates &amp;quot;uniq&amp;quot;). First line in a set of duplicate lines is kept, the rest are deleted ===&lt;br /&gt;
 sed '$!N; /^\(.*\)\n\1$/!P; D'&lt;br /&gt;
&lt;br /&gt;
===delete ALL blank lines from a file (same as &amp;quot;grep '.' &amp;quot;) ===&lt;br /&gt;
 sed '/^$/d'&lt;br /&gt;
&lt;br /&gt;
===delete all CONSECUTIVE blank lines from file except the first; also deletes all blank lines from top and end of file (emulates &amp;quot;cat -s&amp;quot;) ===&lt;br /&gt;
 sed '/./,/^$/!d' # method 1, allows 0 blanks at top, 1 at EOF &lt;br /&gt;
 sed '/^$/N;/\n$/D' # method 2, allows 1 blank at top, 0 at EOF&lt;br /&gt;
&lt;br /&gt;
===delete all CONSECUTIVE blank lines from file except the first 2:=== &lt;br /&gt;
 sed '/^$/N;/\n$/N;//D'&lt;br /&gt;
&lt;br /&gt;
===delete all leading blank lines at top of file=== &lt;br /&gt;
 sed '/./,$!d'&lt;br /&gt;
&lt;br /&gt;
===delete all trailing blank lines at end of file=== &lt;br /&gt;
 sed -e :a -e '/^\n*$/N;/\n$/ba'&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==SPECIAL APPLICATIONS:==&lt;br /&gt;
&lt;br /&gt;
===remove nroff overstrikes (char, backspace) from man pages=== &lt;br /&gt;
 sed &amp;quot;s/.`echo \\\b`//g&amp;quot; # double quotes required for Unix environment &lt;br /&gt;
 sed 's/.\x08//g' # hex expression for GNU sed (octal is &amp;quot;\010&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
===get Usenet/e-mail message header=== &lt;br /&gt;
 sed '/^$/q' # deletes everything after first blank line&lt;br /&gt;
&lt;br /&gt;
===get Usenet/e-mail message body=== &lt;br /&gt;
 sed '1,/^$/d' # deletes everything up to first blank line&lt;br /&gt;
&lt;br /&gt;
===get Subject header, but remove initial &amp;quot;Subject: &amp;quot; portion ===&lt;br /&gt;
 sed '/^Subject: */!d; s///;q'&lt;br /&gt;
&lt;br /&gt;
===get return address header ===&lt;br /&gt;
 sed '/^Reply-To:/q; /^From:/h; /./d;g;q'&lt;br /&gt;
&lt;br /&gt;
===parse out the address proper. Pulls out the e-mail address by itself from the 1-line return address header (see preceding script) ===&lt;br /&gt;
 sed 's/ *(.*)//; s/&amp;gt;.*//; s/.*[:&amp;lt;] *//'&lt;br /&gt;
&lt;br /&gt;
===add a leading angle bracket and space to each line (quote a message)=== &lt;br /&gt;
 sed 's/^/&amp;gt; /&lt;br /&gt;
&lt;br /&gt;
===delete leading angle bracket &amp;amp; space from each line (unquote a message)=== &lt;br /&gt;
 sed 's/^&amp;gt; //'&lt;br /&gt;
&lt;br /&gt;
===remove most HTML tags (accommodates multiple-line tags)=== &lt;br /&gt;
 sed -e :a -e 's/&amp;lt;[^&amp;lt;]*&amp;gt;/ /g;/&amp;lt;/{N;s/\n/ /;ba;}'&lt;br /&gt;
&lt;br /&gt;
===extract multi-part uuencoded binaries, removing extraneous header info, so that only the uuencoded portion remains. Files passed to sed must be passed in the proper order. Version 1 can be entered from the command line; version 2 can be made into an executable Unix shell script. (Modified from a script by Rahul Dhesi.) ===&lt;br /&gt;
 sed '/^end/,/^begin/d' file1 file2 ... fileX | uudecode # vers. 1 &lt;br /&gt;
 sed '/^end/,/^begin/d' $* | uudecode # vers. 2&lt;br /&gt;
&lt;br /&gt;
===zip up each .TXT file individually, deleting the source file and setting the name of each .ZIP file to the basename of the .TXT file (under DOS: the &amp;quot;dir /b&amp;quot; switch returns bare filenames in all caps).=== &lt;br /&gt;
 echo @echo off &amp;gt;zipup.bat &lt;br /&gt;
 dir /b *.txt | sed &amp;quot;s/^\(.*\)\.TXT/pkzip -mo \1 \1.TXT/&amp;quot; &amp;gt;&amp;gt;zipup.bat&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==TYPICAL USE:==&lt;br /&gt;
;Sed takes one or more editing commands and applies all of them, in sequence, to each line of input. After all the commands have been applied to the first input line, that line is output and a second input line is taken for processing, and the cycle repeats. The preceding examples assume that input comes from the standard input device (i.e, the console, normally this will be piped input). One or more filenames can be appended to the command line if the input does not come from stdin. Output is sent to stdout (the screen). Thus:&lt;br /&gt;
&lt;br /&gt;
 cat filename | sed '10q' # uses piped input &lt;br /&gt;
 sed '10q' filename # same effect, avoids a useless &amp;quot;cat&amp;quot; &lt;br /&gt;
 sed '10q' filename &amp;gt; newfile # redirects output to disk&lt;br /&gt;
&lt;br /&gt;
;For additional syntax instructions, including the way to apply editing commands from a disk file instead of the command line, consult &amp;quot;sed &amp;amp; awk, 2nd Edition,&amp;quot; by Dale Dougherty and Arnold Robbins (O'Reilly, 1997; http://www.ora.com), &amp;quot;UNIX Text Processing,&amp;quot; by Dale Dougherty and Tim O'Reilly (Hayden Books, 1987) or the tutorials by Mike Arst distributed in U-SEDIT2.ZIP (many sites). To fully exploit the power  of sed, one must understand &amp;quot;regular expressions.&amp;quot; For this, see  &amp;quot;Mastering Regular Expressions&amp;quot; by Jeffrey Friedl (O'Reilly, 1997).  The manual (&amp;quot;man&amp;quot;) pages on Unix systems may be helpful (try &amp;quot;man  sed&amp;quot;, &amp;quot;man regexp&amp;quot;, or the subsection on regular expressions in &amp;quot;man  ed&amp;quot;), but man pages are notoriously difficult. They are not written to  teach sed use or regexps to first-time users, but as a reference text  for those already acquainted with these tools. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==QUOTING SYNTAX:==&lt;br /&gt;
;The preceding examples use single quotes ('...')  instead of double quotes (&amp;quot;...&amp;quot;) to enclose editing commands, since  sed is typically used on a Unix platform. Single quotes prevent the  Unix shell from intrepreting the dollar sign ($) and backquotes  (`...`), which are expanded by the shell if they are enclosed in  double quotes. Users of the &amp;quot;csh&amp;quot; shell and derivatives will also need  to quote the exclamation mark (!) with the backslash (i.e., \!) to  properly run the examples listed above, even within single quotes.  Versions of sed written for DOS invariably require double quotes  (&amp;quot;...&amp;quot;) instead of single quotes to enclose editing commands. &lt;br /&gt;
&lt;br /&gt;
;USE OF '\t' IN SED SCRIPTS: For clarity in documentation, we have used  the expression '\t' to indicate a tab character (0x09) in the scripts.  However, most versions of sed do not recognize the '\t' abbreviation,  so when typing these scripts from the command line, you should press  the TAB key instead. '\t' is supported as a regular expression  metacharacter in awk, perl, and in a few implementations of sed. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==VERSIONS OF SED:==&lt;br /&gt;
;Versions of sed do differ, and some slight syntax  variation is to be expected. In particular, most do not support the  use of labels (:name) or branch instructions (b,t) within editing  commands, except at the end of those commands. We have used the syntax  which will be portable to most users of sed, even though the popular  GNU versions of sed allow a more succinct syntax. When the reader sees  a fairly long command such as this: &lt;br /&gt;
&lt;br /&gt;
sed -e '/AAA/b' -e '/BBB/b' -e '/CCC/b' -e d&lt;br /&gt;
&lt;br /&gt;
;it is heartening to know that GNU sed will let you reduce it to:&lt;br /&gt;
&lt;br /&gt;
 sed '/AAA/b;/BBB/b;/CCC/b;d'&lt;br /&gt;
&lt;br /&gt;
;In addition, remember that while many versions of sed accept a command like &amp;quot;/one/ s/RE1/RE2/&amp;quot;, some do NOT allow &amp;quot;/one/! s/RE1/RE2/&amp;quot;, which contains space before the 's'. Omit the space when typing the command.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==OPTIMIZING FOR SPEED:==&lt;br /&gt;
;If execution speed needs to be increased (due to large input files or slow processors or hard disks), substitution will be executed more quickly if the &amp;quot;find&amp;quot; expression is specified before giving the &amp;quot;s/.../.../&amp;quot; instruction. Thus:&lt;br /&gt;
&lt;br /&gt;
 sed 's/foo/bar/g' filename # standard replace command &lt;br /&gt;
 sed '/foo/ s/foo/bar/g' filename # executes more quickly &lt;br /&gt;
 sed '/foo/ s//bar/g' filename # shorthand sed syntax&lt;br /&gt;
&lt;br /&gt;
;On line selection or deletion in which you only need to output lines from the first part of the file, a &amp;quot;quit&amp;quot; command (q) in the script will drastically reduce processing time for large files. Thus:&lt;br /&gt;
&lt;br /&gt;
 sed -n '45,50p' filename # print line nos. 45-50 of a file &lt;br /&gt;
 sed -n '51q;45,50p' filename # same, but executes much faster&lt;br /&gt;
&lt;br /&gt;
;If you have any additional scripts to contribute or if you find errors in this document, please send e-mail to the compiler. Indicate the version of sed you used, the operating system it was compiled for, and the nature of the problem. Various scripts in this file were written or contributed by:&lt;br /&gt;
&lt;br /&gt;
 Al Aab &amp;lt;af137@freenet.toronto.on.ca&amp;gt; # &amp;quot;seders&amp;quot; list moderator &lt;br /&gt;
 Dale Dougherty &amp;lt;dale@songline.com&amp;gt; # author of &amp;quot;sed &amp;amp; awk&amp;quot; &lt;br /&gt;
 Carlos Duarte &amp;lt;cdua@algos.inesc.pt&amp;gt; # author of &amp;quot;do it with sed&amp;quot; &lt;br /&gt;
 Eric Pement &amp;lt;epement@jpusa.chi.il.us&amp;gt; # author of this document &lt;br /&gt;
 S.G.Ravenhall &amp;lt; S.G.Ravenhall@open.ac.uk&amp;gt; # great de-html script &lt;br /&gt;
 Greg Ubben &amp;lt;gsu@romulus.ncsc.mil&amp;gt; # many contributions &amp;amp; much help&lt;br /&gt;
&lt;br /&gt;
==Additional SED Commands==&lt;br /&gt;
===Lowercase to Upercase===&lt;br /&gt;
 sed ’s/./\u&amp;amp;/g’&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Tjmustard</name></author>
		
	</entry>
	<entry>
		<id>https://phyc-wiki.chem.oregonstate.edu/index.php?title=Linux_Related&amp;diff=104</id>
		<title>Linux Related</title>
		<link rel="alternate" type="text/html" href="https://phyc-wiki.chem.oregonstate.edu/index.php?title=Linux_Related&amp;diff=104"/>
		<updated>2014-05-13T17:43:29Z</updated>

		<summary type="html">&lt;p&gt;Tjmustard: /* Linux Programs */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;===General Commands===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Linux Programs===&lt;br /&gt;
[[VIM]]&lt;br /&gt;
&lt;br /&gt;
[[SED]]&lt;br /&gt;
&lt;br /&gt;
[[AWK]]&lt;/div&gt;</summary>
		<author><name>Tjmustard</name></author>
		
	</entry>
	<entry>
		<id>https://phyc-wiki.chem.oregonstate.edu/index.php?title=AWK&amp;diff=101</id>
		<title>AWK</title>
		<link rel="alternate" type="text/html" href="https://phyc-wiki.chem.oregonstate.edu/index.php?title=AWK&amp;diff=101"/>
		<updated>2014-05-13T17:42:47Z</updated>

		<summary type="html">&lt;p&gt;Tjmustard: /* Handy One Liners */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;===General use:===&lt;br /&gt;
AWK can be used to:&lt;br /&gt;
# grab a specific substring from a larger string&lt;br /&gt;
# do basic math&lt;br /&gt;
&lt;br /&gt;
==Grabbing a substring==&lt;br /&gt;
 #echo &amp;quot;This is a large string.&amp;quot;|awk '{print $1}'&lt;br /&gt;
 This&lt;br /&gt;
&lt;br /&gt;
 #echo &amp;quot;This is a large string.&amp;quot;|awk '{print $4}'&lt;br /&gt;
 large&lt;br /&gt;
&lt;br /&gt;
==Basic Math==&lt;br /&gt;
 #count=5&lt;br /&gt;
 #echo $count|awk '{print $1 + 1}'&lt;br /&gt;
 6&lt;br /&gt;
&lt;br /&gt;
 #energy=-1283.5795938&lt;br /&gt;
 #echo $energy|awk '{print $1/4.184}'&lt;br /&gt;
 -306.782885707&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
-----&lt;br /&gt;
===Handy One Liners===&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
HANDY ONE-LINERS FOR AWK                                  22 July 2003&lt;br /&gt;
compiled by Eric Pement &amp;lt;pemente@northpark.edu&amp;gt;           version 0.22&lt;br /&gt;
   Latest version of this file is usually at:&lt;br /&gt;
   http://www.student.northpark.edu/pemente/awk/awk1line.txt&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
USAGE:&lt;br /&gt;
&lt;br /&gt;
    Unix:  awk '/pattern/ {print &amp;quot;$1&amp;quot;}'    # standard Unix shells&lt;br /&gt;
 DOS/Win:  awk '/pattern/ {print &amp;quot;$1&amp;quot;}'    # okay for DJGPP compiled&lt;br /&gt;
           awk &amp;quot;/pattern/ {print \&amp;quot;$1\&amp;quot;}&amp;quot;  # required for Mingw32&lt;br /&gt;
&lt;br /&gt;
Most of my experience comes from version of GNU awk (gawk) compiled for&lt;br /&gt;
Win32. Note in particular that DJGPP compilations permit the awk script&lt;br /&gt;
to follow Unix quoting syntax '/like/ {&amp;quot;this&amp;quot;}'. However, the user must&lt;br /&gt;
know that single quotes under DOS/Windows do not protect the redirection&lt;br /&gt;
arrows (&amp;lt;, &amp;gt;) nor do they protect pipes (|). Both are special symbols&lt;br /&gt;
for the DOS/CMD command shell and their special meaning is ignored only&lt;br /&gt;
if they are placed within &amp;quot;double quotes.&amp;quot; Likewise, DOS/Win users must&lt;br /&gt;
remember that the percent sign (%) is used to mark DOS/Win environment&lt;br /&gt;
variables, so it must be doubled (%%) to yield a single percent sign&lt;br /&gt;
visible to awk.&lt;br /&gt;
&lt;br /&gt;
If I am sure that a script will NOT need to be quoted in Unix, DOS, or&lt;br /&gt;
CMD, then I normally omit the quote marks. If an example is peculiar to&lt;br /&gt;
GNU awk, the command 'gawk' will be used. Please notify me if you find&lt;br /&gt;
errors or new commands to add to this list (total length under 65&lt;br /&gt;
characters). I usually try to put the shortest script first.&lt;br /&gt;
&lt;br /&gt;
FILE SPACING:&lt;br /&gt;
&lt;br /&gt;
 # double space a file&lt;br /&gt;
 awk '1;{print &amp;quot;&amp;quot;}'&lt;br /&gt;
 awk 'BEGIN{ORS=&amp;quot;\n\n&amp;quot;};1'&lt;br /&gt;
&lt;br /&gt;
 # double space a file which already has blank lines in it. Output file&lt;br /&gt;
 # should contain no more than one blank line between lines of text.&lt;br /&gt;
 # NOTE: On Unix systems, DOS lines which have only CRLF (\r\n) are&lt;br /&gt;
 # often treated as non-blank, and thus 'NF' alone will return TRUE.&lt;br /&gt;
 awk 'NF{print $0 &amp;quot;\n&amp;quot;}'&lt;br /&gt;
&lt;br /&gt;
 # triple space a file&lt;br /&gt;
 awk '1;{print &amp;quot;\n&amp;quot;}'&lt;br /&gt;
&lt;br /&gt;
NUMBERING AND CALCULATIONS:&lt;br /&gt;
&lt;br /&gt;
 # precede each line by its line number FOR THAT FILE (left alignment).&lt;br /&gt;
 # Using a tab (\t) instead of space will preserve margins.&lt;br /&gt;
 awk '{print FNR &amp;quot;\t&amp;quot; $0}' files*&lt;br /&gt;
&lt;br /&gt;
 # precede each line by its line number FOR ALL FILES TOGETHER, with tab.&lt;br /&gt;
 awk '{print NR &amp;quot;\t&amp;quot; $0}' files*&lt;br /&gt;
&lt;br /&gt;
 # number each line of a file (number on left, right-aligned)&lt;br /&gt;
 # Double the percent signs if typing from the DOS command prompt.&lt;br /&gt;
 awk '{printf(&amp;quot;%5d : %s\n&amp;quot;, NR,$0)}'&lt;br /&gt;
&lt;br /&gt;
 # number each line of file, but only print numbers if line is not blank&lt;br /&gt;
 # Remember caveats about Unix treatment of \r (mentioned above)&lt;br /&gt;
 awk 'NF{$0=++a &amp;quot; :&amp;quot; $0};{print}'&lt;br /&gt;
 awk '{print (NF? ++a &amp;quot; :&amp;quot; :&amp;quot;&amp;quot;) $0}'&lt;br /&gt;
&lt;br /&gt;
 # count lines (emulates &amp;quot;wc -l&amp;quot;)&lt;br /&gt;
 awk 'END{print NR}'&lt;br /&gt;
&lt;br /&gt;
 # print the sums of the fields of every line&lt;br /&gt;
 awk '{s=0; for (i=1; i&amp;lt;=NF; i++) s=s+$i; print s}'&lt;br /&gt;
&lt;br /&gt;
 # add all fields in all lines and print the sum&lt;br /&gt;
 awk '{for (i=1; i&amp;lt;=NF; i++) s=s+$i}; END{print s}'&lt;br /&gt;
&lt;br /&gt;
 # print every line after replacing each field with its absolute value&lt;br /&gt;
 awk '{for (i=1; i&amp;lt;=NF; i++) if ($i &amp;lt; 0) $i = -$i; print }'&lt;br /&gt;
 awk '{for (i=1; i&amp;lt;=NF; i++) $i = ($i &amp;lt; 0) ? -$i : $i; print }'&lt;br /&gt;
&lt;br /&gt;
 # print the total number of fields (&amp;quot;words&amp;quot;) in all lines&lt;br /&gt;
 awk '{ total = total + NF }; END {print total}' file&lt;br /&gt;
&lt;br /&gt;
 # print the total number of lines that contain &amp;quot;Beth&amp;quot;&lt;br /&gt;
 awk '/Beth/{n++}; END {print n+0}' file&lt;br /&gt;
&lt;br /&gt;
 # print the largest first field and the line that contains it&lt;br /&gt;
 # Intended for finding the longest string in field #1&lt;br /&gt;
 awk '$1 &amp;gt; max {max=$1; maxline=$0}; END{ print max, maxline}'&lt;br /&gt;
&lt;br /&gt;
 # print the number of fields in each line, followed by the line&lt;br /&gt;
 awk '{ print NF &amp;quot;:&amp;quot; $0 } '&lt;br /&gt;
&lt;br /&gt;
 # print the last field of each line&lt;br /&gt;
 awk '{ print $NF }'&lt;br /&gt;
&lt;br /&gt;
 # print the last field of the last line&lt;br /&gt;
 awk '{ field = $NF }; END{ print field }'&lt;br /&gt;
&lt;br /&gt;
 # print every line with more than 4 fields&lt;br /&gt;
 awk 'NF &amp;gt; 4'&lt;br /&gt;
&lt;br /&gt;
 # print every line where the value of the last field is &amp;gt; 4&lt;br /&gt;
 awk '$NF &amp;gt; 4'&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
TEXT CONVERSION AND SUBSTITUTION:&lt;br /&gt;
&lt;br /&gt;
 # IN UNIX ENVIRONMENT: convert DOS newlines (CR/LF) to Unix format&lt;br /&gt;
 awk '{sub(/\r$/,&amp;quot;&amp;quot;);print}'   # assumes EACH line ends with Ctrl-M&lt;br /&gt;
&lt;br /&gt;
 # IN UNIX ENVIRONMENT: convert Unix newlines (LF) to DOS format&lt;br /&gt;
 awk '{sub(/$/,&amp;quot;\r&amp;quot;);print}&lt;br /&gt;
&lt;br /&gt;
 # IN DOS ENVIRONMENT: convert Unix newlines (LF) to DOS format&lt;br /&gt;
 awk 1&lt;br /&gt;
&lt;br /&gt;
 # IN DOS ENVIRONMENT: convert DOS newlines (CR/LF) to Unix format&lt;br /&gt;
 # Cannot be done with DOS versions of awk, other than gawk:&lt;br /&gt;
 gawk -v BINMODE=&amp;quot;w&amp;quot; '1' infile &amp;gt;outfile&lt;br /&gt;
&lt;br /&gt;
 # Use &amp;quot;tr&amp;quot; instead.&lt;br /&gt;
 tr -d \r &amp;lt;infile &amp;gt;outfile            # GNU tr version 1.22 or higher&lt;br /&gt;
&lt;br /&gt;
 # delete leading whitespace (spaces, tabs) from front of each line&lt;br /&gt;
 # aligns all text flush left&lt;br /&gt;
 awk '{sub(/^[ \t]+/, &amp;quot;&amp;quot;); print}'&lt;br /&gt;
&lt;br /&gt;
 # delete trailing whitespace (spaces, tabs) from end of each line&lt;br /&gt;
 awk '{sub(/[ \t]+$/, &amp;quot;&amp;quot;);print}'&lt;br /&gt;
&lt;br /&gt;
 # delete BOTH leading and trailing whitespace from each line&lt;br /&gt;
 awk '{gsub(/^[ \t]+|[ \t]+$/,&amp;quot;&amp;quot;);print}'&lt;br /&gt;
 awk '{$1=$1;print}'           # also removes extra space between fields&lt;br /&gt;
&lt;br /&gt;
 # insert 5 blank spaces at beginning of each line (make page offset)&lt;br /&gt;
 awk '{sub(/^/, &amp;quot;     &amp;quot;);print}'&lt;br /&gt;
&lt;br /&gt;
 # align all text flush right on a 79-column width&lt;br /&gt;
 awk '{printf &amp;quot;%79s\n&amp;quot;, $0}' file*&lt;br /&gt;
&lt;br /&gt;
 # center all text on a 79-character width&lt;br /&gt;
 awk '{l=length();s=int((79-l)/2); printf &amp;quot;%&amp;quot;(s+l)&amp;quot;s\n&amp;quot;,$0}' file*&lt;br /&gt;
&lt;br /&gt;
 # substitute (find and replace) &amp;quot;foo&amp;quot; with &amp;quot;bar&amp;quot; on each line&lt;br /&gt;
 awk '{sub(/foo/,&amp;quot;bar&amp;quot;);print}'           # replaces only 1st instance&lt;br /&gt;
 gawk '{$0=gensub(/foo/,&amp;quot;bar&amp;quot;,4);print}'  # replaces only 4th instance&lt;br /&gt;
 awk '{gsub(/foo/,&amp;quot;bar&amp;quot;);print}'          # replaces ALL instances in a line&lt;br /&gt;
&lt;br /&gt;
 # substitute &amp;quot;foo&amp;quot; with &amp;quot;bar&amp;quot; ONLY for lines which contain &amp;quot;baz&amp;quot;&lt;br /&gt;
 awk '/baz/{gsub(/foo/, &amp;quot;bar&amp;quot;)};{print}'&lt;br /&gt;
&lt;br /&gt;
 # substitute &amp;quot;foo&amp;quot; with &amp;quot;bar&amp;quot; EXCEPT for lines which contain &amp;quot;baz&amp;quot;&lt;br /&gt;
 awk '!/baz/{gsub(/foo/, &amp;quot;bar&amp;quot;)};{print}'&lt;br /&gt;
&lt;br /&gt;
 # change &amp;quot;scarlet&amp;quot; or &amp;quot;ruby&amp;quot; or &amp;quot;puce&amp;quot; to &amp;quot;red&amp;quot;&lt;br /&gt;
 awk '{gsub(/scarlet|ruby|puce/, &amp;quot;red&amp;quot;); print}'&lt;br /&gt;
&lt;br /&gt;
 # reverse order of lines (emulates &amp;quot;tac&amp;quot;)&lt;br /&gt;
 awk '{a[i++]=$0} END {for (j=i-1; j&amp;gt;=0;) print a[j--] }' file*&lt;br /&gt;
&lt;br /&gt;
 # if a line ends with a backslash, append the next line to it&lt;br /&gt;
 # (fails if there are multiple lines ending with backslash...)&lt;br /&gt;
 awk '/\\$/ {sub(/\\$/,&amp;quot;&amp;quot;); getline t; print $0 t; next}; 1' file*&lt;br /&gt;
&lt;br /&gt;
 # print and sort the login names of all users&lt;br /&gt;
 awk -F &amp;quot;:&amp;quot; '{ print $1 | &amp;quot;sort&amp;quot; }' /etc/passwd&lt;br /&gt;
&lt;br /&gt;
 # print the first 2 fields, in opposite order, of every line&lt;br /&gt;
 awk '{print $2, $1}' file&lt;br /&gt;
&lt;br /&gt;
 # switch the first 2 fields of every line&lt;br /&gt;
 awk '{temp = $1; $1 = $2; $2 = temp}' file&lt;br /&gt;
&lt;br /&gt;
 # print every line, deleting the second field of that line&lt;br /&gt;
 awk '{ $2 = &amp;quot;&amp;quot;; print }'&lt;br /&gt;
&lt;br /&gt;
 # print in reverse order the fields of every line&lt;br /&gt;
 awk '{for (i=NF; i&amp;gt;0; i--) printf(&amp;quot;%s &amp;quot;,i);printf (&amp;quot;\n&amp;quot;)}' file&lt;br /&gt;
&lt;br /&gt;
 # remove duplicate, consecutive lines (emulates &amp;quot;uniq&amp;quot;)&lt;br /&gt;
 awk 'a !~ $0; {a=$0}'&lt;br /&gt;
&lt;br /&gt;
 # remove duplicate, nonconsecutive lines&lt;br /&gt;
 awk '! a[$0]++'                     # most concise script&lt;br /&gt;
 awk '!($0 in a) {a[$0];print}'      # most efficient script&lt;br /&gt;
&lt;br /&gt;
 # concatenate every 5 lines of input, using a comma separator&lt;br /&gt;
 # between fields&lt;br /&gt;
 awk 'ORS=%NR%5?&amp;quot;,&amp;quot;:&amp;quot;\n&amp;quot;' file&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
SELECTIVE PRINTING OF CERTAIN LINES:&lt;br /&gt;
&lt;br /&gt;
 # print first 10 lines of file (emulates behavior of &amp;quot;head&amp;quot;)&lt;br /&gt;
 awk 'NR &amp;lt; 11'&lt;br /&gt;
&lt;br /&gt;
 # print first line of file (emulates &amp;quot;head -1&amp;quot;)&lt;br /&gt;
 awk 'NR&amp;gt;1{exit};1'&lt;br /&gt;
&lt;br /&gt;
  # print the last 2 lines of a file (emulates &amp;quot;tail -2&amp;quot;)&lt;br /&gt;
 awk '{y=x &amp;quot;\n&amp;quot; $0; x=$0};END{print y}'&lt;br /&gt;
&lt;br /&gt;
 # print the last line of a file (emulates &amp;quot;tail -1&amp;quot;)&lt;br /&gt;
 awk 'END{print}'&lt;br /&gt;
&lt;br /&gt;
 # print only lines which match regular expression (emulates &amp;quot;grep&amp;quot;)&lt;br /&gt;
 awk '/regex/'&lt;br /&gt;
&lt;br /&gt;
 # print only lines which do NOT match regex (emulates &amp;quot;grep -v&amp;quot;)&lt;br /&gt;
 awk '!/regex/'&lt;br /&gt;
&lt;br /&gt;
 # print the line immediately before a regex, but not the line&lt;br /&gt;
 # containing the regex&lt;br /&gt;
 awk '/regex/{print x};{x=$0}'&lt;br /&gt;
 awk '/regex/{print (x==&amp;quot;&amp;quot; ? &amp;quot;match on line 1&amp;quot; : x)};{x=$0}'&lt;br /&gt;
&lt;br /&gt;
 # print the line immediately after a regex, but not the line&lt;br /&gt;
 # containing the regex&lt;br /&gt;
 awk '/regex/{getline;print}'&lt;br /&gt;
&lt;br /&gt;
 # grep for AAA and BBB and CCC (in any order)&lt;br /&gt;
 awk '/AAA/; /BBB/; /CCC/'&lt;br /&gt;
&lt;br /&gt;
 # grep for AAA and BBB and CCC (in that order)&lt;br /&gt;
 awk '/AAA.*BBB.*CCC/'&lt;br /&gt;
&lt;br /&gt;
 # print only lines of 65 characters or longer&lt;br /&gt;
 awk 'length &amp;gt; 64'&lt;br /&gt;
&lt;br /&gt;
 # print only lines of less than 65 characters&lt;br /&gt;
 awk 'length &amp;lt; 64'&lt;br /&gt;
&lt;br /&gt;
 # print section of file from regular expression to end of file&lt;br /&gt;
 awk '/regex/,0'&lt;br /&gt;
 awk '/regex/,EOF'&lt;br /&gt;
&lt;br /&gt;
 # print section of file based on line numbers (lines 8-12, inclusive)&lt;br /&gt;
 awk 'NR==8,NR==12'&lt;br /&gt;
&lt;br /&gt;
 # print line number 52&lt;br /&gt;
 awk 'NR==52'&lt;br /&gt;
 awk 'NR==52 {print;exit}'          # more efficient on large files&lt;br /&gt;
&lt;br /&gt;
 # print section of file between two regular expressions (inclusive)&lt;br /&gt;
 awk '/Iowa/,/Montana/'             # case sensitive&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
SELECTIVE DELETION OF CERTAIN LINES:&lt;br /&gt;
&lt;br /&gt;
 # delete ALL blank lines from a file (same as &amp;quot;grep '.' &amp;quot;)&lt;br /&gt;
 awk NF&lt;br /&gt;
 awk '/./'&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
CREDITS AND THANKS:&lt;br /&gt;
&lt;br /&gt;
Special thanks to Peter S. Tillier for helping me with the first release&lt;br /&gt;
of this FAQ file.&lt;br /&gt;
&lt;br /&gt;
For additional syntax instructions, including the way to apply editing&lt;br /&gt;
commands from a disk file instead of the command line, consult:&lt;br /&gt;
&lt;br /&gt;
&amp;quot;sed &amp;amp; awk, 2nd Edition,&amp;quot; by Dale Dougherty and Arnold Robbins&lt;br /&gt;
  O'Reilly, 1997&lt;br /&gt;
&amp;quot;UNIX Text Processing,&amp;quot; by Dale Dougherty and Tim O'Reilly&lt;br /&gt;
  Hayden Books, 1987&lt;br /&gt;
&amp;quot;Effective awk Programming, 3rd Edition.&amp;quot; by Arnold Robbins&lt;br /&gt;
  O'Reilly, 2001&lt;br /&gt;
&lt;br /&gt;
To fully exploit the power of awk, one must understand &amp;quot;regular&lt;br /&gt;
expressions.&amp;quot; For detailed discussion of regular expressions, see&lt;br /&gt;
&amp;quot;Mastering Regular Expressions, 2d edition&amp;quot; by Jeffrey Friedl&lt;br /&gt;
   (O'Reilly, 2002).&lt;br /&gt;
&lt;br /&gt;
The manual (&amp;quot;man&amp;quot;) pages on Unix systems may be helpful (try &amp;quot;man awk&amp;quot;,&lt;br /&gt;
&amp;quot;man nawk&amp;quot;, &amp;quot;man regexp&amp;quot;, or the section on regular expressions in &amp;quot;man&lt;br /&gt;
ed&amp;quot;), but man pages are notoriously difficult. They are not written to&lt;br /&gt;
teach awk use or regexps to first-time users, but as a reference text&lt;br /&gt;
for those already acquainted with these tools.&lt;br /&gt;
&lt;br /&gt;
USE OF '\t' IN awk SCRIPTS: For clarity in documentation, we have used&lt;br /&gt;
the expression '\t' to indicate a tab character (0x09) in the scripts.&lt;br /&gt;
All versions of awk, even the UNIX System 7 version should recognize&lt;br /&gt;
the '\t' abbreviation.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Tjmustard</name></author>
		
	</entry>
	<entry>
		<id>https://phyc-wiki.chem.oregonstate.edu/index.php?title=AWK&amp;diff=99</id>
		<title>AWK</title>
		<link rel="alternate" type="text/html" href="https://phyc-wiki.chem.oregonstate.edu/index.php?title=AWK&amp;diff=99"/>
		<updated>2014-05-13T17:40:56Z</updated>

		<summary type="html">&lt;p&gt;Tjmustard: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;===General use:===&lt;br /&gt;
AWK can be used to:&lt;br /&gt;
# grab a specific substring from a larger string&lt;br /&gt;
# do basic math&lt;br /&gt;
&lt;br /&gt;
==Grabbing a substring==&lt;br /&gt;
 #echo &amp;quot;This is a large string.&amp;quot;|awk '{print $1}'&lt;br /&gt;
 This&lt;br /&gt;
&lt;br /&gt;
 #echo &amp;quot;This is a large string.&amp;quot;|awk '{print $4}'&lt;br /&gt;
 large&lt;br /&gt;
&lt;br /&gt;
==Basic Math==&lt;br /&gt;
 #count=5&lt;br /&gt;
 #echo $count|awk '{print $1 + 1}'&lt;br /&gt;
 6&lt;br /&gt;
&lt;br /&gt;
 #energy=-1283.5795938&lt;br /&gt;
 #echo $energy|awk '{print $1/4.184}'&lt;br /&gt;
 -306.782885707&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
-----&lt;br /&gt;
===Handy One Liners===&lt;br /&gt;
&amp;lt;nowiki&amp;gt;HANDY ONE-LINERS FOR AWK                                  22 July 2003&lt;br /&gt;
compiled by Eric Pement &amp;lt;pemente@northpark.edu&amp;gt;           version 0.22&lt;br /&gt;
   Latest version of this file is usually at:&lt;br /&gt;
   http://www.student.northpark.edu/pemente/awk/awk1line.txt&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
USAGE:&lt;br /&gt;
&lt;br /&gt;
    Unix:  awk '/pattern/ {print &amp;quot;$1&amp;quot;}'    # standard Unix shells&lt;br /&gt;
 DOS/Win:  awk '/pattern/ {print &amp;quot;$1&amp;quot;}'    # okay for DJGPP compiled&lt;br /&gt;
           awk &amp;quot;/pattern/ {print \&amp;quot;$1\&amp;quot;}&amp;quot;  # required for Mingw32&lt;br /&gt;
&lt;br /&gt;
Most of my experience comes from version of GNU awk (gawk) compiled for&lt;br /&gt;
Win32. Note in particular that DJGPP compilations permit the awk script&lt;br /&gt;
to follow Unix quoting syntax '/like/ {&amp;quot;this&amp;quot;}'. However, the user must&lt;br /&gt;
know that single quotes under DOS/Windows do not protect the redirection&lt;br /&gt;
arrows (&amp;lt;, &amp;gt;) nor do they protect pipes (|). Both are special symbols&lt;br /&gt;
for the DOS/CMD command shell and their special meaning is ignored only&lt;br /&gt;
if they are placed within &amp;quot;double quotes.&amp;quot; Likewise, DOS/Win users must&lt;br /&gt;
remember that the percent sign (%) is used to mark DOS/Win environment&lt;br /&gt;
variables, so it must be doubled (%%) to yield a single percent sign&lt;br /&gt;
visible to awk.&lt;br /&gt;
&lt;br /&gt;
If I am sure that a script will NOT need to be quoted in Unix, DOS, or&lt;br /&gt;
CMD, then I normally omit the quote marks. If an example is peculiar to&lt;br /&gt;
GNU awk, the command 'gawk' will be used. Please notify me if you find&lt;br /&gt;
errors or new commands to add to this list (total length under 65&lt;br /&gt;
characters). I usually try to put the shortest script first.&lt;br /&gt;
&lt;br /&gt;
FILE SPACING:&lt;br /&gt;
&lt;br /&gt;
 # double space a file&lt;br /&gt;
 awk '1;{print &amp;quot;&amp;quot;}'&lt;br /&gt;
 awk 'BEGIN{ORS=&amp;quot;\n\n&amp;quot;};1'&lt;br /&gt;
&lt;br /&gt;
 # double space a file which already has blank lines in it. Output file&lt;br /&gt;
 # should contain no more than one blank line between lines of text.&lt;br /&gt;
 # NOTE: On Unix systems, DOS lines which have only CRLF (\r\n) are&lt;br /&gt;
 # often treated as non-blank, and thus 'NF' alone will return TRUE.&lt;br /&gt;
 awk 'NF{print $0 &amp;quot;\n&amp;quot;}'&lt;br /&gt;
&lt;br /&gt;
 # triple space a file&lt;br /&gt;
 awk '1;{print &amp;quot;\n&amp;quot;}'&lt;br /&gt;
&lt;br /&gt;
NUMBERING AND CALCULATIONS:&lt;br /&gt;
&lt;br /&gt;
 # precede each line by its line number FOR THAT FILE (left alignment).&lt;br /&gt;
 # Using a tab (\t) instead of space will preserve margins.&lt;br /&gt;
 awk '{print FNR &amp;quot;\t&amp;quot; $0}' files*&lt;br /&gt;
&lt;br /&gt;
 # precede each line by its line number FOR ALL FILES TOGETHER, with tab.&lt;br /&gt;
 awk '{print NR &amp;quot;\t&amp;quot; $0}' files*&lt;br /&gt;
&lt;br /&gt;
 # number each line of a file (number on left, right-aligned)&lt;br /&gt;
 # Double the percent signs if typing from the DOS command prompt.&lt;br /&gt;
 awk '{printf(&amp;quot;%5d : %s\n&amp;quot;, NR,$0)}'&lt;br /&gt;
&lt;br /&gt;
 # number each line of file, but only print numbers if line is not blank&lt;br /&gt;
 # Remember caveats about Unix treatment of \r (mentioned above)&lt;br /&gt;
 awk 'NF{$0=++a &amp;quot; :&amp;quot; $0};{print}'&lt;br /&gt;
 awk '{print (NF? ++a &amp;quot; :&amp;quot; :&amp;quot;&amp;quot;) $0}'&lt;br /&gt;
&lt;br /&gt;
 # count lines (emulates &amp;quot;wc -l&amp;quot;)&lt;br /&gt;
 awk 'END{print NR}'&lt;br /&gt;
&lt;br /&gt;
 # print the sums of the fields of every line&lt;br /&gt;
 awk '{s=0; for (i=1; i&amp;lt;=NF; i++) s=s+$i; print s}'&lt;br /&gt;
&lt;br /&gt;
 # add all fields in all lines and print the sum&lt;br /&gt;
 awk '{for (i=1; i&amp;lt;=NF; i++) s=s+$i}; END{print s}'&lt;br /&gt;
&lt;br /&gt;
 # print every line after replacing each field with its absolute value&lt;br /&gt;
 awk '{for (i=1; i&amp;lt;=NF; i++) if ($i &amp;lt; 0) $i = -$i; print }'&lt;br /&gt;
 awk '{for (i=1; i&amp;lt;=NF; i++) $i = ($i &amp;lt; 0) ? -$i : $i; print }'&lt;br /&gt;
&lt;br /&gt;
 # print the total number of fields (&amp;quot;words&amp;quot;) in all lines&lt;br /&gt;
 awk '{ total = total + NF }; END {print total}' file&lt;br /&gt;
&lt;br /&gt;
 # print the total number of lines that contain &amp;quot;Beth&amp;quot;&lt;br /&gt;
 awk '/Beth/{n++}; END {print n+0}' file&lt;br /&gt;
&lt;br /&gt;
 # print the largest first field and the line that contains it&lt;br /&gt;
 # Intended for finding the longest string in field #1&lt;br /&gt;
 awk '$1 &amp;gt; max {max=$1; maxline=$0}; END{ print max, maxline}'&lt;br /&gt;
&lt;br /&gt;
 # print the number of fields in each line, followed by the line&lt;br /&gt;
 awk '{ print NF &amp;quot;:&amp;quot; $0 } '&lt;br /&gt;
&lt;br /&gt;
 # print the last field of each line&lt;br /&gt;
 awk '{ print $NF }'&lt;br /&gt;
&lt;br /&gt;
 # print the last field of the last line&lt;br /&gt;
 awk '{ field = $NF }; END{ print field }'&lt;br /&gt;
&lt;br /&gt;
 # print every line with more than 4 fields&lt;br /&gt;
 awk 'NF &amp;gt; 4'&lt;br /&gt;
&lt;br /&gt;
 # print every line where the value of the last field is &amp;gt; 4&lt;br /&gt;
 awk '$NF &amp;gt; 4'&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
TEXT CONVERSION AND SUBSTITUTION:&lt;br /&gt;
&lt;br /&gt;
 # IN UNIX ENVIRONMENT: convert DOS newlines (CR/LF) to Unix format&lt;br /&gt;
 awk '{sub(/\r$/,&amp;quot;&amp;quot;);print}'   # assumes EACH line ends with Ctrl-M&lt;br /&gt;
&lt;br /&gt;
 # IN UNIX ENVIRONMENT: convert Unix newlines (LF) to DOS format&lt;br /&gt;
 awk '{sub(/$/,&amp;quot;\r&amp;quot;);print}&lt;br /&gt;
&lt;br /&gt;
 # IN DOS ENVIRONMENT: convert Unix newlines (LF) to DOS format&lt;br /&gt;
 awk 1&lt;br /&gt;
&lt;br /&gt;
 # IN DOS ENVIRONMENT: convert DOS newlines (CR/LF) to Unix format&lt;br /&gt;
 # Cannot be done with DOS versions of awk, other than gawk:&lt;br /&gt;
 gawk -v BINMODE=&amp;quot;w&amp;quot; '1' infile &amp;gt;outfile&lt;br /&gt;
&lt;br /&gt;
 # Use &amp;quot;tr&amp;quot; instead.&lt;br /&gt;
 tr -d \r &amp;lt;infile &amp;gt;outfile            # GNU tr version 1.22 or higher&lt;br /&gt;
&lt;br /&gt;
 # delete leading whitespace (spaces, tabs) from front of each line&lt;br /&gt;
 # aligns all text flush left&lt;br /&gt;
 awk '{sub(/^[ \t]+/, &amp;quot;&amp;quot;); print}'&lt;br /&gt;
&lt;br /&gt;
 # delete trailing whitespace (spaces, tabs) from end of each line&lt;br /&gt;
 awk '{sub(/[ \t]+$/, &amp;quot;&amp;quot;);print}'&lt;br /&gt;
&lt;br /&gt;
 # delete BOTH leading and trailing whitespace from each line&lt;br /&gt;
 awk '{gsub(/^[ \t]+|[ \t]+$/,&amp;quot;&amp;quot;);print}'&lt;br /&gt;
 awk '{$1=$1;print}'           # also removes extra space between fields&lt;br /&gt;
&lt;br /&gt;
 # insert 5 blank spaces at beginning of each line (make page offset)&lt;br /&gt;
 awk '{sub(/^/, &amp;quot;     &amp;quot;);print}'&lt;br /&gt;
&lt;br /&gt;
 # align all text flush right on a 79-column width&lt;br /&gt;
 awk '{printf &amp;quot;%79s\n&amp;quot;, $0}' file*&lt;br /&gt;
&lt;br /&gt;
 # center all text on a 79-character width&lt;br /&gt;
 awk '{l=length();s=int((79-l)/2); printf &amp;quot;%&amp;quot;(s+l)&amp;quot;s\n&amp;quot;,$0}' file*&lt;br /&gt;
&lt;br /&gt;
 # substitute (find and replace) &amp;quot;foo&amp;quot; with &amp;quot;bar&amp;quot; on each line&lt;br /&gt;
 awk '{sub(/foo/,&amp;quot;bar&amp;quot;);print}'           # replaces only 1st instance&lt;br /&gt;
 gawk '{$0=gensub(/foo/,&amp;quot;bar&amp;quot;,4);print}'  # replaces only 4th instance&lt;br /&gt;
 awk '{gsub(/foo/,&amp;quot;bar&amp;quot;);print}'          # replaces ALL instances in a line&lt;br /&gt;
&lt;br /&gt;
 # substitute &amp;quot;foo&amp;quot; with &amp;quot;bar&amp;quot; ONLY for lines which contain &amp;quot;baz&amp;quot;&lt;br /&gt;
 awk '/baz/{gsub(/foo/, &amp;quot;bar&amp;quot;)};{print}'&lt;br /&gt;
&lt;br /&gt;
 # substitute &amp;quot;foo&amp;quot; with &amp;quot;bar&amp;quot; EXCEPT for lines which contain &amp;quot;baz&amp;quot;&lt;br /&gt;
 awk '!/baz/{gsub(/foo/, &amp;quot;bar&amp;quot;)};{print}'&lt;br /&gt;
&lt;br /&gt;
 # change &amp;quot;scarlet&amp;quot; or &amp;quot;ruby&amp;quot; or &amp;quot;puce&amp;quot; to &amp;quot;red&amp;quot;&lt;br /&gt;
 awk '{gsub(/scarlet|ruby|puce/, &amp;quot;red&amp;quot;); print}'&lt;br /&gt;
&lt;br /&gt;
 # reverse order of lines (emulates &amp;quot;tac&amp;quot;)&lt;br /&gt;
 awk '{a[i++]=$0} END {for (j=i-1; j&amp;gt;=0;) print a[j--] }' file*&lt;br /&gt;
&lt;br /&gt;
 # if a line ends with a backslash, append the next line to it&lt;br /&gt;
 # (fails if there are multiple lines ending with backslash...)&lt;br /&gt;
 awk '/\\$/ {sub(/\\$/,&amp;quot;&amp;quot;); getline t; print $0 t; next}; 1' file*&lt;br /&gt;
&lt;br /&gt;
 # print and sort the login names of all users&lt;br /&gt;
 awk -F &amp;quot;:&amp;quot; '{ print $1 | &amp;quot;sort&amp;quot; }' /etc/passwd&lt;br /&gt;
&lt;br /&gt;
 # print the first 2 fields, in opposite order, of every line&lt;br /&gt;
 awk '{print $2, $1}' file&lt;br /&gt;
&lt;br /&gt;
 # switch the first 2 fields of every line&lt;br /&gt;
 awk '{temp = $1; $1 = $2; $2 = temp}' file&lt;br /&gt;
&lt;br /&gt;
 # print every line, deleting the second field of that line&lt;br /&gt;
 awk '{ $2 = &amp;quot;&amp;quot;; print }'&lt;br /&gt;
&lt;br /&gt;
 # print in reverse order the fields of every line&lt;br /&gt;
 awk '{for (i=NF; i&amp;gt;0; i--) printf(&amp;quot;%s &amp;quot;,i);printf (&amp;quot;\n&amp;quot;)}' file&lt;br /&gt;
&lt;br /&gt;
 # remove duplicate, consecutive lines (emulates &amp;quot;uniq&amp;quot;)&lt;br /&gt;
 awk 'a !~ $0; {a=$0}'&lt;br /&gt;
&lt;br /&gt;
 # remove duplicate, nonconsecutive lines&lt;br /&gt;
 awk '! a[$0]++'                     # most concise script&lt;br /&gt;
 awk '!($0 in a) {a[$0];print}'      # most efficient script&lt;br /&gt;
&lt;br /&gt;
 # concatenate every 5 lines of input, using a comma separator&lt;br /&gt;
 # between fields&lt;br /&gt;
 awk 'ORS=%NR%5?&amp;quot;,&amp;quot;:&amp;quot;\n&amp;quot;' file&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
SELECTIVE PRINTING OF CERTAIN LINES:&lt;br /&gt;
&lt;br /&gt;
 # print first 10 lines of file (emulates behavior of &amp;quot;head&amp;quot;)&lt;br /&gt;
 awk 'NR &amp;lt; 11'&lt;br /&gt;
&lt;br /&gt;
 # print first line of file (emulates &amp;quot;head -1&amp;quot;)&lt;br /&gt;
 awk 'NR&amp;gt;1{exit};1'&lt;br /&gt;
&lt;br /&gt;
  # print the last 2 lines of a file (emulates &amp;quot;tail -2&amp;quot;)&lt;br /&gt;
 awk '{y=x &amp;quot;\n&amp;quot; $0; x=$0};END{print y}'&lt;br /&gt;
&lt;br /&gt;
 # print the last line of a file (emulates &amp;quot;tail -1&amp;quot;)&lt;br /&gt;
 awk 'END{print}'&lt;br /&gt;
&lt;br /&gt;
 # print only lines which match regular expression (emulates &amp;quot;grep&amp;quot;)&lt;br /&gt;
 awk '/regex/'&lt;br /&gt;
&lt;br /&gt;
 # print only lines which do NOT match regex (emulates &amp;quot;grep -v&amp;quot;)&lt;br /&gt;
 awk '!/regex/'&lt;br /&gt;
&lt;br /&gt;
 # print the line immediately before a regex, but not the line&lt;br /&gt;
 # containing the regex&lt;br /&gt;
 awk '/regex/{print x};{x=$0}'&lt;br /&gt;
 awk '/regex/{print (x==&amp;quot;&amp;quot; ? &amp;quot;match on line 1&amp;quot; : x)};{x=$0}'&lt;br /&gt;
&lt;br /&gt;
 # print the line immediately after a regex, but not the line&lt;br /&gt;
 # containing the regex&lt;br /&gt;
 awk '/regex/{getline;print}'&lt;br /&gt;
&lt;br /&gt;
 # grep for AAA and BBB and CCC (in any order)&lt;br /&gt;
 awk '/AAA/; /BBB/; /CCC/'&lt;br /&gt;
&lt;br /&gt;
 # grep for AAA and BBB and CCC (in that order)&lt;br /&gt;
 awk '/AAA.*BBB.*CCC/'&lt;br /&gt;
&lt;br /&gt;
 # print only lines of 65 characters or longer&lt;br /&gt;
 awk 'length &amp;gt; 64'&lt;br /&gt;
&lt;br /&gt;
 # print only lines of less than 65 characters&lt;br /&gt;
 awk 'length &amp;lt; 64'&lt;br /&gt;
&lt;br /&gt;
 # print section of file from regular expression to end of file&lt;br /&gt;
 awk '/regex/,0'&lt;br /&gt;
 awk '/regex/,EOF'&lt;br /&gt;
&lt;br /&gt;
 # print section of file based on line numbers (lines 8-12, inclusive)&lt;br /&gt;
 awk 'NR==8,NR==12'&lt;br /&gt;
&lt;br /&gt;
 # print line number 52&lt;br /&gt;
 awk 'NR==52'&lt;br /&gt;
 awk 'NR==52 {print;exit}'          # more efficient on large files&lt;br /&gt;
&lt;br /&gt;
 # print section of file between two regular expressions (inclusive)&lt;br /&gt;
 awk '/Iowa/,/Montana/'             # case sensitive&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
SELECTIVE DELETION OF CERTAIN LINES:&lt;br /&gt;
&lt;br /&gt;
 # delete ALL blank lines from a file (same as &amp;quot;grep '.' &amp;quot;)&lt;br /&gt;
 awk NF&lt;br /&gt;
 awk '/./'&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
CREDITS AND THANKS:&lt;br /&gt;
&lt;br /&gt;
Special thanks to Peter S. Tillier for helping me with the first release&lt;br /&gt;
of this FAQ file.&lt;br /&gt;
&lt;br /&gt;
For additional syntax instructions, including the way to apply editing&lt;br /&gt;
commands from a disk file instead of the command line, consult:&lt;br /&gt;
&lt;br /&gt;
&amp;quot;sed &amp;amp; awk, 2nd Edition,&amp;quot; by Dale Dougherty and Arnold Robbins&lt;br /&gt;
  O'Reilly, 1997&lt;br /&gt;
&amp;quot;UNIX Text Processing,&amp;quot; by Dale Dougherty and Tim O'Reilly&lt;br /&gt;
  Hayden Books, 1987&lt;br /&gt;
&amp;quot;Effective awk Programming, 3rd Edition.&amp;quot; by Arnold Robbins&lt;br /&gt;
  O'Reilly, 2001&lt;br /&gt;
&lt;br /&gt;
To fully exploit the power of awk, one must understand &amp;quot;regular&lt;br /&gt;
expressions.&amp;quot; For detailed discussion of regular expressions, see&lt;br /&gt;
&amp;quot;Mastering Regular Expressions, 2d edition&amp;quot; by Jeffrey Friedl&lt;br /&gt;
   (O'Reilly, 2002).&lt;br /&gt;
&lt;br /&gt;
The manual (&amp;quot;man&amp;quot;) pages on Unix systems may be helpful (try &amp;quot;man awk&amp;quot;,&lt;br /&gt;
&amp;quot;man nawk&amp;quot;, &amp;quot;man regexp&amp;quot;, or the section on regular expressions in &amp;quot;man&lt;br /&gt;
ed&amp;quot;), but man pages are notoriously difficult. They are not written to&lt;br /&gt;
teach awk use or regexps to first-time users, but as a reference text&lt;br /&gt;
for those already acquainted with these tools.&lt;br /&gt;
&lt;br /&gt;
USE OF '\t' IN awk SCRIPTS: For clarity in documentation, we have used&lt;br /&gt;
the expression '\t' to indicate a tab character (0x09) in the scripts.&lt;br /&gt;
All versions of awk, even the UNIX System 7 version should recognize&lt;br /&gt;
the '\t' abbreviation.&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&lt;/div&gt;</summary>
		<author><name>Tjmustard</name></author>
		
	</entry>
	<entry>
		<id>https://phyc-wiki.chem.oregonstate.edu/index.php?title=AWK&amp;diff=98</id>
		<title>AWK</title>
		<link rel="alternate" type="text/html" href="https://phyc-wiki.chem.oregonstate.edu/index.php?title=AWK&amp;diff=98"/>
		<updated>2014-05-13T17:37:34Z</updated>

		<summary type="html">&lt;p&gt;Tjmustard: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;===General use:===&lt;br /&gt;
AWK can be used to:&lt;br /&gt;
# grab a specific substring from a larger string&lt;br /&gt;
# do basic math&lt;br /&gt;
&lt;br /&gt;
==Grabing a substring==&lt;br /&gt;
 #echo &amp;quot;This is a large string.&amp;quot;|awk '{print $1}'&lt;br /&gt;
 This&lt;br /&gt;
&lt;br /&gt;
 #echo &amp;quot;This is a large string.&amp;quot;|awk '{print $4}'&lt;br /&gt;
 large&lt;br /&gt;
&lt;br /&gt;
-----&lt;br /&gt;
===Handy One Liners===&lt;br /&gt;
HANDY ONE-LINERS FOR AWK                                  22 July 2003&lt;br /&gt;
compiled by Eric Pement &amp;lt;pemente@northpark.edu&amp;gt;           version 0.22&lt;br /&gt;
   Latest version of this file is usually at:&lt;br /&gt;
   http://www.student.northpark.edu/pemente/awk/awk1line.txt&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
USAGE:&lt;br /&gt;
&lt;br /&gt;
    Unix:  awk '/pattern/ {print &amp;quot;$1&amp;quot;}'    # standard Unix shells&lt;br /&gt;
 DOS/Win:  awk '/pattern/ {print &amp;quot;$1&amp;quot;}'    # okay for DJGPP compiled&lt;br /&gt;
           awk &amp;quot;/pattern/ {print \&amp;quot;$1\&amp;quot;}&amp;quot;  # required for Mingw32&lt;br /&gt;
&lt;br /&gt;
Most of my experience comes from version of GNU awk (gawk) compiled for&lt;br /&gt;
Win32. Note in particular that DJGPP compilations permit the awk script&lt;br /&gt;
to follow Unix quoting syntax '/like/ {&amp;quot;this&amp;quot;}'. However, the user must&lt;br /&gt;
know that single quotes under DOS/Windows do not protect the redirection&lt;br /&gt;
arrows (&amp;lt;, &amp;gt;) nor do they protect pipes (|). Both are special symbols&lt;br /&gt;
for the DOS/CMD command shell and their special meaning is ignored only&lt;br /&gt;
if they are placed within &amp;quot;double quotes.&amp;quot; Likewise, DOS/Win users must&lt;br /&gt;
remember that the percent sign (%) is used to mark DOS/Win environment&lt;br /&gt;
variables, so it must be doubled (%%) to yield a single percent sign&lt;br /&gt;
visible to awk.&lt;br /&gt;
&lt;br /&gt;
If I am sure that a script will NOT need to be quoted in Unix, DOS, or&lt;br /&gt;
CMD, then I normally omit the quote marks. If an example is peculiar to&lt;br /&gt;
GNU awk, the command 'gawk' will be used. Please notify me if you find&lt;br /&gt;
errors or new commands to add to this list (total length under 65&lt;br /&gt;
characters). I usually try to put the shortest script first.&lt;br /&gt;
&lt;br /&gt;
FILE SPACING:&lt;br /&gt;
&lt;br /&gt;
 # double space a file&lt;br /&gt;
 awk '1;{print &amp;quot;&amp;quot;}'&lt;br /&gt;
 awk 'BEGIN{ORS=&amp;quot;\n\n&amp;quot;};1'&lt;br /&gt;
&lt;br /&gt;
 # double space a file which already has blank lines in it. Output file&lt;br /&gt;
 # should contain no more than one blank line between lines of text.&lt;br /&gt;
 # NOTE: On Unix systems, DOS lines which have only CRLF (\r\n) are&lt;br /&gt;
 # often treated as non-blank, and thus 'NF' alone will return TRUE.&lt;br /&gt;
 awk 'NF{print $0 &amp;quot;\n&amp;quot;}'&lt;br /&gt;
&lt;br /&gt;
 # triple space a file&lt;br /&gt;
 awk '1;{print &amp;quot;\n&amp;quot;}'&lt;br /&gt;
&lt;br /&gt;
NUMBERING AND CALCULATIONS:&lt;br /&gt;
&lt;br /&gt;
 # precede each line by its line number FOR THAT FILE (left alignment).&lt;br /&gt;
 # Using a tab (\t) instead of space will preserve margins.&lt;br /&gt;
 awk '{print FNR &amp;quot;\t&amp;quot; $0}' files*&lt;br /&gt;
&lt;br /&gt;
 # precede each line by its line number FOR ALL FILES TOGETHER, with tab.&lt;br /&gt;
 awk '{print NR &amp;quot;\t&amp;quot; $0}' files*&lt;br /&gt;
&lt;br /&gt;
 # number each line of a file (number on left, right-aligned)&lt;br /&gt;
 # Double the percent signs if typing from the DOS command prompt.&lt;br /&gt;
 awk '{printf(&amp;quot;%5d : %s\n&amp;quot;, NR,$0)}'&lt;br /&gt;
&lt;br /&gt;
 # number each line of file, but only print numbers if line is not blank&lt;br /&gt;
 # Remember caveats about Unix treatment of \r (mentioned above)&lt;br /&gt;
 awk 'NF{$0=++a &amp;quot; :&amp;quot; $0};{print}'&lt;br /&gt;
 awk '{print (NF? ++a &amp;quot; :&amp;quot; :&amp;quot;&amp;quot;) $0}'&lt;br /&gt;
&lt;br /&gt;
 # count lines (emulates &amp;quot;wc -l&amp;quot;)&lt;br /&gt;
 awk 'END{print NR}'&lt;br /&gt;
&lt;br /&gt;
 # print the sums of the fields of every line&lt;br /&gt;
 awk '{s=0; for (i=1; i&amp;lt;=NF; i++) s=s+$i; print s}'&lt;br /&gt;
&lt;br /&gt;
 # add all fields in all lines and print the sum&lt;br /&gt;
 awk '{for (i=1; i&amp;lt;=NF; i++) s=s+$i}; END{print s}'&lt;br /&gt;
&lt;br /&gt;
 # print every line after replacing each field with its absolute value&lt;br /&gt;
 awk '{for (i=1; i&amp;lt;=NF; i++) if ($i &amp;lt; 0) $i = -$i; print }'&lt;br /&gt;
 awk '{for (i=1; i&amp;lt;=NF; i++) $i = ($i &amp;lt; 0) ? -$i : $i; print }'&lt;br /&gt;
&lt;br /&gt;
 # print the total number of fields (&amp;quot;words&amp;quot;) in all lines&lt;br /&gt;
 awk '{ total = total + NF }; END {print total}' file&lt;br /&gt;
&lt;br /&gt;
 # print the total number of lines that contain &amp;quot;Beth&amp;quot;&lt;br /&gt;
 awk '/Beth/{n++}; END {print n+0}' file&lt;br /&gt;
&lt;br /&gt;
 # print the largest first field and the line that contains it&lt;br /&gt;
 # Intended for finding the longest string in field #1&lt;br /&gt;
 awk '$1 &amp;gt; max {max=$1; maxline=$0}; END{ print max, maxline}'&lt;br /&gt;
&lt;br /&gt;
 # print the number of fields in each line, followed by the line&lt;br /&gt;
 awk '{ print NF &amp;quot;:&amp;quot; $0 } '&lt;br /&gt;
&lt;br /&gt;
 # print the last field of each line&lt;br /&gt;
 awk '{ print $NF }'&lt;br /&gt;
&lt;br /&gt;
 # print the last field of the last line&lt;br /&gt;
 awk '{ field = $NF }; END{ print field }'&lt;br /&gt;
&lt;br /&gt;
 # print every line with more than 4 fields&lt;br /&gt;
 awk 'NF &amp;gt; 4'&lt;br /&gt;
&lt;br /&gt;
 # print every line where the value of the last field is &amp;gt; 4&lt;br /&gt;
 awk '$NF &amp;gt; 4'&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
TEXT CONVERSION AND SUBSTITUTION:&lt;br /&gt;
&lt;br /&gt;
 # IN UNIX ENVIRONMENT: convert DOS newlines (CR/LF) to Unix format&lt;br /&gt;
 awk '{sub(/\r$/,&amp;quot;&amp;quot;);print}'   # assumes EACH line ends with Ctrl-M&lt;br /&gt;
&lt;br /&gt;
 # IN UNIX ENVIRONMENT: convert Unix newlines (LF) to DOS format&lt;br /&gt;
 awk '{sub(/$/,&amp;quot;\r&amp;quot;);print}&lt;br /&gt;
&lt;br /&gt;
 # IN DOS ENVIRONMENT: convert Unix newlines (LF) to DOS format&lt;br /&gt;
 awk 1&lt;br /&gt;
&lt;br /&gt;
 # IN DOS ENVIRONMENT: convert DOS newlines (CR/LF) to Unix format&lt;br /&gt;
 # Cannot be done with DOS versions of awk, other than gawk:&lt;br /&gt;
 gawk -v BINMODE=&amp;quot;w&amp;quot; '1' infile &amp;gt;outfile&lt;br /&gt;
&lt;br /&gt;
 # Use &amp;quot;tr&amp;quot; instead.&lt;br /&gt;
 tr -d \r &amp;lt;infile &amp;gt;outfile            # GNU tr version 1.22 or higher&lt;br /&gt;
&lt;br /&gt;
 # delete leading whitespace (spaces, tabs) from front of each line&lt;br /&gt;
 # aligns all text flush left&lt;br /&gt;
 awk '{sub(/^[ \t]+/, &amp;quot;&amp;quot;); print}'&lt;br /&gt;
&lt;br /&gt;
 # delete trailing whitespace (spaces, tabs) from end of each line&lt;br /&gt;
 awk '{sub(/[ \t]+$/, &amp;quot;&amp;quot;);print}'&lt;br /&gt;
&lt;br /&gt;
 # delete BOTH leading and trailing whitespace from each line&lt;br /&gt;
 awk '{gsub(/^[ \t]+|[ \t]+$/,&amp;quot;&amp;quot;);print}'&lt;br /&gt;
 awk '{$1=$1;print}'           # also removes extra space between fields&lt;br /&gt;
&lt;br /&gt;
 # insert 5 blank spaces at beginning of each line (make page offset)&lt;br /&gt;
 awk '{sub(/^/, &amp;quot;     &amp;quot;);print}'&lt;br /&gt;
&lt;br /&gt;
 # align all text flush right on a 79-column width&lt;br /&gt;
 awk '{printf &amp;quot;%79s\n&amp;quot;, $0}' file*&lt;br /&gt;
&lt;br /&gt;
 # center all text on a 79-character width&lt;br /&gt;
 awk '{l=length();s=int((79-l)/2); printf &amp;quot;%&amp;quot;(s+l)&amp;quot;s\n&amp;quot;,$0}' file*&lt;br /&gt;
&lt;br /&gt;
 # substitute (find and replace) &amp;quot;foo&amp;quot; with &amp;quot;bar&amp;quot; on each line&lt;br /&gt;
 awk '{sub(/foo/,&amp;quot;bar&amp;quot;);print}'           # replaces only 1st instance&lt;br /&gt;
 gawk '{$0=gensub(/foo/,&amp;quot;bar&amp;quot;,4);print}'  # replaces only 4th instance&lt;br /&gt;
 awk '{gsub(/foo/,&amp;quot;bar&amp;quot;);print}'          # replaces ALL instances in a line&lt;br /&gt;
&lt;br /&gt;
 # substitute &amp;quot;foo&amp;quot; with &amp;quot;bar&amp;quot; ONLY for lines which contain &amp;quot;baz&amp;quot;&lt;br /&gt;
 awk '/baz/{gsub(/foo/, &amp;quot;bar&amp;quot;)};{print}'&lt;br /&gt;
&lt;br /&gt;
 # substitute &amp;quot;foo&amp;quot; with &amp;quot;bar&amp;quot; EXCEPT for lines which contain &amp;quot;baz&amp;quot;&lt;br /&gt;
 awk '!/baz/{gsub(/foo/, &amp;quot;bar&amp;quot;)};{print}'&lt;br /&gt;
&lt;br /&gt;
 # change &amp;quot;scarlet&amp;quot; or &amp;quot;ruby&amp;quot; or &amp;quot;puce&amp;quot; to &amp;quot;red&amp;quot;&lt;br /&gt;
 awk '{gsub(/scarlet|ruby|puce/, &amp;quot;red&amp;quot;); print}'&lt;br /&gt;
&lt;br /&gt;
 # reverse order of lines (emulates &amp;quot;tac&amp;quot;)&lt;br /&gt;
 awk '{a[i++]=$0} END {for (j=i-1; j&amp;gt;=0;) print a[j--] }' file*&lt;br /&gt;
&lt;br /&gt;
 # if a line ends with a backslash, append the next line to it&lt;br /&gt;
 # (fails if there are multiple lines ending with backslash...)&lt;br /&gt;
 awk '/\\$/ {sub(/\\$/,&amp;quot;&amp;quot;); getline t; print $0 t; next}; 1' file*&lt;br /&gt;
&lt;br /&gt;
 # print and sort the login names of all users&lt;br /&gt;
 awk -F &amp;quot;:&amp;quot; '{ print $1 | &amp;quot;sort&amp;quot; }' /etc/passwd&lt;br /&gt;
&lt;br /&gt;
 # print the first 2 fields, in opposite order, of every line&lt;br /&gt;
 awk '{print $2, $1}' file&lt;br /&gt;
&lt;br /&gt;
 # switch the first 2 fields of every line&lt;br /&gt;
 awk '{temp = $1; $1 = $2; $2 = temp}' file&lt;br /&gt;
&lt;br /&gt;
 # print every line, deleting the second field of that line&lt;br /&gt;
 awk '{ $2 = &amp;quot;&amp;quot;; print }'&lt;br /&gt;
&lt;br /&gt;
 # print in reverse order the fields of every line&lt;br /&gt;
 awk '{for (i=NF; i&amp;gt;0; i--) printf(&amp;quot;%s &amp;quot;,i);printf (&amp;quot;\n&amp;quot;)}' file&lt;br /&gt;
&lt;br /&gt;
 # remove duplicate, consecutive lines (emulates &amp;quot;uniq&amp;quot;)&lt;br /&gt;
 awk 'a !~ $0; {a=$0}'&lt;br /&gt;
&lt;br /&gt;
 # remove duplicate, nonconsecutive lines&lt;br /&gt;
 awk '! a[$0]++'                     # most concise script&lt;br /&gt;
 awk '!($0 in a) {a[$0];print}'      # most efficient script&lt;br /&gt;
&lt;br /&gt;
 # concatenate every 5 lines of input, using a comma separator&lt;br /&gt;
 # between fields&lt;br /&gt;
 awk 'ORS=%NR%5?&amp;quot;,&amp;quot;:&amp;quot;\n&amp;quot;' file&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
SELECTIVE PRINTING OF CERTAIN LINES:&lt;br /&gt;
&lt;br /&gt;
 # print first 10 lines of file (emulates behavior of &amp;quot;head&amp;quot;)&lt;br /&gt;
 awk 'NR &amp;lt; 11'&lt;br /&gt;
&lt;br /&gt;
 # print first line of file (emulates &amp;quot;head -1&amp;quot;)&lt;br /&gt;
 awk 'NR&amp;gt;1{exit};1'&lt;br /&gt;
&lt;br /&gt;
  # print the last 2 lines of a file (emulates &amp;quot;tail -2&amp;quot;)&lt;br /&gt;
 awk '{y=x &amp;quot;\n&amp;quot; $0; x=$0};END{print y}'&lt;br /&gt;
&lt;br /&gt;
 # print the last line of a file (emulates &amp;quot;tail -1&amp;quot;)&lt;br /&gt;
 awk 'END{print}'&lt;br /&gt;
&lt;br /&gt;
 # print only lines which match regular expression (emulates &amp;quot;grep&amp;quot;)&lt;br /&gt;
 awk '/regex/'&lt;br /&gt;
&lt;br /&gt;
 # print only lines which do NOT match regex (emulates &amp;quot;grep -v&amp;quot;)&lt;br /&gt;
 awk '!/regex/'&lt;br /&gt;
&lt;br /&gt;
 # print the line immediately before a regex, but not the line&lt;br /&gt;
 # containing the regex&lt;br /&gt;
 awk '/regex/{print x};{x=$0}'&lt;br /&gt;
 awk '/regex/{print (x==&amp;quot;&amp;quot; ? &amp;quot;match on line 1&amp;quot; : x)};{x=$0}'&lt;br /&gt;
&lt;br /&gt;
 # print the line immediately after a regex, but not the line&lt;br /&gt;
 # containing the regex&lt;br /&gt;
 awk '/regex/{getline;print}'&lt;br /&gt;
&lt;br /&gt;
 # grep for AAA and BBB and CCC (in any order)&lt;br /&gt;
 awk '/AAA/; /BBB/; /CCC/'&lt;br /&gt;
&lt;br /&gt;
 # grep for AAA and BBB and CCC (in that order)&lt;br /&gt;
 awk '/AAA.*BBB.*CCC/'&lt;br /&gt;
&lt;br /&gt;
 # print only lines of 65 characters or longer&lt;br /&gt;
 awk 'length &amp;gt; 64'&lt;br /&gt;
&lt;br /&gt;
 # print only lines of less than 65 characters&lt;br /&gt;
 awk 'length &amp;lt; 64'&lt;br /&gt;
&lt;br /&gt;
 # print section of file from regular expression to end of file&lt;br /&gt;
 awk '/regex/,0'&lt;br /&gt;
 awk '/regex/,EOF'&lt;br /&gt;
&lt;br /&gt;
 # print section of file based on line numbers (lines 8-12, inclusive)&lt;br /&gt;
 awk 'NR==8,NR==12'&lt;br /&gt;
&lt;br /&gt;
 # print line number 52&lt;br /&gt;
 awk 'NR==52'&lt;br /&gt;
 awk 'NR==52 {print;exit}'          # more efficient on large files&lt;br /&gt;
&lt;br /&gt;
 # print section of file between two regular expressions (inclusive)&lt;br /&gt;
 awk '/Iowa/,/Montana/'             # case sensitive&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
SELECTIVE DELETION OF CERTAIN LINES:&lt;br /&gt;
&lt;br /&gt;
 # delete ALL blank lines from a file (same as &amp;quot;grep '.' &amp;quot;)&lt;br /&gt;
 awk NF&lt;br /&gt;
 awk '/./'&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
CREDITS AND THANKS:&lt;br /&gt;
&lt;br /&gt;
Special thanks to Peter S. Tillier for helping me with the first release&lt;br /&gt;
of this FAQ file.&lt;br /&gt;
&lt;br /&gt;
For additional syntax instructions, including the way to apply editing&lt;br /&gt;
commands from a disk file instead of the command line, consult:&lt;br /&gt;
&lt;br /&gt;
&amp;quot;sed &amp;amp; awk, 2nd Edition,&amp;quot; by Dale Dougherty and Arnold Robbins&lt;br /&gt;
  O'Reilly, 1997&lt;br /&gt;
&amp;quot;UNIX Text Processing,&amp;quot; by Dale Dougherty and Tim O'Reilly&lt;br /&gt;
  Hayden Books, 1987&lt;br /&gt;
&amp;quot;Effective awk Programming, 3rd Edition.&amp;quot; by Arnold Robbins&lt;br /&gt;
  O'Reilly, 2001&lt;br /&gt;
&lt;br /&gt;
To fully exploit the power of awk, one must understand &amp;quot;regular&lt;br /&gt;
expressions.&amp;quot; For detailed discussion of regular expressions, see&lt;br /&gt;
&amp;quot;Mastering Regular Expressions, 2d edition&amp;quot; by Jeffrey Friedl&lt;br /&gt;
   (O'Reilly, 2002).&lt;br /&gt;
&lt;br /&gt;
The manual (&amp;quot;man&amp;quot;) pages on Unix systems may be helpful (try &amp;quot;man awk&amp;quot;,&lt;br /&gt;
&amp;quot;man nawk&amp;quot;, &amp;quot;man regexp&amp;quot;, or the section on regular expressions in &amp;quot;man&lt;br /&gt;
ed&amp;quot;), but man pages are notoriously difficult. They are not written to&lt;br /&gt;
teach awk use or regexps to first-time users, but as a reference text&lt;br /&gt;
for those already acquainted with these tools.&lt;br /&gt;
&lt;br /&gt;
USE OF '\t' IN awk SCRIPTS: For clarity in documentation, we have used&lt;br /&gt;
the expression '\t' to indicate a tab character (0x09) in the scripts.&lt;br /&gt;
All versions of awk, even the UNIX System 7 version should recognize&lt;br /&gt;
the '\t' abbreviation.&lt;/div&gt;</summary>
		<author><name>Tjmustard</name></author>
		
	</entry>
	<entry>
		<id>https://phyc-wiki.chem.oregonstate.edu/index.php?title=AWK&amp;diff=97</id>
		<title>AWK</title>
		<link rel="alternate" type="text/html" href="https://phyc-wiki.chem.oregonstate.edu/index.php?title=AWK&amp;diff=97"/>
		<updated>2014-05-13T17:37:08Z</updated>

		<summary type="html">&lt;p&gt;Tjmustard: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;===General use:===&lt;br /&gt;
AWK can be used to:&lt;br /&gt;
# grab a specific substring from a larger string&lt;br /&gt;
# do basic math&lt;br /&gt;
&lt;br /&gt;
==Grabing a substring==&lt;br /&gt;
 #echo &amp;quot;This is a large string.&amp;quot;|awk '{print $1}'&lt;br /&gt;
 This&lt;br /&gt;
&lt;br /&gt;
 #echo &amp;quot;This is a large string.&amp;quot;|awk '{print $4}'&lt;br /&gt;
 large&lt;br /&gt;
&lt;br /&gt;
===Handy One Liners===&lt;br /&gt;
HANDY ONE-LINERS FOR AWK                                  22 July 2003&lt;br /&gt;
compiled by Eric Pement &amp;lt;pemente@northpark.edu&amp;gt;           version 0.22&lt;br /&gt;
   Latest version of this file is usually at:&lt;br /&gt;
   http://www.student.northpark.edu/pemente/awk/awk1line.txt&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
USAGE:&lt;br /&gt;
&lt;br /&gt;
    Unix:  awk '/pattern/ {print &amp;quot;$1&amp;quot;}'    # standard Unix shells&lt;br /&gt;
 DOS/Win:  awk '/pattern/ {print &amp;quot;$1&amp;quot;}'    # okay for DJGPP compiled&lt;br /&gt;
           awk &amp;quot;/pattern/ {print \&amp;quot;$1\&amp;quot;}&amp;quot;  # required for Mingw32&lt;br /&gt;
&lt;br /&gt;
Most of my experience comes from version of GNU awk (gawk) compiled for&lt;br /&gt;
Win32. Note in particular that DJGPP compilations permit the awk script&lt;br /&gt;
to follow Unix quoting syntax '/like/ {&amp;quot;this&amp;quot;}'. However, the user must&lt;br /&gt;
know that single quotes under DOS/Windows do not protect the redirection&lt;br /&gt;
arrows (&amp;lt;, &amp;gt;) nor do they protect pipes (|). Both are special symbols&lt;br /&gt;
for the DOS/CMD command shell and their special meaning is ignored only&lt;br /&gt;
if they are placed within &amp;quot;double quotes.&amp;quot; Likewise, DOS/Win users must&lt;br /&gt;
remember that the percent sign (%) is used to mark DOS/Win environment&lt;br /&gt;
variables, so it must be doubled (%%) to yield a single percent sign&lt;br /&gt;
visible to awk.&lt;br /&gt;
&lt;br /&gt;
If I am sure that a script will NOT need to be quoted in Unix, DOS, or&lt;br /&gt;
CMD, then I normally omit the quote marks. If an example is peculiar to&lt;br /&gt;
GNU awk, the command 'gawk' will be used. Please notify me if you find&lt;br /&gt;
errors or new commands to add to this list (total length under 65&lt;br /&gt;
characters). I usually try to put the shortest script first.&lt;br /&gt;
&lt;br /&gt;
FILE SPACING:&lt;br /&gt;
&lt;br /&gt;
 # double space a file&lt;br /&gt;
 awk '1;{print &amp;quot;&amp;quot;}'&lt;br /&gt;
 awk 'BEGIN{ORS=&amp;quot;\n\n&amp;quot;};1'&lt;br /&gt;
&lt;br /&gt;
 # double space a file which already has blank lines in it. Output file&lt;br /&gt;
 # should contain no more than one blank line between lines of text.&lt;br /&gt;
 # NOTE: On Unix systems, DOS lines which have only CRLF (\r\n) are&lt;br /&gt;
 # often treated as non-blank, and thus 'NF' alone will return TRUE.&lt;br /&gt;
 awk 'NF{print $0 &amp;quot;\n&amp;quot;}'&lt;br /&gt;
&lt;br /&gt;
 # triple space a file&lt;br /&gt;
 awk '1;{print &amp;quot;\n&amp;quot;}'&lt;br /&gt;
&lt;br /&gt;
NUMBERING AND CALCULATIONS:&lt;br /&gt;
&lt;br /&gt;
 # precede each line by its line number FOR THAT FILE (left alignment).&lt;br /&gt;
 # Using a tab (\t) instead of space will preserve margins.&lt;br /&gt;
 awk '{print FNR &amp;quot;\t&amp;quot; $0}' files*&lt;br /&gt;
&lt;br /&gt;
 # precede each line by its line number FOR ALL FILES TOGETHER, with tab.&lt;br /&gt;
 awk '{print NR &amp;quot;\t&amp;quot; $0}' files*&lt;br /&gt;
&lt;br /&gt;
 # number each line of a file (number on left, right-aligned)&lt;br /&gt;
 # Double the percent signs if typing from the DOS command prompt.&lt;br /&gt;
 awk '{printf(&amp;quot;%5d : %s\n&amp;quot;, NR,$0)}'&lt;br /&gt;
&lt;br /&gt;
 # number each line of file, but only print numbers if line is not blank&lt;br /&gt;
 # Remember caveats about Unix treatment of \r (mentioned above)&lt;br /&gt;
 awk 'NF{$0=++a &amp;quot; :&amp;quot; $0};{print}'&lt;br /&gt;
 awk '{print (NF? ++a &amp;quot; :&amp;quot; :&amp;quot;&amp;quot;) $0}'&lt;br /&gt;
&lt;br /&gt;
 # count lines (emulates &amp;quot;wc -l&amp;quot;)&lt;br /&gt;
 awk 'END{print NR}'&lt;br /&gt;
&lt;br /&gt;
 # print the sums of the fields of every line&lt;br /&gt;
 awk '{s=0; for (i=1; i&amp;lt;=NF; i++) s=s+$i; print s}'&lt;br /&gt;
&lt;br /&gt;
 # add all fields in all lines and print the sum&lt;br /&gt;
 awk '{for (i=1; i&amp;lt;=NF; i++) s=s+$i}; END{print s}'&lt;br /&gt;
&lt;br /&gt;
 # print every line after replacing each field with its absolute value&lt;br /&gt;
 awk '{for (i=1; i&amp;lt;=NF; i++) if ($i &amp;lt; 0) $i = -$i; print }'&lt;br /&gt;
 awk '{for (i=1; i&amp;lt;=NF; i++) $i = ($i &amp;lt; 0) ? -$i : $i; print }'&lt;br /&gt;
&lt;br /&gt;
 # print the total number of fields (&amp;quot;words&amp;quot;) in all lines&lt;br /&gt;
 awk '{ total = total + NF }; END {print total}' file&lt;br /&gt;
&lt;br /&gt;
 # print the total number of lines that contain &amp;quot;Beth&amp;quot;&lt;br /&gt;
 awk '/Beth/{n++}; END {print n+0}' file&lt;br /&gt;
&lt;br /&gt;
 # print the largest first field and the line that contains it&lt;br /&gt;
 # Intended for finding the longest string in field #1&lt;br /&gt;
 awk '$1 &amp;gt; max {max=$1; maxline=$0}; END{ print max, maxline}'&lt;br /&gt;
&lt;br /&gt;
 # print the number of fields in each line, followed by the line&lt;br /&gt;
 awk '{ print NF &amp;quot;:&amp;quot; $0 } '&lt;br /&gt;
&lt;br /&gt;
 # print the last field of each line&lt;br /&gt;
 awk '{ print $NF }'&lt;br /&gt;
&lt;br /&gt;
 # print the last field of the last line&lt;br /&gt;
 awk '{ field = $NF }; END{ print field }'&lt;br /&gt;
&lt;br /&gt;
 # print every line with more than 4 fields&lt;br /&gt;
 awk 'NF &amp;gt; 4'&lt;br /&gt;
&lt;br /&gt;
 # print every line where the value of the last field is &amp;gt; 4&lt;br /&gt;
 awk '$NF &amp;gt; 4'&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
TEXT CONVERSION AND SUBSTITUTION:&lt;br /&gt;
&lt;br /&gt;
 # IN UNIX ENVIRONMENT: convert DOS newlines (CR/LF) to Unix format&lt;br /&gt;
 awk '{sub(/\r$/,&amp;quot;&amp;quot;);print}'   # assumes EACH line ends with Ctrl-M&lt;br /&gt;
&lt;br /&gt;
 # IN UNIX ENVIRONMENT: convert Unix newlines (LF) to DOS format&lt;br /&gt;
 awk '{sub(/$/,&amp;quot;\r&amp;quot;);print}&lt;br /&gt;
&lt;br /&gt;
 # IN DOS ENVIRONMENT: convert Unix newlines (LF) to DOS format&lt;br /&gt;
 awk 1&lt;br /&gt;
&lt;br /&gt;
 # IN DOS ENVIRONMENT: convert DOS newlines (CR/LF) to Unix format&lt;br /&gt;
 # Cannot be done with DOS versions of awk, other than gawk:&lt;br /&gt;
 gawk -v BINMODE=&amp;quot;w&amp;quot; '1' infile &amp;gt;outfile&lt;br /&gt;
&lt;br /&gt;
 # Use &amp;quot;tr&amp;quot; instead.&lt;br /&gt;
 tr -d \r &amp;lt;infile &amp;gt;outfile            # GNU tr version 1.22 or higher&lt;br /&gt;
&lt;br /&gt;
 # delete leading whitespace (spaces, tabs) from front of each line&lt;br /&gt;
 # aligns all text flush left&lt;br /&gt;
 awk '{sub(/^[ \t]+/, &amp;quot;&amp;quot;); print}'&lt;br /&gt;
&lt;br /&gt;
 # delete trailing whitespace (spaces, tabs) from end of each line&lt;br /&gt;
 awk '{sub(/[ \t]+$/, &amp;quot;&amp;quot;);print}'&lt;br /&gt;
&lt;br /&gt;
 # delete BOTH leading and trailing whitespace from each line&lt;br /&gt;
 awk '{gsub(/^[ \t]+|[ \t]+$/,&amp;quot;&amp;quot;);print}'&lt;br /&gt;
 awk '{$1=$1;print}'           # also removes extra space between fields&lt;br /&gt;
&lt;br /&gt;
 # insert 5 blank spaces at beginning of each line (make page offset)&lt;br /&gt;
 awk '{sub(/^/, &amp;quot;     &amp;quot;);print}'&lt;br /&gt;
&lt;br /&gt;
 # align all text flush right on a 79-column width&lt;br /&gt;
 awk '{printf &amp;quot;%79s\n&amp;quot;, $0}' file*&lt;br /&gt;
&lt;br /&gt;
 # center all text on a 79-character width&lt;br /&gt;
 awk '{l=length();s=int((79-l)/2); printf &amp;quot;%&amp;quot;(s+l)&amp;quot;s\n&amp;quot;,$0}' file*&lt;br /&gt;
&lt;br /&gt;
 # substitute (find and replace) &amp;quot;foo&amp;quot; with &amp;quot;bar&amp;quot; on each line&lt;br /&gt;
 awk '{sub(/foo/,&amp;quot;bar&amp;quot;);print}'           # replaces only 1st instance&lt;br /&gt;
 gawk '{$0=gensub(/foo/,&amp;quot;bar&amp;quot;,4);print}'  # replaces only 4th instance&lt;br /&gt;
 awk '{gsub(/foo/,&amp;quot;bar&amp;quot;);print}'          # replaces ALL instances in a line&lt;br /&gt;
&lt;br /&gt;
 # substitute &amp;quot;foo&amp;quot; with &amp;quot;bar&amp;quot; ONLY for lines which contain &amp;quot;baz&amp;quot;&lt;br /&gt;
 awk '/baz/{gsub(/foo/, &amp;quot;bar&amp;quot;)};{print}'&lt;br /&gt;
&lt;br /&gt;
 # substitute &amp;quot;foo&amp;quot; with &amp;quot;bar&amp;quot; EXCEPT for lines which contain &amp;quot;baz&amp;quot;&lt;br /&gt;
 awk '!/baz/{gsub(/foo/, &amp;quot;bar&amp;quot;)};{print}'&lt;br /&gt;
&lt;br /&gt;
 # change &amp;quot;scarlet&amp;quot; or &amp;quot;ruby&amp;quot; or &amp;quot;puce&amp;quot; to &amp;quot;red&amp;quot;&lt;br /&gt;
 awk '{gsub(/scarlet|ruby|puce/, &amp;quot;red&amp;quot;); print}'&lt;br /&gt;
&lt;br /&gt;
 # reverse order of lines (emulates &amp;quot;tac&amp;quot;)&lt;br /&gt;
 awk '{a[i++]=$0} END {for (j=i-1; j&amp;gt;=0;) print a[j--] }' file*&lt;br /&gt;
&lt;br /&gt;
 # if a line ends with a backslash, append the next line to it&lt;br /&gt;
 # (fails if there are multiple lines ending with backslash...)&lt;br /&gt;
 awk '/\\$/ {sub(/\\$/,&amp;quot;&amp;quot;); getline t; print $0 t; next}; 1' file*&lt;br /&gt;
&lt;br /&gt;
 # print and sort the login names of all users&lt;br /&gt;
 awk -F &amp;quot;:&amp;quot; '{ print $1 | &amp;quot;sort&amp;quot; }' /etc/passwd&lt;br /&gt;
&lt;br /&gt;
 # print the first 2 fields, in opposite order, of every line&lt;br /&gt;
 awk '{print $2, $1}' file&lt;br /&gt;
&lt;br /&gt;
 # switch the first 2 fields of every line&lt;br /&gt;
 awk '{temp = $1; $1 = $2; $2 = temp}' file&lt;br /&gt;
&lt;br /&gt;
 # print every line, deleting the second field of that line&lt;br /&gt;
 awk '{ $2 = &amp;quot;&amp;quot;; print }'&lt;br /&gt;
&lt;br /&gt;
 # print in reverse order the fields of every line&lt;br /&gt;
 awk '{for (i=NF; i&amp;gt;0; i--) printf(&amp;quot;%s &amp;quot;,i);printf (&amp;quot;\n&amp;quot;)}' file&lt;br /&gt;
&lt;br /&gt;
 # remove duplicate, consecutive lines (emulates &amp;quot;uniq&amp;quot;)&lt;br /&gt;
 awk 'a !~ $0; {a=$0}'&lt;br /&gt;
&lt;br /&gt;
 # remove duplicate, nonconsecutive lines&lt;br /&gt;
 awk '! a[$0]++'                     # most concise script&lt;br /&gt;
 awk '!($0 in a) {a[$0];print}'      # most efficient script&lt;br /&gt;
&lt;br /&gt;
 # concatenate every 5 lines of input, using a comma separator&lt;br /&gt;
 # between fields&lt;br /&gt;
 awk 'ORS=%NR%5?&amp;quot;,&amp;quot;:&amp;quot;\n&amp;quot;' file&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
SELECTIVE PRINTING OF CERTAIN LINES:&lt;br /&gt;
&lt;br /&gt;
 # print first 10 lines of file (emulates behavior of &amp;quot;head&amp;quot;)&lt;br /&gt;
 awk 'NR &amp;lt; 11'&lt;br /&gt;
&lt;br /&gt;
 # print first line of file (emulates &amp;quot;head -1&amp;quot;)&lt;br /&gt;
 awk 'NR&amp;gt;1{exit};1'&lt;br /&gt;
&lt;br /&gt;
  # print the last 2 lines of a file (emulates &amp;quot;tail -2&amp;quot;)&lt;br /&gt;
 awk '{y=x &amp;quot;\n&amp;quot; $0; x=$0};END{print y}'&lt;br /&gt;
&lt;br /&gt;
 # print the last line of a file (emulates &amp;quot;tail -1&amp;quot;)&lt;br /&gt;
 awk 'END{print}'&lt;br /&gt;
&lt;br /&gt;
 # print only lines which match regular expression (emulates &amp;quot;grep&amp;quot;)&lt;br /&gt;
 awk '/regex/'&lt;br /&gt;
&lt;br /&gt;
 # print only lines which do NOT match regex (emulates &amp;quot;grep -v&amp;quot;)&lt;br /&gt;
 awk '!/regex/'&lt;br /&gt;
&lt;br /&gt;
 # print the line immediately before a regex, but not the line&lt;br /&gt;
 # containing the regex&lt;br /&gt;
 awk '/regex/{print x};{x=$0}'&lt;br /&gt;
 awk '/regex/{print (x==&amp;quot;&amp;quot; ? &amp;quot;match on line 1&amp;quot; : x)};{x=$0}'&lt;br /&gt;
&lt;br /&gt;
 # print the line immediately after a regex, but not the line&lt;br /&gt;
 # containing the regex&lt;br /&gt;
 awk '/regex/{getline;print}'&lt;br /&gt;
&lt;br /&gt;
 # grep for AAA and BBB and CCC (in any order)&lt;br /&gt;
 awk '/AAA/; /BBB/; /CCC/'&lt;br /&gt;
&lt;br /&gt;
 # grep for AAA and BBB and CCC (in that order)&lt;br /&gt;
 awk '/AAA.*BBB.*CCC/'&lt;br /&gt;
&lt;br /&gt;
 # print only lines of 65 characters or longer&lt;br /&gt;
 awk 'length &amp;gt; 64'&lt;br /&gt;
&lt;br /&gt;
 # print only lines of less than 65 characters&lt;br /&gt;
 awk 'length &amp;lt; 64'&lt;br /&gt;
&lt;br /&gt;
 # print section of file from regular expression to end of file&lt;br /&gt;
 awk '/regex/,0'&lt;br /&gt;
 awk '/regex/,EOF'&lt;br /&gt;
&lt;br /&gt;
 # print section of file based on line numbers (lines 8-12, inclusive)&lt;br /&gt;
 awk 'NR==8,NR==12'&lt;br /&gt;
&lt;br /&gt;
 # print line number 52&lt;br /&gt;
 awk 'NR==52'&lt;br /&gt;
 awk 'NR==52 {print;exit}'          # more efficient on large files&lt;br /&gt;
&lt;br /&gt;
 # print section of file between two regular expressions (inclusive)&lt;br /&gt;
 awk '/Iowa/,/Montana/'             # case sensitive&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
SELECTIVE DELETION OF CERTAIN LINES:&lt;br /&gt;
&lt;br /&gt;
 # delete ALL blank lines from a file (same as &amp;quot;grep '.' &amp;quot;)&lt;br /&gt;
 awk NF&lt;br /&gt;
 awk '/./'&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
CREDITS AND THANKS:&lt;br /&gt;
&lt;br /&gt;
Special thanks to Peter S. Tillier for helping me with the first release&lt;br /&gt;
of this FAQ file.&lt;br /&gt;
&lt;br /&gt;
For additional syntax instructions, including the way to apply editing&lt;br /&gt;
commands from a disk file instead of the command line, consult:&lt;br /&gt;
&lt;br /&gt;
&amp;quot;sed &amp;amp; awk, 2nd Edition,&amp;quot; by Dale Dougherty and Arnold Robbins&lt;br /&gt;
  O'Reilly, 1997&lt;br /&gt;
&amp;quot;UNIX Text Processing,&amp;quot; by Dale Dougherty and Tim O'Reilly&lt;br /&gt;
  Hayden Books, 1987&lt;br /&gt;
&amp;quot;Effective awk Programming, 3rd Edition.&amp;quot; by Arnold Robbins&lt;br /&gt;
  O'Reilly, 2001&lt;br /&gt;
&lt;br /&gt;
To fully exploit the power of awk, one must understand &amp;quot;regular&lt;br /&gt;
expressions.&amp;quot; For detailed discussion of regular expressions, see&lt;br /&gt;
&amp;quot;Mastering Regular Expressions, 2d edition&amp;quot; by Jeffrey Friedl&lt;br /&gt;
   (O'Reilly, 2002).&lt;br /&gt;
&lt;br /&gt;
The manual (&amp;quot;man&amp;quot;) pages on Unix systems may be helpful (try &amp;quot;man awk&amp;quot;,&lt;br /&gt;
&amp;quot;man nawk&amp;quot;, &amp;quot;man regexp&amp;quot;, or the section on regular expressions in &amp;quot;man&lt;br /&gt;
ed&amp;quot;), but man pages are notoriously difficult. They are not written to&lt;br /&gt;
teach awk use or regexps to first-time users, but as a reference text&lt;br /&gt;
for those already acquainted with these tools.&lt;br /&gt;
&lt;br /&gt;
USE OF '\t' IN awk SCRIPTS: For clarity in documentation, we have used&lt;br /&gt;
the expression '\t' to indicate a tab character (0x09) in the scripts.&lt;br /&gt;
All versions of awk, even the UNIX System 7 version should recognize&lt;br /&gt;
the '\t' abbreviation.&lt;/div&gt;</summary>
		<author><name>Tjmustard</name></author>
		
	</entry>
	<entry>
		<id>https://phyc-wiki.chem.oregonstate.edu/index.php?title=AWK&amp;diff=95</id>
		<title>AWK</title>
		<link rel="alternate" type="text/html" href="https://phyc-wiki.chem.oregonstate.edu/index.php?title=AWK&amp;diff=95"/>
		<updated>2014-05-13T17:35:42Z</updated>

		<summary type="html">&lt;p&gt;Tjmustard: Created page with &amp;quot;===General use:=== AWK can be used to: # grab a specific substring from a larger string # do basic math  ==Grabing a substring==   ===Handy One Liners=== HANDY ONE-LINERS FOR ...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;===General use:===&lt;br /&gt;
AWK can be used to:&lt;br /&gt;
# grab a specific substring from a larger string&lt;br /&gt;
# do basic math&lt;br /&gt;
&lt;br /&gt;
==Grabing a substring==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Handy One Liners===&lt;br /&gt;
HANDY ONE-LINERS FOR AWK                                  22 July 2003&lt;br /&gt;
compiled by Eric Pement &amp;lt;pemente@northpark.edu&amp;gt;           version 0.22&lt;br /&gt;
   Latest version of this file is usually at:&lt;br /&gt;
   http://www.student.northpark.edu/pemente/awk/awk1line.txt&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
USAGE:&lt;br /&gt;
&lt;br /&gt;
    Unix:  awk '/pattern/ {print &amp;quot;$1&amp;quot;}'    # standard Unix shells&lt;br /&gt;
 DOS/Win:  awk '/pattern/ {print &amp;quot;$1&amp;quot;}'    # okay for DJGPP compiled&lt;br /&gt;
           awk &amp;quot;/pattern/ {print \&amp;quot;$1\&amp;quot;}&amp;quot;  # required for Mingw32&lt;br /&gt;
&lt;br /&gt;
Most of my experience comes from version of GNU awk (gawk) compiled for&lt;br /&gt;
Win32. Note in particular that DJGPP compilations permit the awk script&lt;br /&gt;
to follow Unix quoting syntax '/like/ {&amp;quot;this&amp;quot;}'. However, the user must&lt;br /&gt;
know that single quotes under DOS/Windows do not protect the redirection&lt;br /&gt;
arrows (&amp;lt;, &amp;gt;) nor do they protect pipes (|). Both are special symbols&lt;br /&gt;
for the DOS/CMD command shell and their special meaning is ignored only&lt;br /&gt;
if they are placed within &amp;quot;double quotes.&amp;quot; Likewise, DOS/Win users must&lt;br /&gt;
remember that the percent sign (%) is used to mark DOS/Win environment&lt;br /&gt;
variables, so it must be doubled (%%) to yield a single percent sign&lt;br /&gt;
visible to awk.&lt;br /&gt;
&lt;br /&gt;
If I am sure that a script will NOT need to be quoted in Unix, DOS, or&lt;br /&gt;
CMD, then I normally omit the quote marks. If an example is peculiar to&lt;br /&gt;
GNU awk, the command 'gawk' will be used. Please notify me if you find&lt;br /&gt;
errors or new commands to add to this list (total length under 65&lt;br /&gt;
characters). I usually try to put the shortest script first.&lt;br /&gt;
&lt;br /&gt;
FILE SPACING:&lt;br /&gt;
&lt;br /&gt;
 # double space a file&lt;br /&gt;
 awk '1;{print &amp;quot;&amp;quot;}'&lt;br /&gt;
 awk 'BEGIN{ORS=&amp;quot;\n\n&amp;quot;};1'&lt;br /&gt;
&lt;br /&gt;
 # double space a file which already has blank lines in it. Output file&lt;br /&gt;
 # should contain no more than one blank line between lines of text.&lt;br /&gt;
 # NOTE: On Unix systems, DOS lines which have only CRLF (\r\n) are&lt;br /&gt;
 # often treated as non-blank, and thus 'NF' alone will return TRUE.&lt;br /&gt;
 awk 'NF{print $0 &amp;quot;\n&amp;quot;}'&lt;br /&gt;
&lt;br /&gt;
 # triple space a file&lt;br /&gt;
 awk '1;{print &amp;quot;\n&amp;quot;}'&lt;br /&gt;
&lt;br /&gt;
NUMBERING AND CALCULATIONS:&lt;br /&gt;
&lt;br /&gt;
 # precede each line by its line number FOR THAT FILE (left alignment).&lt;br /&gt;
 # Using a tab (\t) instead of space will preserve margins.&lt;br /&gt;
 awk '{print FNR &amp;quot;\t&amp;quot; $0}' files*&lt;br /&gt;
&lt;br /&gt;
 # precede each line by its line number FOR ALL FILES TOGETHER, with tab.&lt;br /&gt;
 awk '{print NR &amp;quot;\t&amp;quot; $0}' files*&lt;br /&gt;
&lt;br /&gt;
 # number each line of a file (number on left, right-aligned)&lt;br /&gt;
 # Double the percent signs if typing from the DOS command prompt.&lt;br /&gt;
 awk '{printf(&amp;quot;%5d : %s\n&amp;quot;, NR,$0)}'&lt;br /&gt;
&lt;br /&gt;
 # number each line of file, but only print numbers if line is not blank&lt;br /&gt;
 # Remember caveats about Unix treatment of \r (mentioned above)&lt;br /&gt;
 awk 'NF{$0=++a &amp;quot; :&amp;quot; $0};{print}'&lt;br /&gt;
 awk '{print (NF? ++a &amp;quot; :&amp;quot; :&amp;quot;&amp;quot;) $0}'&lt;br /&gt;
&lt;br /&gt;
 # count lines (emulates &amp;quot;wc -l&amp;quot;)&lt;br /&gt;
 awk 'END{print NR}'&lt;br /&gt;
&lt;br /&gt;
 # print the sums of the fields of every line&lt;br /&gt;
 awk '{s=0; for (i=1; i&amp;lt;=NF; i++) s=s+$i; print s}'&lt;br /&gt;
&lt;br /&gt;
 # add all fields in all lines and print the sum&lt;br /&gt;
 awk '{for (i=1; i&amp;lt;=NF; i++) s=s+$i}; END{print s}'&lt;br /&gt;
&lt;br /&gt;
 # print every line after replacing each field with its absolute value&lt;br /&gt;
 awk '{for (i=1; i&amp;lt;=NF; i++) if ($i &amp;lt; 0) $i = -$i; print }'&lt;br /&gt;
 awk '{for (i=1; i&amp;lt;=NF; i++) $i = ($i &amp;lt; 0) ? -$i : $i; print }'&lt;br /&gt;
&lt;br /&gt;
 # print the total number of fields (&amp;quot;words&amp;quot;) in all lines&lt;br /&gt;
 awk '{ total = total + NF }; END {print total}' file&lt;br /&gt;
&lt;br /&gt;
 # print the total number of lines that contain &amp;quot;Beth&amp;quot;&lt;br /&gt;
 awk '/Beth/{n++}; END {print n+0}' file&lt;br /&gt;
&lt;br /&gt;
 # print the largest first field and the line that contains it&lt;br /&gt;
 # Intended for finding the longest string in field #1&lt;br /&gt;
 awk '$1 &amp;gt; max {max=$1; maxline=$0}; END{ print max, maxline}'&lt;br /&gt;
&lt;br /&gt;
 # print the number of fields in each line, followed by the line&lt;br /&gt;
 awk '{ print NF &amp;quot;:&amp;quot; $0 } '&lt;br /&gt;
&lt;br /&gt;
 # print the last field of each line&lt;br /&gt;
 awk '{ print $NF }'&lt;br /&gt;
&lt;br /&gt;
 # print the last field of the last line&lt;br /&gt;
 awk '{ field = $NF }; END{ print field }'&lt;br /&gt;
&lt;br /&gt;
 # print every line with more than 4 fields&lt;br /&gt;
 awk 'NF &amp;gt; 4'&lt;br /&gt;
&lt;br /&gt;
 # print every line where the value of the last field is &amp;gt; 4&lt;br /&gt;
 awk '$NF &amp;gt; 4'&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
TEXT CONVERSION AND SUBSTITUTION:&lt;br /&gt;
&lt;br /&gt;
 # IN UNIX ENVIRONMENT: convert DOS newlines (CR/LF) to Unix format&lt;br /&gt;
 awk '{sub(/\r$/,&amp;quot;&amp;quot;);print}'   # assumes EACH line ends with Ctrl-M&lt;br /&gt;
&lt;br /&gt;
 # IN UNIX ENVIRONMENT: convert Unix newlines (LF) to DOS format&lt;br /&gt;
 awk '{sub(/$/,&amp;quot;\r&amp;quot;);print}&lt;br /&gt;
&lt;br /&gt;
 # IN DOS ENVIRONMENT: convert Unix newlines (LF) to DOS format&lt;br /&gt;
 awk 1&lt;br /&gt;
&lt;br /&gt;
 # IN DOS ENVIRONMENT: convert DOS newlines (CR/LF) to Unix format&lt;br /&gt;
 # Cannot be done with DOS versions of awk, other than gawk:&lt;br /&gt;
 gawk -v BINMODE=&amp;quot;w&amp;quot; '1' infile &amp;gt;outfile&lt;br /&gt;
&lt;br /&gt;
 # Use &amp;quot;tr&amp;quot; instead.&lt;br /&gt;
 tr -d \r &amp;lt;infile &amp;gt;outfile            # GNU tr version 1.22 or higher&lt;br /&gt;
&lt;br /&gt;
 # delete leading whitespace (spaces, tabs) from front of each line&lt;br /&gt;
 # aligns all text flush left&lt;br /&gt;
 awk '{sub(/^[ \t]+/, &amp;quot;&amp;quot;); print}'&lt;br /&gt;
&lt;br /&gt;
 # delete trailing whitespace (spaces, tabs) from end of each line&lt;br /&gt;
 awk '{sub(/[ \t]+$/, &amp;quot;&amp;quot;);print}'&lt;br /&gt;
&lt;br /&gt;
 # delete BOTH leading and trailing whitespace from each line&lt;br /&gt;
 awk '{gsub(/^[ \t]+|[ \t]+$/,&amp;quot;&amp;quot;);print}'&lt;br /&gt;
 awk '{$1=$1;print}'           # also removes extra space between fields&lt;br /&gt;
&lt;br /&gt;
 # insert 5 blank spaces at beginning of each line (make page offset)&lt;br /&gt;
 awk '{sub(/^/, &amp;quot;     &amp;quot;);print}'&lt;br /&gt;
&lt;br /&gt;
 # align all text flush right on a 79-column width&lt;br /&gt;
 awk '{printf &amp;quot;%79s\n&amp;quot;, $0}' file*&lt;br /&gt;
&lt;br /&gt;
 # center all text on a 79-character width&lt;br /&gt;
 awk '{l=length();s=int((79-l)/2); printf &amp;quot;%&amp;quot;(s+l)&amp;quot;s\n&amp;quot;,$0}' file*&lt;br /&gt;
&lt;br /&gt;
 # substitute (find and replace) &amp;quot;foo&amp;quot; with &amp;quot;bar&amp;quot; on each line&lt;br /&gt;
 awk '{sub(/foo/,&amp;quot;bar&amp;quot;);print}'           # replaces only 1st instance&lt;br /&gt;
 gawk '{$0=gensub(/foo/,&amp;quot;bar&amp;quot;,4);print}'  # replaces only 4th instance&lt;br /&gt;
 awk '{gsub(/foo/,&amp;quot;bar&amp;quot;);print}'          # replaces ALL instances in a line&lt;br /&gt;
&lt;br /&gt;
 # substitute &amp;quot;foo&amp;quot; with &amp;quot;bar&amp;quot; ONLY for lines which contain &amp;quot;baz&amp;quot;&lt;br /&gt;
 awk '/baz/{gsub(/foo/, &amp;quot;bar&amp;quot;)};{print}'&lt;br /&gt;
&lt;br /&gt;
 # substitute &amp;quot;foo&amp;quot; with &amp;quot;bar&amp;quot; EXCEPT for lines which contain &amp;quot;baz&amp;quot;&lt;br /&gt;
 awk '!/baz/{gsub(/foo/, &amp;quot;bar&amp;quot;)};{print}'&lt;br /&gt;
&lt;br /&gt;
 # change &amp;quot;scarlet&amp;quot; or &amp;quot;ruby&amp;quot; or &amp;quot;puce&amp;quot; to &amp;quot;red&amp;quot;&lt;br /&gt;
 awk '{gsub(/scarlet|ruby|puce/, &amp;quot;red&amp;quot;); print}'&lt;br /&gt;
&lt;br /&gt;
 # reverse order of lines (emulates &amp;quot;tac&amp;quot;)&lt;br /&gt;
 awk '{a[i++]=$0} END {for (j=i-1; j&amp;gt;=0;) print a[j--] }' file*&lt;br /&gt;
&lt;br /&gt;
 # if a line ends with a backslash, append the next line to it&lt;br /&gt;
 # (fails if there are multiple lines ending with backslash...)&lt;br /&gt;
 awk '/\\$/ {sub(/\\$/,&amp;quot;&amp;quot;); getline t; print $0 t; next}; 1' file*&lt;br /&gt;
&lt;br /&gt;
 # print and sort the login names of all users&lt;br /&gt;
 awk -F &amp;quot;:&amp;quot; '{ print $1 | &amp;quot;sort&amp;quot; }' /etc/passwd&lt;br /&gt;
&lt;br /&gt;
 # print the first 2 fields, in opposite order, of every line&lt;br /&gt;
 awk '{print $2, $1}' file&lt;br /&gt;
&lt;br /&gt;
 # switch the first 2 fields of every line&lt;br /&gt;
 awk '{temp = $1; $1 = $2; $2 = temp}' file&lt;br /&gt;
&lt;br /&gt;
 # print every line, deleting the second field of that line&lt;br /&gt;
 awk '{ $2 = &amp;quot;&amp;quot;; print }'&lt;br /&gt;
&lt;br /&gt;
 # print in reverse order the fields of every line&lt;br /&gt;
 awk '{for (i=NF; i&amp;gt;0; i--) printf(&amp;quot;%s &amp;quot;,i);printf (&amp;quot;\n&amp;quot;)}' file&lt;br /&gt;
&lt;br /&gt;
 # remove duplicate, consecutive lines (emulates &amp;quot;uniq&amp;quot;)&lt;br /&gt;
 awk 'a !~ $0; {a=$0}'&lt;br /&gt;
&lt;br /&gt;
 # remove duplicate, nonconsecutive lines&lt;br /&gt;
 awk '! a[$0]++'                     # most concise script&lt;br /&gt;
 awk '!($0 in a) {a[$0];print}'      # most efficient script&lt;br /&gt;
&lt;br /&gt;
 # concatenate every 5 lines of input, using a comma separator&lt;br /&gt;
 # between fields&lt;br /&gt;
 awk 'ORS=%NR%5?&amp;quot;,&amp;quot;:&amp;quot;\n&amp;quot;' file&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
SELECTIVE PRINTING OF CERTAIN LINES:&lt;br /&gt;
&lt;br /&gt;
 # print first 10 lines of file (emulates behavior of &amp;quot;head&amp;quot;)&lt;br /&gt;
 awk 'NR &amp;lt; 11'&lt;br /&gt;
&lt;br /&gt;
 # print first line of file (emulates &amp;quot;head -1&amp;quot;)&lt;br /&gt;
 awk 'NR&amp;gt;1{exit};1'&lt;br /&gt;
&lt;br /&gt;
  # print the last 2 lines of a file (emulates &amp;quot;tail -2&amp;quot;)&lt;br /&gt;
 awk '{y=x &amp;quot;\n&amp;quot; $0; x=$0};END{print y}'&lt;br /&gt;
&lt;br /&gt;
 # print the last line of a file (emulates &amp;quot;tail -1&amp;quot;)&lt;br /&gt;
 awk 'END{print}'&lt;br /&gt;
&lt;br /&gt;
 # print only lines which match regular expression (emulates &amp;quot;grep&amp;quot;)&lt;br /&gt;
 awk '/regex/'&lt;br /&gt;
&lt;br /&gt;
 # print only lines which do NOT match regex (emulates &amp;quot;grep -v&amp;quot;)&lt;br /&gt;
 awk '!/regex/'&lt;br /&gt;
&lt;br /&gt;
 # print the line immediately before a regex, but not the line&lt;br /&gt;
 # containing the regex&lt;br /&gt;
 awk '/regex/{print x};{x=$0}'&lt;br /&gt;
 awk '/regex/{print (x==&amp;quot;&amp;quot; ? &amp;quot;match on line 1&amp;quot; : x)};{x=$0}'&lt;br /&gt;
&lt;br /&gt;
 # print the line immediately after a regex, but not the line&lt;br /&gt;
 # containing the regex&lt;br /&gt;
 awk '/regex/{getline;print}'&lt;br /&gt;
&lt;br /&gt;
 # grep for AAA and BBB and CCC (in any order)&lt;br /&gt;
 awk '/AAA/; /BBB/; /CCC/'&lt;br /&gt;
&lt;br /&gt;
 # grep for AAA and BBB and CCC (in that order)&lt;br /&gt;
 awk '/AAA.*BBB.*CCC/'&lt;br /&gt;
&lt;br /&gt;
 # print only lines of 65 characters or longer&lt;br /&gt;
 awk 'length &amp;gt; 64'&lt;br /&gt;
&lt;br /&gt;
 # print only lines of less than 65 characters&lt;br /&gt;
 awk 'length &amp;lt; 64'&lt;br /&gt;
&lt;br /&gt;
 # print section of file from regular expression to end of file&lt;br /&gt;
 awk '/regex/,0'&lt;br /&gt;
 awk '/regex/,EOF'&lt;br /&gt;
&lt;br /&gt;
 # print section of file based on line numbers (lines 8-12, inclusive)&lt;br /&gt;
 awk 'NR==8,NR==12'&lt;br /&gt;
&lt;br /&gt;
 # print line number 52&lt;br /&gt;
 awk 'NR==52'&lt;br /&gt;
 awk 'NR==52 {print;exit}'          # more efficient on large files&lt;br /&gt;
&lt;br /&gt;
 # print section of file between two regular expressions (inclusive)&lt;br /&gt;
 awk '/Iowa/,/Montana/'             # case sensitive&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
SELECTIVE DELETION OF CERTAIN LINES:&lt;br /&gt;
&lt;br /&gt;
 # delete ALL blank lines from a file (same as &amp;quot;grep '.' &amp;quot;)&lt;br /&gt;
 awk NF&lt;br /&gt;
 awk '/./'&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
CREDITS AND THANKS:&lt;br /&gt;
&lt;br /&gt;
Special thanks to Peter S. Tillier for helping me with the first release&lt;br /&gt;
of this FAQ file.&lt;br /&gt;
&lt;br /&gt;
For additional syntax instructions, including the way to apply editing&lt;br /&gt;
commands from a disk file instead of the command line, consult:&lt;br /&gt;
&lt;br /&gt;
&amp;quot;sed &amp;amp; awk, 2nd Edition,&amp;quot; by Dale Dougherty and Arnold Robbins&lt;br /&gt;
  O'Reilly, 1997&lt;br /&gt;
&amp;quot;UNIX Text Processing,&amp;quot; by Dale Dougherty and Tim O'Reilly&lt;br /&gt;
  Hayden Books, 1987&lt;br /&gt;
&amp;quot;Effective awk Programming, 3rd Edition.&amp;quot; by Arnold Robbins&lt;br /&gt;
  O'Reilly, 2001&lt;br /&gt;
&lt;br /&gt;
To fully exploit the power of awk, one must understand &amp;quot;regular&lt;br /&gt;
expressions.&amp;quot; For detailed discussion of regular expressions, see&lt;br /&gt;
&amp;quot;Mastering Regular Expressions, 2d edition&amp;quot; by Jeffrey Friedl&lt;br /&gt;
   (O'Reilly, 2002).&lt;br /&gt;
&lt;br /&gt;
The manual (&amp;quot;man&amp;quot;) pages on Unix systems may be helpful (try &amp;quot;man awk&amp;quot;,&lt;br /&gt;
&amp;quot;man nawk&amp;quot;, &amp;quot;man regexp&amp;quot;, or the section on regular expressions in &amp;quot;man&lt;br /&gt;
ed&amp;quot;), but man pages are notoriously difficult. They are not written to&lt;br /&gt;
teach awk use or regexps to first-time users, but as a reference text&lt;br /&gt;
for those already acquainted with these tools.&lt;br /&gt;
&lt;br /&gt;
USE OF '\t' IN awk SCRIPTS: For clarity in documentation, we have used&lt;br /&gt;
the expression '\t' to indicate a tab character (0x09) in the scripts.&lt;br /&gt;
All versions of awk, even the UNIX System 7 version should recognize&lt;br /&gt;
the '\t' abbreviation.&lt;/div&gt;</summary>
		<author><name>Tjmustard</name></author>
		
	</entry>
	<entry>
		<id>https://phyc-wiki.chem.oregonstate.edu/index.php?title=Linux_Related&amp;diff=91</id>
		<title>Linux Related</title>
		<link rel="alternate" type="text/html" href="https://phyc-wiki.chem.oregonstate.edu/index.php?title=Linux_Related&amp;diff=91"/>
		<updated>2014-05-13T17:33:43Z</updated>

		<summary type="html">&lt;p&gt;Tjmustard: /* Linux Programs */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;===General Commands===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Linux Programs===&lt;br /&gt;
[[VIM]]&lt;br /&gt;
[[SED]]&lt;br /&gt;
[[AWK]]&lt;/div&gt;</summary>
		<author><name>Tjmustard</name></author>
		
	</entry>
	<entry>
		<id>https://phyc-wiki.chem.oregonstate.edu/index.php?title=Linux_Related&amp;diff=88</id>
		<title>Linux Related</title>
		<link rel="alternate" type="text/html" href="https://phyc-wiki.chem.oregonstate.edu/index.php?title=Linux_Related&amp;diff=88"/>
		<updated>2014-05-13T17:32:24Z</updated>

		<summary type="html">&lt;p&gt;Tjmustard: Created page with &amp;quot;===General Commands===    ===Linux Programs===&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;===General Commands===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Linux Programs===&lt;/div&gt;</summary>
		<author><name>Tjmustard</name></author>
		
	</entry>
	<entry>
		<id>https://phyc-wiki.chem.oregonstate.edu/index.php?title=Main_Page&amp;diff=86</id>
		<title>Main Page</title>
		<link rel="alternate" type="text/html" href="https://phyc-wiki.chem.oregonstate.edu/index.php?title=Main_Page&amp;diff=86"/>
		<updated>2014-05-13T17:08:38Z</updated>

		<summary type="html">&lt;p&gt;Tjmustard: /* Public Resources */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
===General===&lt;br /&gt;
----&lt;br /&gt;
* [[Group News]]&lt;br /&gt;
&lt;br /&gt;
* [[About PHYC]]&lt;br /&gt;
&lt;br /&gt;
* [[General Research in the PHYC Group]]&lt;br /&gt;
&lt;br /&gt;
* [[Collaborators]]&lt;br /&gt;
&lt;br /&gt;
* [http://phyc.chem.oregonstate.edu/publications Publications]&lt;br /&gt;
&lt;br /&gt;
===Software Related===&lt;br /&gt;
----&lt;br /&gt;
* [[Apple Related]]&lt;br /&gt;
&lt;br /&gt;
* [[Linux Related]]&lt;br /&gt;
&lt;br /&gt;
* [[Text Editors]]&lt;br /&gt;
&lt;br /&gt;
* [[Computational Software Related]]&lt;br /&gt;
&lt;br /&gt;
* [[Computational Software Manuals]]&lt;br /&gt;
&lt;br /&gt;
* [[Ad Hoc Script Collection]]&lt;br /&gt;
&lt;br /&gt;
* [[Strange Error Messages]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Resources===&lt;br /&gt;
----&lt;br /&gt;
* [[Woodward]]&lt;br /&gt;
&lt;br /&gt;
* [[Fermi]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Programming===&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
* [[BASH]]&lt;br /&gt;
&lt;br /&gt;
* [[Python]]&lt;br /&gt;
&lt;br /&gt;
* [[C++]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Links===&lt;br /&gt;
----&lt;br /&gt;
* [[Chemistry Journals]]&lt;br /&gt;
&lt;br /&gt;
* [[Computational Chemistry]]&lt;br /&gt;
&lt;br /&gt;
* [[Organic Chemistry News, Highlights and Blogs]]&lt;br /&gt;
&lt;br /&gt;
* [[Other Links]]&lt;br /&gt;
&lt;br /&gt;
===Public Resources===&lt;br /&gt;
----&lt;br /&gt;
[[Publics:Public Test Page]]&lt;br /&gt;
&lt;br /&gt;
== Getting started ==&lt;br /&gt;
* [//www.mediawiki.org/wiki/Manual:Configuration_settings Configuration settings list]&lt;br /&gt;
* [//www.mediawiki.org/wiki/Manual:FAQ MediaWiki FAQ]&lt;br /&gt;
* [https://lists.wikimedia.org/mailman/listinfo/mediawiki-announce MediaWiki release mailing list]&lt;br /&gt;
* [//www.mediawiki.org/wiki/Localisation#Translation_resources Localise MediaWiki for your language]&lt;br /&gt;
&lt;br /&gt;
Consult the [//meta.wikimedia.org/wiki/Help:Contents User's Guide] for information on using the wiki software.&lt;/div&gt;</summary>
		<author><name>Tjmustard</name></author>
		
	</entry>
	<entry>
		<id>https://phyc-wiki.chem.oregonstate.edu/index.php?title=Public_Test_Page&amp;diff=84</id>
		<title>Public Test Page</title>
		<link rel="alternate" type="text/html" href="https://phyc-wiki.chem.oregonstate.edu/index.php?title=Public_Test_Page&amp;diff=84"/>
		<updated>2014-05-13T17:03:55Z</updated>

		<summary type="html">&lt;p&gt;Tjmustard: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Public test page&lt;br /&gt;
&lt;br /&gt;
[[Category:Public]]&lt;/div&gt;</summary>
		<author><name>Tjmustard</name></author>
		
	</entry>
	<entry>
		<id>https://phyc-wiki.chem.oregonstate.edu/index.php?title=Public_Test_Page&amp;diff=82</id>
		<title>Public Test Page</title>
		<link rel="alternate" type="text/html" href="https://phyc-wiki.chem.oregonstate.edu/index.php?title=Public_Test_Page&amp;diff=82"/>
		<updated>2014-05-13T17:03:28Z</updated>

		<summary type="html">&lt;p&gt;Tjmustard: Created page with &amp;quot;Public test page  Category:Publics&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Public test page&lt;br /&gt;
&lt;br /&gt;
[[Category:Publics]]&lt;/div&gt;</summary>
		<author><name>Tjmustard</name></author>
		
	</entry>
	<entry>
		<id>https://phyc-wiki.chem.oregonstate.edu/index.php?title=Main_Page&amp;diff=80</id>
		<title>Main Page</title>
		<link rel="alternate" type="text/html" href="https://phyc-wiki.chem.oregonstate.edu/index.php?title=Main_Page&amp;diff=80"/>
		<updated>2014-05-13T17:02:55Z</updated>

		<summary type="html">&lt;p&gt;Tjmustard: /* Public Resources */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
===General===&lt;br /&gt;
----&lt;br /&gt;
* [[Group News]]&lt;br /&gt;
&lt;br /&gt;
* [[About PHYC]]&lt;br /&gt;
&lt;br /&gt;
* [[General Research in the PHYC Group]]&lt;br /&gt;
&lt;br /&gt;
* [[Collaborators]]&lt;br /&gt;
&lt;br /&gt;
* [http://phyc.chem.oregonstate.edu/publications Publications]&lt;br /&gt;
&lt;br /&gt;
===Software Related===&lt;br /&gt;
----&lt;br /&gt;
* [[Apple Related]]&lt;br /&gt;
&lt;br /&gt;
* [[Linux Related]]&lt;br /&gt;
&lt;br /&gt;
* [[Text Editors]]&lt;br /&gt;
&lt;br /&gt;
* [[Computational Software Related]]&lt;br /&gt;
&lt;br /&gt;
* [[Computational Software Manuals]]&lt;br /&gt;
&lt;br /&gt;
* [[Ad Hoc Script Collection]]&lt;br /&gt;
&lt;br /&gt;
* [[Strange Error Messages]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Resources===&lt;br /&gt;
----&lt;br /&gt;
* [[Woodward]]&lt;br /&gt;
&lt;br /&gt;
* [[Fermi]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Programming===&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
* [[BASH]]&lt;br /&gt;
&lt;br /&gt;
* [[Python]]&lt;br /&gt;
&lt;br /&gt;
* [[C++]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Links===&lt;br /&gt;
----&lt;br /&gt;
* [[Chemistry Journals]]&lt;br /&gt;
&lt;br /&gt;
* [[Computational Chemistry]]&lt;br /&gt;
&lt;br /&gt;
* [[Organic Chemistry News, Highlights and Blogs]]&lt;br /&gt;
&lt;br /&gt;
* [[Other Links]]&lt;br /&gt;
&lt;br /&gt;
===Public Resources===&lt;br /&gt;
----&lt;br /&gt;
[[Public Test Page]]&lt;br /&gt;
&lt;br /&gt;
== Getting started ==&lt;br /&gt;
* [//www.mediawiki.org/wiki/Manual:Configuration_settings Configuration settings list]&lt;br /&gt;
* [//www.mediawiki.org/wiki/Manual:FAQ MediaWiki FAQ]&lt;br /&gt;
* [https://lists.wikimedia.org/mailman/listinfo/mediawiki-announce MediaWiki release mailing list]&lt;br /&gt;
* [//www.mediawiki.org/wiki/Localisation#Translation_resources Localise MediaWiki for your language]&lt;br /&gt;
&lt;br /&gt;
Consult the [//meta.wikimedia.org/wiki/Help:Contents User's Guide] for information on using the wiki software.&lt;/div&gt;</summary>
		<author><name>Tjmustard</name></author>
		
	</entry>
	<entry>
		<id>https://phyc-wiki.chem.oregonstate.edu/index.php?title=Public:Group_News&amp;diff=78</id>
		<title>Public:Group News</title>
		<link rel="alternate" type="text/html" href="https://phyc-wiki.chem.oregonstate.edu/index.php?title=Public:Group_News&amp;diff=78"/>
		<updated>2014-05-13T17:02:03Z</updated>

		<summary type="html">&lt;p&gt;Tjmustard: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==2011.08.15 - Cluster==&lt;br /&gt;
The test GPU node is tested with QM program! Whopping performance!!!&lt;br /&gt;
&lt;br /&gt;
==2011.06.15 - Cluster==&lt;br /&gt;
The test GPU node is constructed and tested with GROMACS.&lt;br /&gt;
&lt;br /&gt;
==2011.01.05 - Cluster==&lt;br /&gt;
The second generation expansion of the Woodward cluster just added, tripling our core count!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==2010.11.08 - Arrival==&lt;br /&gt;
Postdoc I-Ya Chang arrived from Taiwan!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==2010.11.04 - Software==&lt;br /&gt;
Q-Chem 3.2 license extended to 2011.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==2010.09.12 - Software==&lt;br /&gt;
OSU TRF funding for Gaussian09 and GaussView5 approved!&lt;br /&gt;
OSU TRF Funding for 3 more years of ChemDrawUltra approved!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==2010.07.23 - Cluster==&lt;br /&gt;
The Borg cluster goes up, thanks to TJ!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==2010.07.05 - Group member(s)==&lt;br /&gt;
TJ Mustard and George Burgess have joined the lab as graduate students!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==2010.05.15 - Software==&lt;br /&gt;
PHYC, Chemistry and Pharmacy agrees on a deal to pay for first year license of ChemDrawUltra for all of OSU!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==2010.02.05 - Group member(s)==&lt;br /&gt;
Nilobon Pattawong and Matthew Pierce has joined the lab as graduate student!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==2009.10.08 - Group member(s)==&lt;br /&gt;
Subham Mahaptra has joined the lab as joint graduate student with Professor Rich Carter!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==2009 09 27 - Software==&lt;br /&gt;
Openeye, VCONF, and Babel installed and configured on Woodward!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==2009 09 25 - Queue==&lt;br /&gt;
Parallel queues (SMP, MPI) implemented on Woodward!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==2009 09 24 - Software==&lt;br /&gt;
Gaussian, Q-Chem, NWChem, NAMD, and GROMACS installed and configured on Woodward!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==2009 09 22 - Cluster==&lt;br /&gt;
Cluster status now available online!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==2009 09 21 - Cluster==&lt;br /&gt;
The Woodward cluster has arrived! Many thanks to friends from Silicon Mechanics (Art Mann and Scott Humphreys).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==2009 08 15 - Coworker==&lt;br /&gt;
Dr. I-Ya Chang has decided to join the lab as postdoc!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==2009 05 13 - Awards==&lt;br /&gt;
PHYC wins the Boyer-AMGEN postdoctoral award!&lt;br /&gt;
&lt;br /&gt;
[[Category:Publics]]&lt;/div&gt;</summary>
		<author><name>Tjmustard</name></author>
		
	</entry>
	<entry>
		<id>https://phyc-wiki.chem.oregonstate.edu/index.php?title=Main_Page&amp;diff=76</id>
		<title>Main Page</title>
		<link rel="alternate" type="text/html" href="https://phyc-wiki.chem.oregonstate.edu/index.php?title=Main_Page&amp;diff=76"/>
		<updated>2014-05-13T17:00:53Z</updated>

		<summary type="html">&lt;p&gt;Tjmustard: /* Public Resources */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
===General===&lt;br /&gt;
----&lt;br /&gt;
* [[Group News]]&lt;br /&gt;
&lt;br /&gt;
* [[About PHYC]]&lt;br /&gt;
&lt;br /&gt;
* [[General Research in the PHYC Group]]&lt;br /&gt;
&lt;br /&gt;
* [[Collaborators]]&lt;br /&gt;
&lt;br /&gt;
* [http://phyc.chem.oregonstate.edu/publications Publications]&lt;br /&gt;
&lt;br /&gt;
===Software Related===&lt;br /&gt;
----&lt;br /&gt;
* [[Apple Related]]&lt;br /&gt;
&lt;br /&gt;
* [[Linux Related]]&lt;br /&gt;
&lt;br /&gt;
* [[Text Editors]]&lt;br /&gt;
&lt;br /&gt;
* [[Computational Software Related]]&lt;br /&gt;
&lt;br /&gt;
* [[Computational Software Manuals]]&lt;br /&gt;
&lt;br /&gt;
* [[Ad Hoc Script Collection]]&lt;br /&gt;
&lt;br /&gt;
* [[Strange Error Messages]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Resources===&lt;br /&gt;
----&lt;br /&gt;
* [[Woodward]]&lt;br /&gt;
&lt;br /&gt;
* [[Fermi]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Programming===&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
* [[BASH]]&lt;br /&gt;
&lt;br /&gt;
* [[Python]]&lt;br /&gt;
&lt;br /&gt;
* [[C++]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Links===&lt;br /&gt;
----&lt;br /&gt;
* [[Chemistry Journals]]&lt;br /&gt;
&lt;br /&gt;
* [[Computational Chemistry]]&lt;br /&gt;
&lt;br /&gt;
* [[Organic Chemistry News, Highlights and Blogs]]&lt;br /&gt;
&lt;br /&gt;
* [[Other Links]]&lt;br /&gt;
&lt;br /&gt;
===Public Resources===&lt;br /&gt;
----&lt;br /&gt;
[[Category:Publics|Test Page1]]&lt;br /&gt;
[[:Category:Publics|Test Page]]&lt;br /&gt;
&lt;br /&gt;
== Getting started ==&lt;br /&gt;
* [//www.mediawiki.org/wiki/Manual:Configuration_settings Configuration settings list]&lt;br /&gt;
* [//www.mediawiki.org/wiki/Manual:FAQ MediaWiki FAQ]&lt;br /&gt;
* [https://lists.wikimedia.org/mailman/listinfo/mediawiki-announce MediaWiki release mailing list]&lt;br /&gt;
* [//www.mediawiki.org/wiki/Localisation#Translation_resources Localise MediaWiki for your language]&lt;br /&gt;
&lt;br /&gt;
Consult the [//meta.wikimedia.org/wiki/Help:Contents User's Guide] for information on using the wiki software.&lt;/div&gt;</summary>
		<author><name>Tjmustard</name></author>
		
	</entry>
	<entry>
		<id>https://phyc-wiki.chem.oregonstate.edu/index.php?title=Main_Page&amp;diff=73</id>
		<title>Main Page</title>
		<link rel="alternate" type="text/html" href="https://phyc-wiki.chem.oregonstate.edu/index.php?title=Main_Page&amp;diff=73"/>
		<updated>2014-05-13T17:00:32Z</updated>

		<summary type="html">&lt;p&gt;Tjmustard: /* Public Resources */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
===General===&lt;br /&gt;
----&lt;br /&gt;
* [[Group News]]&lt;br /&gt;
&lt;br /&gt;
* [[About PHYC]]&lt;br /&gt;
&lt;br /&gt;
* [[General Research in the PHYC Group]]&lt;br /&gt;
&lt;br /&gt;
* [[Collaborators]]&lt;br /&gt;
&lt;br /&gt;
* [http://phyc.chem.oregonstate.edu/publications Publications]&lt;br /&gt;
&lt;br /&gt;
===Software Related===&lt;br /&gt;
----&lt;br /&gt;
* [[Apple Related]]&lt;br /&gt;
&lt;br /&gt;
* [[Linux Related]]&lt;br /&gt;
&lt;br /&gt;
* [[Text Editors]]&lt;br /&gt;
&lt;br /&gt;
* [[Computational Software Related]]&lt;br /&gt;
&lt;br /&gt;
* [[Computational Software Manuals]]&lt;br /&gt;
&lt;br /&gt;
* [[Ad Hoc Script Collection]]&lt;br /&gt;
&lt;br /&gt;
* [[Strange Error Messages]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Resources===&lt;br /&gt;
----&lt;br /&gt;
* [[Woodward]]&lt;br /&gt;
&lt;br /&gt;
* [[Fermi]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Programming===&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
* [[BASH]]&lt;br /&gt;
&lt;br /&gt;
* [[Python]]&lt;br /&gt;
&lt;br /&gt;
* [[C++]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Links===&lt;br /&gt;
----&lt;br /&gt;
* [[Chemistry Journals]]&lt;br /&gt;
&lt;br /&gt;
* [[Computational Chemistry]]&lt;br /&gt;
&lt;br /&gt;
* [[Organic Chemistry News, Highlights and Blogs]]&lt;br /&gt;
&lt;br /&gt;
* [[Other Links]]&lt;br /&gt;
&lt;br /&gt;
===Public Resources===&lt;br /&gt;
----&lt;br /&gt;
[[Category:Publics|Test Page]]&lt;br /&gt;
[[:Category:Publics|Test Page]]&lt;br /&gt;
&lt;br /&gt;
== Getting started ==&lt;br /&gt;
* [//www.mediawiki.org/wiki/Manual:Configuration_settings Configuration settings list]&lt;br /&gt;
* [//www.mediawiki.org/wiki/Manual:FAQ MediaWiki FAQ]&lt;br /&gt;
* [https://lists.wikimedia.org/mailman/listinfo/mediawiki-announce MediaWiki release mailing list]&lt;br /&gt;
* [//www.mediawiki.org/wiki/Localisation#Translation_resources Localise MediaWiki for your language]&lt;br /&gt;
&lt;br /&gt;
Consult the [//meta.wikimedia.org/wiki/Help:Contents User's Guide] for information on using the wiki software.&lt;/div&gt;</summary>
		<author><name>Tjmustard</name></author>
		
	</entry>
	<entry>
		<id>https://phyc-wiki.chem.oregonstate.edu/index.php?title=Category:Publics&amp;diff=71</id>
		<title>Category:Publics</title>
		<link rel="alternate" type="text/html" href="https://phyc-wiki.chem.oregonstate.edu/index.php?title=Category:Publics&amp;diff=71"/>
		<updated>2014-05-13T16:59:22Z</updated>

		<summary type="html">&lt;p&gt;Tjmustard: Created page with &amp;quot;This is a test page with some text on it.&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This is a test page with some text on it.&lt;/div&gt;</summary>
		<author><name>Tjmustard</name></author>
		
	</entry>
	<entry>
		<id>https://phyc-wiki.chem.oregonstate.edu/index.php?title=Main_Page&amp;diff=68</id>
		<title>Main Page</title>
		<link rel="alternate" type="text/html" href="https://phyc-wiki.chem.oregonstate.edu/index.php?title=Main_Page&amp;diff=68"/>
		<updated>2014-05-13T16:58:59Z</updated>

		<summary type="html">&lt;p&gt;Tjmustard: /* Public Resources */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
===General===&lt;br /&gt;
----&lt;br /&gt;
* [[Group News]]&lt;br /&gt;
&lt;br /&gt;
* [[About PHYC]]&lt;br /&gt;
&lt;br /&gt;
* [[General Research in the PHYC Group]]&lt;br /&gt;
&lt;br /&gt;
* [[Collaborators]]&lt;br /&gt;
&lt;br /&gt;
* [http://phyc.chem.oregonstate.edu/publications Publications]&lt;br /&gt;
&lt;br /&gt;
===Software Related===&lt;br /&gt;
----&lt;br /&gt;
* [[Apple Related]]&lt;br /&gt;
&lt;br /&gt;
* [[Linux Related]]&lt;br /&gt;
&lt;br /&gt;
* [[Text Editors]]&lt;br /&gt;
&lt;br /&gt;
* [[Computational Software Related]]&lt;br /&gt;
&lt;br /&gt;
* [[Computational Software Manuals]]&lt;br /&gt;
&lt;br /&gt;
* [[Ad Hoc Script Collection]]&lt;br /&gt;
&lt;br /&gt;
* [[Strange Error Messages]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Resources===&lt;br /&gt;
----&lt;br /&gt;
* [[Woodward]]&lt;br /&gt;
&lt;br /&gt;
* [[Fermi]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Programming===&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
* [[BASH]]&lt;br /&gt;
&lt;br /&gt;
* [[Python]]&lt;br /&gt;
&lt;br /&gt;
* [[C++]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Links===&lt;br /&gt;
----&lt;br /&gt;
* [[Chemistry Journals]]&lt;br /&gt;
&lt;br /&gt;
* [[Computational Chemistry]]&lt;br /&gt;
&lt;br /&gt;
* [[Organic Chemistry News, Highlights and Blogs]]&lt;br /&gt;
&lt;br /&gt;
* [[Other Links]]&lt;br /&gt;
&lt;br /&gt;
===Public Resources===&lt;br /&gt;
----&lt;br /&gt;
[[Publics:Test Page]]&lt;br /&gt;
[[:Category:Publics|Test Page]]&lt;br /&gt;
&lt;br /&gt;
== Getting started ==&lt;br /&gt;
* [//www.mediawiki.org/wiki/Manual:Configuration_settings Configuration settings list]&lt;br /&gt;
* [//www.mediawiki.org/wiki/Manual:FAQ MediaWiki FAQ]&lt;br /&gt;
* [https://lists.wikimedia.org/mailman/listinfo/mediawiki-announce MediaWiki release mailing list]&lt;br /&gt;
* [//www.mediawiki.org/wiki/Localisation#Translation_resources Localise MediaWiki for your language]&lt;br /&gt;
&lt;br /&gt;
Consult the [//meta.wikimedia.org/wiki/Help:Contents User's Guide] for information on using the wiki software.&lt;/div&gt;</summary>
		<author><name>Tjmustard</name></author>
		
	</entry>
	<entry>
		<id>https://phyc-wiki.chem.oregonstate.edu/index.php?title=Main_Page&amp;diff=66</id>
		<title>Main Page</title>
		<link rel="alternate" type="text/html" href="https://phyc-wiki.chem.oregonstate.edu/index.php?title=Main_Page&amp;diff=66"/>
		<updated>2014-05-13T16:58:23Z</updated>

		<summary type="html">&lt;p&gt;Tjmustard: /* Public Resources */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
===General===&lt;br /&gt;
----&lt;br /&gt;
* [[Group News]]&lt;br /&gt;
&lt;br /&gt;
* [[About PHYC]]&lt;br /&gt;
&lt;br /&gt;
* [[General Research in the PHYC Group]]&lt;br /&gt;
&lt;br /&gt;
* [[Collaborators]]&lt;br /&gt;
&lt;br /&gt;
* [http://phyc.chem.oregonstate.edu/publications Publications]&lt;br /&gt;
&lt;br /&gt;
===Software Related===&lt;br /&gt;
----&lt;br /&gt;
* [[Apple Related]]&lt;br /&gt;
&lt;br /&gt;
* [[Linux Related]]&lt;br /&gt;
&lt;br /&gt;
* [[Text Editors]]&lt;br /&gt;
&lt;br /&gt;
* [[Computational Software Related]]&lt;br /&gt;
&lt;br /&gt;
* [[Computational Software Manuals]]&lt;br /&gt;
&lt;br /&gt;
* [[Ad Hoc Script Collection]]&lt;br /&gt;
&lt;br /&gt;
* [[Strange Error Messages]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Resources===&lt;br /&gt;
----&lt;br /&gt;
* [[Woodward]]&lt;br /&gt;
&lt;br /&gt;
* [[Fermi]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Programming===&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
* [[BASH]]&lt;br /&gt;
&lt;br /&gt;
* [[Python]]&lt;br /&gt;
&lt;br /&gt;
* [[C++]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Links===&lt;br /&gt;
----&lt;br /&gt;
* [[Chemistry Journals]]&lt;br /&gt;
&lt;br /&gt;
* [[Computational Chemistry]]&lt;br /&gt;
&lt;br /&gt;
* [[Organic Chemistry News, Highlights and Blogs]]&lt;br /&gt;
&lt;br /&gt;
* [[Other Links]]&lt;br /&gt;
&lt;br /&gt;
===Public Resources===&lt;br /&gt;
----&lt;br /&gt;
[[Publics:Test Page]]&lt;br /&gt;
[[Category:Publics]]&lt;br /&gt;
&lt;br /&gt;
== Getting started ==&lt;br /&gt;
* [//www.mediawiki.org/wiki/Manual:Configuration_settings Configuration settings list]&lt;br /&gt;
* [//www.mediawiki.org/wiki/Manual:FAQ MediaWiki FAQ]&lt;br /&gt;
* [https://lists.wikimedia.org/mailman/listinfo/mediawiki-announce MediaWiki release mailing list]&lt;br /&gt;
* [//www.mediawiki.org/wiki/Localisation#Translation_resources Localise MediaWiki for your language]&lt;br /&gt;
&lt;br /&gt;
Consult the [//meta.wikimedia.org/wiki/Help:Contents User's Guide] for information on using the wiki software.&lt;/div&gt;</summary>
		<author><name>Tjmustard</name></author>
		
	</entry>
	<entry>
		<id>https://phyc-wiki.chem.oregonstate.edu/index.php?title=Main_Page&amp;diff=64</id>
		<title>Main Page</title>
		<link rel="alternate" type="text/html" href="https://phyc-wiki.chem.oregonstate.edu/index.php?title=Main_Page&amp;diff=64"/>
		<updated>2014-05-13T16:57:59Z</updated>

		<summary type="html">&lt;p&gt;Tjmustard: /* Public Resources */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
===General===&lt;br /&gt;
----&lt;br /&gt;
* [[Group News]]&lt;br /&gt;
&lt;br /&gt;
* [[About PHYC]]&lt;br /&gt;
&lt;br /&gt;
* [[General Research in the PHYC Group]]&lt;br /&gt;
&lt;br /&gt;
* [[Collaborators]]&lt;br /&gt;
&lt;br /&gt;
* [http://phyc.chem.oregonstate.edu/publications Publications]&lt;br /&gt;
&lt;br /&gt;
===Software Related===&lt;br /&gt;
----&lt;br /&gt;
* [[Apple Related]]&lt;br /&gt;
&lt;br /&gt;
* [[Linux Related]]&lt;br /&gt;
&lt;br /&gt;
* [[Text Editors]]&lt;br /&gt;
&lt;br /&gt;
* [[Computational Software Related]]&lt;br /&gt;
&lt;br /&gt;
* [[Computational Software Manuals]]&lt;br /&gt;
&lt;br /&gt;
* [[Ad Hoc Script Collection]]&lt;br /&gt;
&lt;br /&gt;
* [[Strange Error Messages]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Resources===&lt;br /&gt;
----&lt;br /&gt;
* [[Woodward]]&lt;br /&gt;
&lt;br /&gt;
* [[Fermi]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Programming===&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
* [[BASH]]&lt;br /&gt;
&lt;br /&gt;
* [[Python]]&lt;br /&gt;
&lt;br /&gt;
* [[C++]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Links===&lt;br /&gt;
----&lt;br /&gt;
* [[Chemistry Journals]]&lt;br /&gt;
&lt;br /&gt;
* [[Computational Chemistry]]&lt;br /&gt;
&lt;br /&gt;
* [[Organic Chemistry News, Highlights and Blogs]]&lt;br /&gt;
&lt;br /&gt;
* [[Other Links]]&lt;br /&gt;
&lt;br /&gt;
===Public Resources===&lt;br /&gt;
----&lt;br /&gt;
[[Publics:Test Page]]&lt;br /&gt;
[[Category:Publics|Test Page]]&lt;br /&gt;
&lt;br /&gt;
== Getting started ==&lt;br /&gt;
* [//www.mediawiki.org/wiki/Manual:Configuration_settings Configuration settings list]&lt;br /&gt;
* [//www.mediawiki.org/wiki/Manual:FAQ MediaWiki FAQ]&lt;br /&gt;
* [https://lists.wikimedia.org/mailman/listinfo/mediawiki-announce MediaWiki release mailing list]&lt;br /&gt;
* [//www.mediawiki.org/wiki/Localisation#Translation_resources Localise MediaWiki for your language]&lt;br /&gt;
&lt;br /&gt;
Consult the [//meta.wikimedia.org/wiki/Help:Contents User's Guide] for information on using the wiki software.&lt;/div&gt;</summary>
		<author><name>Tjmustard</name></author>
		
	</entry>
	<entry>
		<id>https://phyc-wiki.chem.oregonstate.edu/index.php?title=Public:Test_Page&amp;diff=63</id>
		<title>Public:Test Page</title>
		<link rel="alternate" type="text/html" href="https://phyc-wiki.chem.oregonstate.edu/index.php?title=Public:Test_Page&amp;diff=63"/>
		<updated>2014-05-13T16:52:44Z</updated>

		<summary type="html">&lt;p&gt;Tjmustard: Created page with &amp;quot;This is a completely public page.  For testing purposes.&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This is a completely public page.&lt;br /&gt;
&lt;br /&gt;
For testing purposes.&lt;/div&gt;</summary>
		<author><name>Tjmustard</name></author>
		
	</entry>
	<entry>
		<id>https://phyc-wiki.chem.oregonstate.edu/index.php?title=Main_Page&amp;diff=61</id>
		<title>Main Page</title>
		<link rel="alternate" type="text/html" href="https://phyc-wiki.chem.oregonstate.edu/index.php?title=Main_Page&amp;diff=61"/>
		<updated>2014-05-13T16:52:20Z</updated>

		<summary type="html">&lt;p&gt;Tjmustard: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
===General===&lt;br /&gt;
----&lt;br /&gt;
* [[Group News]]&lt;br /&gt;
&lt;br /&gt;
* [[About PHYC]]&lt;br /&gt;
&lt;br /&gt;
* [[General Research in the PHYC Group]]&lt;br /&gt;
&lt;br /&gt;
* [[Collaborators]]&lt;br /&gt;
&lt;br /&gt;
* [http://phyc.chem.oregonstate.edu/publications Publications]&lt;br /&gt;
&lt;br /&gt;
===Software Related===&lt;br /&gt;
----&lt;br /&gt;
* [[Apple Related]]&lt;br /&gt;
&lt;br /&gt;
* [[Linux Related]]&lt;br /&gt;
&lt;br /&gt;
* [[Text Editors]]&lt;br /&gt;
&lt;br /&gt;
* [[Computational Software Related]]&lt;br /&gt;
&lt;br /&gt;
* [[Computational Software Manuals]]&lt;br /&gt;
&lt;br /&gt;
* [[Ad Hoc Script Collection]]&lt;br /&gt;
&lt;br /&gt;
* [[Strange Error Messages]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Resources===&lt;br /&gt;
----&lt;br /&gt;
* [[Woodward]]&lt;br /&gt;
&lt;br /&gt;
* [[Fermi]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Programming===&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
* [[BASH]]&lt;br /&gt;
&lt;br /&gt;
* [[Python]]&lt;br /&gt;
&lt;br /&gt;
* [[C++]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Links===&lt;br /&gt;
----&lt;br /&gt;
* [[Chemistry Journals]]&lt;br /&gt;
&lt;br /&gt;
* [[Computational Chemistry]]&lt;br /&gt;
&lt;br /&gt;
* [[Organic Chemistry News, Highlights and Blogs]]&lt;br /&gt;
&lt;br /&gt;
* [[Other Links]]&lt;br /&gt;
&lt;br /&gt;
===Public Resources===&lt;br /&gt;
----&lt;br /&gt;
[[Publics:Test Page]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Getting started ==&lt;br /&gt;
* [//www.mediawiki.org/wiki/Manual:Configuration_settings Configuration settings list]&lt;br /&gt;
* [//www.mediawiki.org/wiki/Manual:FAQ MediaWiki FAQ]&lt;br /&gt;
* [https://lists.wikimedia.org/mailman/listinfo/mediawiki-announce MediaWiki release mailing list]&lt;br /&gt;
* [//www.mediawiki.org/wiki/Localisation#Translation_resources Localise MediaWiki for your language]&lt;br /&gt;
&lt;br /&gt;
Consult the [//meta.wikimedia.org/wiki/Help:Contents User's Guide] for information on using the wiki software.&lt;/div&gt;</summary>
		<author><name>Tjmustard</name></author>
		
	</entry>
	<entry>
		<id>https://phyc-wiki.chem.oregonstate.edu/index.php?title=Main_Page&amp;diff=60</id>
		<title>Main Page</title>
		<link rel="alternate" type="text/html" href="https://phyc-wiki.chem.oregonstate.edu/index.php?title=Main_Page&amp;diff=60"/>
		<updated>2014-05-13T16:51:19Z</updated>

		<summary type="html">&lt;p&gt;Tjmustard: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
===General===&lt;br /&gt;
----&lt;br /&gt;
* [[Group News]]&lt;br /&gt;
&lt;br /&gt;
* [[About PHYC]]&lt;br /&gt;
&lt;br /&gt;
* [[General Research in the PHYC Group]]&lt;br /&gt;
&lt;br /&gt;
* [[Collaborators]]&lt;br /&gt;
&lt;br /&gt;
* [http://phyc.chem.oregonstate.edu/publications Publications]&lt;br /&gt;
&lt;br /&gt;
===Software Related===&lt;br /&gt;
----&lt;br /&gt;
* [[Apple Related]]&lt;br /&gt;
&lt;br /&gt;
* [[Linux Related]]&lt;br /&gt;
&lt;br /&gt;
* [[Text Editors]]&lt;br /&gt;
&lt;br /&gt;
* [[Computational Software Related]]&lt;br /&gt;
&lt;br /&gt;
* [[Computational Software Manuals]]&lt;br /&gt;
&lt;br /&gt;
* [[Ad Hoc Script Collection]]&lt;br /&gt;
&lt;br /&gt;
* [[Strange Error Messages]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Resources===&lt;br /&gt;
----&lt;br /&gt;
* [[Woodward]]&lt;br /&gt;
&lt;br /&gt;
* [[Fermi]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Programming===&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
* [[BASH]]&lt;br /&gt;
&lt;br /&gt;
* [[Python]]&lt;br /&gt;
&lt;br /&gt;
* [[C++]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Links===&lt;br /&gt;
----&lt;br /&gt;
* [[Chemistry Journals]]&lt;br /&gt;
&lt;br /&gt;
* [[Computational Chemistry]]&lt;br /&gt;
&lt;br /&gt;
* [[Organic Chemistry News, Highlights and Blogs]]&lt;br /&gt;
&lt;br /&gt;
* [[Other Links]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Getting started ==&lt;br /&gt;
* [//www.mediawiki.org/wiki/Manual:Configuration_settings Configuration settings list]&lt;br /&gt;
* [//www.mediawiki.org/wiki/Manual:FAQ MediaWiki FAQ]&lt;br /&gt;
* [https://lists.wikimedia.org/mailman/listinfo/mediawiki-announce MediaWiki release mailing list]&lt;br /&gt;
* [//www.mediawiki.org/wiki/Localisation#Translation_resources Localise MediaWiki for your language]&lt;br /&gt;
&lt;br /&gt;
Consult the [//meta.wikimedia.org/wiki/Help:Contents User's Guide] for information on using the wiki software.&lt;/div&gt;</summary>
		<author><name>Tjmustard</name></author>
		
	</entry>
	<entry>
		<id>https://phyc-wiki.chem.oregonstate.edu/index.php?title=Main_Page&amp;diff=58</id>
		<title>Main Page</title>
		<link rel="alternate" type="text/html" href="https://phyc-wiki.chem.oregonstate.edu/index.php?title=Main_Page&amp;diff=58"/>
		<updated>2014-05-13T16:51:00Z</updated>

		<summary type="html">&lt;p&gt;Tjmustard: /* General */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
[[Publics:Public Test Page]]&lt;br /&gt;
&lt;br /&gt;
===General===&lt;br /&gt;
----&lt;br /&gt;
* [[Group News]]&lt;br /&gt;
&lt;br /&gt;
* [[About PHYC]]&lt;br /&gt;
&lt;br /&gt;
* [[General Research in the PHYC Group]]&lt;br /&gt;
&lt;br /&gt;
* [[Collaborators]]&lt;br /&gt;
&lt;br /&gt;
* [http://phyc.chem.oregonstate.edu/publications Publications]&lt;br /&gt;
&lt;br /&gt;
===Software Related===&lt;br /&gt;
----&lt;br /&gt;
* [[Apple Related]]&lt;br /&gt;
&lt;br /&gt;
* [[Linux Related]]&lt;br /&gt;
&lt;br /&gt;
* [[Text Editors]]&lt;br /&gt;
&lt;br /&gt;
* [[Computational Software Related]]&lt;br /&gt;
&lt;br /&gt;
* [[Computational Software Manuals]]&lt;br /&gt;
&lt;br /&gt;
* [[Ad Hoc Script Collection]]&lt;br /&gt;
&lt;br /&gt;
* [[Strange Error Messages]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Resources===&lt;br /&gt;
----&lt;br /&gt;
* [[Woodward]]&lt;br /&gt;
&lt;br /&gt;
* [[Fermi]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Programming===&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
* [[BASH]]&lt;br /&gt;
&lt;br /&gt;
* [[Python]]&lt;br /&gt;
&lt;br /&gt;
* [[C++]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Links===&lt;br /&gt;
----&lt;br /&gt;
* [[Chemistry Journals]]&lt;br /&gt;
&lt;br /&gt;
* [[Computational Chemistry]]&lt;br /&gt;
&lt;br /&gt;
* [[Organic Chemistry News, Highlights and Blogs]]&lt;br /&gt;
&lt;br /&gt;
* [[Other Links]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Getting started ==&lt;br /&gt;
* [//www.mediawiki.org/wiki/Manual:Configuration_settings Configuration settings list]&lt;br /&gt;
* [//www.mediawiki.org/wiki/Manual:FAQ MediaWiki FAQ]&lt;br /&gt;
* [https://lists.wikimedia.org/mailman/listinfo/mediawiki-announce MediaWiki release mailing list]&lt;br /&gt;
* [//www.mediawiki.org/wiki/Localisation#Translation_resources Localise MediaWiki for your language]&lt;br /&gt;
&lt;br /&gt;
Consult the [//meta.wikimedia.org/wiki/Help:Contents User's Guide] for information on using the wiki software.&lt;/div&gt;</summary>
		<author><name>Tjmustard</name></author>
		
	</entry>
	<entry>
		<id>https://phyc-wiki.chem.oregonstate.edu/index.php?title=Main_Page&amp;diff=55</id>
		<title>Main Page</title>
		<link rel="alternate" type="text/html" href="https://phyc-wiki.chem.oregonstate.edu/index.php?title=Main_Page&amp;diff=55"/>
		<updated>2014-05-13T16:50:10Z</updated>

		<summary type="html">&lt;p&gt;Tjmustard: /* General */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
[[Publics:Public Test Page]]&lt;br /&gt;
&lt;br /&gt;
===General===&lt;br /&gt;
----&lt;br /&gt;
* [[Publics:Group News]]&lt;br /&gt;
&lt;br /&gt;
* [[About PHYC]]&lt;br /&gt;
&lt;br /&gt;
* [[General Research in the PHYC Group]]&lt;br /&gt;
&lt;br /&gt;
* [[Collaborators]]&lt;br /&gt;
&lt;br /&gt;
* [http://phyc.chem.oregonstate.edu/publications Publications]&lt;br /&gt;
&lt;br /&gt;
===Software Related===&lt;br /&gt;
----&lt;br /&gt;
* [[Apple Related]]&lt;br /&gt;
&lt;br /&gt;
* [[Linux Related]]&lt;br /&gt;
&lt;br /&gt;
* [[Text Editors]]&lt;br /&gt;
&lt;br /&gt;
* [[Computational Software Related]]&lt;br /&gt;
&lt;br /&gt;
* [[Computational Software Manuals]]&lt;br /&gt;
&lt;br /&gt;
* [[Ad Hoc Script Collection]]&lt;br /&gt;
&lt;br /&gt;
* [[Strange Error Messages]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Resources===&lt;br /&gt;
----&lt;br /&gt;
* [[Woodward]]&lt;br /&gt;
&lt;br /&gt;
* [[Fermi]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Programming===&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
* [[BASH]]&lt;br /&gt;
&lt;br /&gt;
* [[Python]]&lt;br /&gt;
&lt;br /&gt;
* [[C++]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Links===&lt;br /&gt;
----&lt;br /&gt;
* [[Chemistry Journals]]&lt;br /&gt;
&lt;br /&gt;
* [[Computational Chemistry]]&lt;br /&gt;
&lt;br /&gt;
* [[Organic Chemistry News, Highlights and Blogs]]&lt;br /&gt;
&lt;br /&gt;
* [[Other Links]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Getting started ==&lt;br /&gt;
* [//www.mediawiki.org/wiki/Manual:Configuration_settings Configuration settings list]&lt;br /&gt;
* [//www.mediawiki.org/wiki/Manual:FAQ MediaWiki FAQ]&lt;br /&gt;
* [https://lists.wikimedia.org/mailman/listinfo/mediawiki-announce MediaWiki release mailing list]&lt;br /&gt;
* [//www.mediawiki.org/wiki/Localisation#Translation_resources Localise MediaWiki for your language]&lt;br /&gt;
&lt;br /&gt;
Consult the [//meta.wikimedia.org/wiki/Help:Contents User's Guide] for information on using the wiki software.&lt;/div&gt;</summary>
		<author><name>Tjmustard</name></author>
		
	</entry>
	<entry>
		<id>https://phyc-wiki.chem.oregonstate.edu/index.php?title=Main_Page&amp;diff=52</id>
		<title>Main Page</title>
		<link rel="alternate" type="text/html" href="https://phyc-wiki.chem.oregonstate.edu/index.php?title=Main_Page&amp;diff=52"/>
		<updated>2014-05-13T16:49:02Z</updated>

		<summary type="html">&lt;p&gt;Tjmustard: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
[[Publics:Public Test Page]]&lt;br /&gt;
&lt;br /&gt;
===General===&lt;br /&gt;
----&lt;br /&gt;
* [[Group News]]&lt;br /&gt;
&lt;br /&gt;
* [[About PHYC]]&lt;br /&gt;
&lt;br /&gt;
* [[General Research in the PHYC Group]]&lt;br /&gt;
&lt;br /&gt;
* [[Collaborators]]&lt;br /&gt;
&lt;br /&gt;
* [http://phyc.chem.oregonstate.edu/publications Publications]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Software Related===&lt;br /&gt;
----&lt;br /&gt;
* [[Apple Related]]&lt;br /&gt;
&lt;br /&gt;
* [[Linux Related]]&lt;br /&gt;
&lt;br /&gt;
* [[Text Editors]]&lt;br /&gt;
&lt;br /&gt;
* [[Computational Software Related]]&lt;br /&gt;
&lt;br /&gt;
* [[Computational Software Manuals]]&lt;br /&gt;
&lt;br /&gt;
* [[Ad Hoc Script Collection]]&lt;br /&gt;
&lt;br /&gt;
* [[Strange Error Messages]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Resources===&lt;br /&gt;
----&lt;br /&gt;
* [[Woodward]]&lt;br /&gt;
&lt;br /&gt;
* [[Fermi]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Programming===&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
* [[BASH]]&lt;br /&gt;
&lt;br /&gt;
* [[Python]]&lt;br /&gt;
&lt;br /&gt;
* [[C++]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Links===&lt;br /&gt;
----&lt;br /&gt;
* [[Chemistry Journals]]&lt;br /&gt;
&lt;br /&gt;
* [[Computational Chemistry]]&lt;br /&gt;
&lt;br /&gt;
* [[Organic Chemistry News, Highlights and Blogs]]&lt;br /&gt;
&lt;br /&gt;
* [[Other Links]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Getting started ==&lt;br /&gt;
* [//www.mediawiki.org/wiki/Manual:Configuration_settings Configuration settings list]&lt;br /&gt;
* [//www.mediawiki.org/wiki/Manual:FAQ MediaWiki FAQ]&lt;br /&gt;
* [https://lists.wikimedia.org/mailman/listinfo/mediawiki-announce MediaWiki release mailing list]&lt;br /&gt;
* [//www.mediawiki.org/wiki/Localisation#Translation_resources Localise MediaWiki for your language]&lt;br /&gt;
&lt;br /&gt;
Consult the [//meta.wikimedia.org/wiki/Help:Contents User's Guide] for information on using the wiki software.&lt;/div&gt;</summary>
		<author><name>Tjmustard</name></author>
		
	</entry>
	<entry>
		<id>https://phyc-wiki.chem.oregonstate.edu/index.php?title=Main_Page&amp;diff=44</id>
		<title>Main Page</title>
		<link rel="alternate" type="text/html" href="https://phyc-wiki.chem.oregonstate.edu/index.php?title=Main_Page&amp;diff=44"/>
		<updated>2014-04-25T15:16:06Z</updated>

		<summary type="html">&lt;p&gt;Tjmustard: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
[[Public:Public Test Page]]&lt;br /&gt;
&lt;br /&gt;
===General===&lt;br /&gt;
----&lt;br /&gt;
* [[Group News]]&lt;br /&gt;
&lt;br /&gt;
* [[About PHYC]]&lt;br /&gt;
&lt;br /&gt;
* [[General Research in the PHYC Group]]&lt;br /&gt;
&lt;br /&gt;
* [[Collaborators]]&lt;br /&gt;
&lt;br /&gt;
* [http://phyc.chem.oregonstate.edu/publications Publications]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Software Related===&lt;br /&gt;
----&lt;br /&gt;
* [[Apple Related]]&lt;br /&gt;
&lt;br /&gt;
* [[Linux Related]]&lt;br /&gt;
&lt;br /&gt;
* [[Text Editors]]&lt;br /&gt;
&lt;br /&gt;
* [[Computational Software Related]]&lt;br /&gt;
&lt;br /&gt;
* [[Computational Software Manuals]]&lt;br /&gt;
&lt;br /&gt;
* [[Ad Hoc Script Collection]]&lt;br /&gt;
&lt;br /&gt;
* [[Strange Error Messages]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Resources===&lt;br /&gt;
----&lt;br /&gt;
* [[Woodward]]&lt;br /&gt;
&lt;br /&gt;
* [[Fermi]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Programming===&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
* [[BASH]]&lt;br /&gt;
&lt;br /&gt;
* [[Python]]&lt;br /&gt;
&lt;br /&gt;
* [[C++]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Links===&lt;br /&gt;
----&lt;br /&gt;
* [[Chemistry Journals]]&lt;br /&gt;
&lt;br /&gt;
* [[Computational Chemistry]]&lt;br /&gt;
&lt;br /&gt;
* [[Organic Chemistry News, Highlights and Blogs]]&lt;br /&gt;
&lt;br /&gt;
* [[Other Links]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Getting started ==&lt;br /&gt;
* [//www.mediawiki.org/wiki/Manual:Configuration_settings Configuration settings list]&lt;br /&gt;
* [//www.mediawiki.org/wiki/Manual:FAQ MediaWiki FAQ]&lt;br /&gt;
* [https://lists.wikimedia.org/mailman/listinfo/mediawiki-announce MediaWiki release mailing list]&lt;br /&gt;
* [//www.mediawiki.org/wiki/Localisation#Translation_resources Localise MediaWiki for your language]&lt;br /&gt;
&lt;br /&gt;
Consult the [//meta.wikimedia.org/wiki/Help:Contents User's Guide] for information on using the wiki software.&lt;/div&gt;</summary>
		<author><name>Tjmustard</name></author>
		
	</entry>
	<entry>
		<id>https://phyc-wiki.chem.oregonstate.edu/index.php?title=Main_Page&amp;diff=39</id>
		<title>Main Page</title>
		<link rel="alternate" type="text/html" href="https://phyc-wiki.chem.oregonstate.edu/index.php?title=Main_Page&amp;diff=39"/>
		<updated>2014-04-25T15:14:48Z</updated>

		<summary type="html">&lt;p&gt;Tjmustard: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
[[Private:Public Test Page]]&lt;br /&gt;
&lt;br /&gt;
===General===&lt;br /&gt;
----&lt;br /&gt;
* [[Group News]]&lt;br /&gt;
&lt;br /&gt;
* [[About PHYC]]&lt;br /&gt;
&lt;br /&gt;
* [[General Research in the PHYC Group]]&lt;br /&gt;
&lt;br /&gt;
* [[Collaborators]]&lt;br /&gt;
&lt;br /&gt;
* [http://phyc.chem.oregonstate.edu/publications Publications]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Software Related===&lt;br /&gt;
----&lt;br /&gt;
* [[Apple Related]]&lt;br /&gt;
&lt;br /&gt;
* [[Linux Related]]&lt;br /&gt;
&lt;br /&gt;
* [[Text Editors]]&lt;br /&gt;
&lt;br /&gt;
* [[Computational Software Related]]&lt;br /&gt;
&lt;br /&gt;
* [[Computational Software Manuals]]&lt;br /&gt;
&lt;br /&gt;
* [[Ad Hoc Script Collection]]&lt;br /&gt;
&lt;br /&gt;
* [[Strange Error Messages]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Resources===&lt;br /&gt;
----&lt;br /&gt;
* [[Woodward]]&lt;br /&gt;
&lt;br /&gt;
* [[Fermi]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Programming===&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
* [[BASH]]&lt;br /&gt;
&lt;br /&gt;
* [[Python]]&lt;br /&gt;
&lt;br /&gt;
* [[C++]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Links===&lt;br /&gt;
----&lt;br /&gt;
* [[Chemistry Journals]]&lt;br /&gt;
&lt;br /&gt;
* [[Computational Chemistry]]&lt;br /&gt;
&lt;br /&gt;
* [[Organic Chemistry News, Highlights and Blogs]]&lt;br /&gt;
&lt;br /&gt;
* [[Other Links]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Getting started ==&lt;br /&gt;
* [//www.mediawiki.org/wiki/Manual:Configuration_settings Configuration settings list]&lt;br /&gt;
* [//www.mediawiki.org/wiki/Manual:FAQ MediaWiki FAQ]&lt;br /&gt;
* [https://lists.wikimedia.org/mailman/listinfo/mediawiki-announce MediaWiki release mailing list]&lt;br /&gt;
* [//www.mediawiki.org/wiki/Localisation#Translation_resources Localise MediaWiki for your language]&lt;br /&gt;
&lt;br /&gt;
Consult the [//meta.wikimedia.org/wiki/Help:Contents User's Guide] for information on using the wiki software.&lt;/div&gt;</summary>
		<author><name>Tjmustard</name></author>
		
	</entry>
	<entry>
		<id>https://phyc-wiki.chem.oregonstate.edu/index.php?title=Main_Page&amp;diff=38</id>
		<title>Main Page</title>
		<link rel="alternate" type="text/html" href="https://phyc-wiki.chem.oregonstate.edu/index.php?title=Main_Page&amp;diff=38"/>
		<updated>2014-04-25T15:13:51Z</updated>

		<summary type="html">&lt;p&gt;Tjmustard: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
[[Public:Public Test Page]]&lt;br /&gt;
&lt;br /&gt;
===General===&lt;br /&gt;
----&lt;br /&gt;
* [[Group News]]&lt;br /&gt;
&lt;br /&gt;
* [[About PHYC]]&lt;br /&gt;
&lt;br /&gt;
* [[General Research in the PHYC Group]]&lt;br /&gt;
&lt;br /&gt;
* [[Collaborators]]&lt;br /&gt;
&lt;br /&gt;
* [http://phyc.chem.oregonstate.edu/publications Publications]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Software Related===&lt;br /&gt;
----&lt;br /&gt;
* [[Apple Related]]&lt;br /&gt;
&lt;br /&gt;
* [[Linux Related]]&lt;br /&gt;
&lt;br /&gt;
* [[Text Editors]]&lt;br /&gt;
&lt;br /&gt;
* [[Computational Software Related]]&lt;br /&gt;
&lt;br /&gt;
* [[Computational Software Manuals]]&lt;br /&gt;
&lt;br /&gt;
* [[Ad Hoc Script Collection]]&lt;br /&gt;
&lt;br /&gt;
* [[Strange Error Messages]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Resources===&lt;br /&gt;
----&lt;br /&gt;
* [[Woodward]]&lt;br /&gt;
&lt;br /&gt;
* [[Fermi]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Programming===&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
* [[BASH]]&lt;br /&gt;
&lt;br /&gt;
* [[Python]]&lt;br /&gt;
&lt;br /&gt;
* [[C++]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Links===&lt;br /&gt;
----&lt;br /&gt;
* [[Chemistry Journals]]&lt;br /&gt;
&lt;br /&gt;
* [[Computational Chemistry]]&lt;br /&gt;
&lt;br /&gt;
* [[Organic Chemistry News, Highlights and Blogs]]&lt;br /&gt;
&lt;br /&gt;
* [[Other Links]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Getting started ==&lt;br /&gt;
* [//www.mediawiki.org/wiki/Manual:Configuration_settings Configuration settings list]&lt;br /&gt;
* [//www.mediawiki.org/wiki/Manual:FAQ MediaWiki FAQ]&lt;br /&gt;
* [https://lists.wikimedia.org/mailman/listinfo/mediawiki-announce MediaWiki release mailing list]&lt;br /&gt;
* [//www.mediawiki.org/wiki/Localisation#Translation_resources Localise MediaWiki for your language]&lt;br /&gt;
&lt;br /&gt;
Consult the [//meta.wikimedia.org/wiki/Help:Contents User's Guide] for information on using the wiki software.&lt;/div&gt;</summary>
		<author><name>Tjmustard</name></author>
		
	</entry>
	<entry>
		<id>https://phyc-wiki.chem.oregonstate.edu/index.php?title=User:Public_Test_Page&amp;diff=36</id>
		<title>User:Public Test Page</title>
		<link rel="alternate" type="text/html" href="https://phyc-wiki.chem.oregonstate.edu/index.php?title=User:Public_Test_Page&amp;diff=36"/>
		<updated>2014-04-25T15:13:15Z</updated>

		<summary type="html">&lt;p&gt;Tjmustard: Created page with &amp;quot;test page&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;test page&lt;/div&gt;</summary>
		<author><name>Tjmustard</name></author>
		
	</entry>
	<entry>
		<id>https://phyc-wiki.chem.oregonstate.edu/index.php?title=Main_Page&amp;diff=33</id>
		<title>Main Page</title>
		<link rel="alternate" type="text/html" href="https://phyc-wiki.chem.oregonstate.edu/index.php?title=Main_Page&amp;diff=33"/>
		<updated>2014-04-25T15:12:54Z</updated>

		<summary type="html">&lt;p&gt;Tjmustard: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
[[User:Public Test Page]]&lt;br /&gt;
&lt;br /&gt;
===General===&lt;br /&gt;
----&lt;br /&gt;
* [[Group News]]&lt;br /&gt;
&lt;br /&gt;
* [[About PHYC]]&lt;br /&gt;
&lt;br /&gt;
* [[General Research in the PHYC Group]]&lt;br /&gt;
&lt;br /&gt;
* [[Collaborators]]&lt;br /&gt;
&lt;br /&gt;
* [http://phyc.chem.oregonstate.edu/publications Publications]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Software Related===&lt;br /&gt;
----&lt;br /&gt;
* [[Apple Related]]&lt;br /&gt;
&lt;br /&gt;
* [[Linux Related]]&lt;br /&gt;
&lt;br /&gt;
* [[Text Editors]]&lt;br /&gt;
&lt;br /&gt;
* [[Computational Software Related]]&lt;br /&gt;
&lt;br /&gt;
* [[Computational Software Manuals]]&lt;br /&gt;
&lt;br /&gt;
* [[Ad Hoc Script Collection]]&lt;br /&gt;
&lt;br /&gt;
* [[Strange Error Messages]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Resources===&lt;br /&gt;
----&lt;br /&gt;
* [[Woodward]]&lt;br /&gt;
&lt;br /&gt;
* [[Fermi]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Programming===&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
* [[BASH]]&lt;br /&gt;
&lt;br /&gt;
* [[Python]]&lt;br /&gt;
&lt;br /&gt;
* [[C++]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Links===&lt;br /&gt;
----&lt;br /&gt;
* [[Chemistry Journals]]&lt;br /&gt;
&lt;br /&gt;
* [[Computational Chemistry]]&lt;br /&gt;
&lt;br /&gt;
* [[Organic Chemistry News, Highlights and Blogs]]&lt;br /&gt;
&lt;br /&gt;
* [[Other Links]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Getting started ==&lt;br /&gt;
* [//www.mediawiki.org/wiki/Manual:Configuration_settings Configuration settings list]&lt;br /&gt;
* [//www.mediawiki.org/wiki/Manual:FAQ MediaWiki FAQ]&lt;br /&gt;
* [https://lists.wikimedia.org/mailman/listinfo/mediawiki-announce MediaWiki release mailing list]&lt;br /&gt;
* [//www.mediawiki.org/wiki/Localisation#Translation_resources Localise MediaWiki for your language]&lt;br /&gt;
&lt;br /&gt;
Consult the [//meta.wikimedia.org/wiki/Help:Contents User's Guide] for information on using the wiki software.&lt;/div&gt;</summary>
		<author><name>Tjmustard</name></author>
		
	</entry>
	<entry>
		<id>https://phyc-wiki.chem.oregonstate.edu/index.php?title=Main_Page&amp;diff=30</id>
		<title>Main Page</title>
		<link rel="alternate" type="text/html" href="https://phyc-wiki.chem.oregonstate.edu/index.php?title=Main_Page&amp;diff=30"/>
		<updated>2014-04-25T15:11:44Z</updated>

		<summary type="html">&lt;p&gt;Tjmustard: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
[[Help:Public Test Page]]&lt;br /&gt;
&lt;br /&gt;
===General===&lt;br /&gt;
----&lt;br /&gt;
* [[Group News]]&lt;br /&gt;
&lt;br /&gt;
* [[About PHYC]]&lt;br /&gt;
&lt;br /&gt;
* [[General Research in the PHYC Group]]&lt;br /&gt;
&lt;br /&gt;
* [[Collaborators]]&lt;br /&gt;
&lt;br /&gt;
* [http://phyc.chem.oregonstate.edu/publications Publications]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Software Related===&lt;br /&gt;
----&lt;br /&gt;
* [[Apple Related]]&lt;br /&gt;
&lt;br /&gt;
* [[Linux Related]]&lt;br /&gt;
&lt;br /&gt;
* [[Text Editors]]&lt;br /&gt;
&lt;br /&gt;
* [[Computational Software Related]]&lt;br /&gt;
&lt;br /&gt;
* [[Computational Software Manuals]]&lt;br /&gt;
&lt;br /&gt;
* [[Ad Hoc Script Collection]]&lt;br /&gt;
&lt;br /&gt;
* [[Strange Error Messages]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Resources===&lt;br /&gt;
----&lt;br /&gt;
* [[Woodward]]&lt;br /&gt;
&lt;br /&gt;
* [[Fermi]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Programming===&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
* [[BASH]]&lt;br /&gt;
&lt;br /&gt;
* [[Python]]&lt;br /&gt;
&lt;br /&gt;
* [[C++]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Links===&lt;br /&gt;
----&lt;br /&gt;
* [[Chemistry Journals]]&lt;br /&gt;
&lt;br /&gt;
* [[Computational Chemistry]]&lt;br /&gt;
&lt;br /&gt;
* [[Organic Chemistry News, Highlights and Blogs]]&lt;br /&gt;
&lt;br /&gt;
* [[Other Links]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Getting started ==&lt;br /&gt;
* [//www.mediawiki.org/wiki/Manual:Configuration_settings Configuration settings list]&lt;br /&gt;
* [//www.mediawiki.org/wiki/Manual:FAQ MediaWiki FAQ]&lt;br /&gt;
* [https://lists.wikimedia.org/mailman/listinfo/mediawiki-announce MediaWiki release mailing list]&lt;br /&gt;
* [//www.mediawiki.org/wiki/Localisation#Translation_resources Localise MediaWiki for your language]&lt;br /&gt;
&lt;br /&gt;
Consult the [//meta.wikimedia.org/wiki/Help:Contents User's Guide] for information on using the wiki software.&lt;/div&gt;</summary>
		<author><name>Tjmustard</name></author>
		
	</entry>
	<entry>
		<id>https://phyc-wiki.chem.oregonstate.edu/index.php?title=Public:Public_Test_Page&amp;diff=28</id>
		<title>Public:Public Test Page</title>
		<link rel="alternate" type="text/html" href="https://phyc-wiki.chem.oregonstate.edu/index.php?title=Public:Public_Test_Page&amp;diff=28"/>
		<updated>2014-04-25T00:11:47Z</updated>

		<summary type="html">&lt;p&gt;Tjmustard: Created page with &amp;quot;Hey this is a public test page.&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Hey this is a public test page.&lt;/div&gt;</summary>
		<author><name>Tjmustard</name></author>
		
	</entry>
	<entry>
		<id>https://phyc-wiki.chem.oregonstate.edu/index.php?title=Main_Page&amp;diff=27</id>
		<title>Main Page</title>
		<link rel="alternate" type="text/html" href="https://phyc-wiki.chem.oregonstate.edu/index.php?title=Main_Page&amp;diff=27"/>
		<updated>2014-04-25T00:11:27Z</updated>

		<summary type="html">&lt;p&gt;Tjmustard: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
[[Public:Public Test Page]]&lt;br /&gt;
&lt;br /&gt;
===General===&lt;br /&gt;
----&lt;br /&gt;
* [[Group News]]&lt;br /&gt;
&lt;br /&gt;
* [[About PHYC]]&lt;br /&gt;
&lt;br /&gt;
* [[General Research in the PHYC Group]]&lt;br /&gt;
&lt;br /&gt;
* [[Collaborators]]&lt;br /&gt;
&lt;br /&gt;
* [http://phyc.chem.oregonstate.edu/publications Publications]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Software Related===&lt;br /&gt;
----&lt;br /&gt;
* [[Apple Related]]&lt;br /&gt;
&lt;br /&gt;
* [[Linux Related]]&lt;br /&gt;
&lt;br /&gt;
* [[Text Editors]]&lt;br /&gt;
&lt;br /&gt;
* [[Computational Software Related]]&lt;br /&gt;
&lt;br /&gt;
* [[Computational Software Manuals]]&lt;br /&gt;
&lt;br /&gt;
* [[Ad Hoc Script Collection]]&lt;br /&gt;
&lt;br /&gt;
* [[Strange Error Messages]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Resources===&lt;br /&gt;
----&lt;br /&gt;
* [[Woodward]]&lt;br /&gt;
&lt;br /&gt;
* [[Fermi]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Programming===&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
* [[BASH]]&lt;br /&gt;
&lt;br /&gt;
* [[Python]]&lt;br /&gt;
&lt;br /&gt;
* [[C++]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Links===&lt;br /&gt;
----&lt;br /&gt;
* [[Chemistry Journals]]&lt;br /&gt;
&lt;br /&gt;
* [[Computational Chemistry]]&lt;br /&gt;
&lt;br /&gt;
* [[Organic Chemistry News, Highlights and Blogs]]&lt;br /&gt;
&lt;br /&gt;
* [[Other Links]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Getting started ==&lt;br /&gt;
* [//www.mediawiki.org/wiki/Manual:Configuration_settings Configuration settings list]&lt;br /&gt;
* [//www.mediawiki.org/wiki/Manual:FAQ MediaWiki FAQ]&lt;br /&gt;
* [https://lists.wikimedia.org/mailman/listinfo/mediawiki-announce MediaWiki release mailing list]&lt;br /&gt;
* [//www.mediawiki.org/wiki/Localisation#Translation_resources Localise MediaWiki for your language]&lt;br /&gt;
&lt;br /&gt;
Consult the [//meta.wikimedia.org/wiki/Help:Contents User's Guide] for information on using the wiki software.&lt;/div&gt;</summary>
		<author><name>Tjmustard</name></author>
		
	</entry>
	<entry>
		<id>https://phyc-wiki.chem.oregonstate.edu/index.php?title=Category:Public&amp;diff=24</id>
		<title>Category:Public</title>
		<link rel="alternate" type="text/html" href="https://phyc-wiki.chem.oregonstate.edu/index.php?title=Category:Public&amp;diff=24"/>
		<updated>2014-04-24T22:55:43Z</updated>

		<summary type="html">&lt;p&gt;Tjmustard: Created page with &amp;quot;These pages are available for reading by the public.&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;These pages are available for reading by the public.&lt;/div&gt;</summary>
		<author><name>Tjmustard</name></author>
		
	</entry>
	<entry>
		<id>https://phyc-wiki.chem.oregonstate.edu/index.php?title=About_PHYC&amp;diff=23</id>
		<title>About PHYC</title>
		<link rel="alternate" type="text/html" href="https://phyc-wiki.chem.oregonstate.edu/index.php?title=About_PHYC&amp;diff=23"/>
		<updated>2014-04-24T22:55:00Z</updated>

		<summary type="html">&lt;p&gt;Tjmustard: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;;Paul Ha-Yeon Cheong&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
===Contact Information===&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
====Mailing Address====&lt;br /&gt;
:Department of Chemistry&lt;br /&gt;
:Oregon State University&lt;br /&gt;
:153 Gilbert Hall&lt;br /&gt;
:Room 303&lt;br /&gt;
:Corvallis, OR 97331&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
====Telephone====&lt;br /&gt;
:541-737-6760&lt;br /&gt;
;e-Mail&lt;br /&gt;
:paulhcheong(at)gmail.com&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
===Education===&lt;br /&gt;
:2007 - 2009	 Postdoctoral Associate, University of California, Los Angeles: Principal Investigator: K. N. Houk&lt;br /&gt;
:2002 - Nov. 2007 Ph. D. in Organic Chemistry, University of California, Los Angeles: Thesis advisor: K. N. Houk&lt;br /&gt;
:1997 - 2001	 AB, Bowdoin College, Brunswick, ME: Independent Research Advisor: Faraj Hasanayn&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
===Experience===&lt;br /&gt;
:2009	 Assistant Professor: Oregon State University&lt;br /&gt;
:2007 - 2009	 Postdoctoral Associate: University of California, Los Angeles&lt;br /&gt;
:2002 - 2007 Research Assistant: University of California, Los Angeles&lt;br /&gt;
:2003 - 2006 Graduate Teaching Assistant Consultant: University of California, Los Angeles&lt;br /&gt;
:2002 - 2005 Graduate Teaching Assistant: University of California, Los Angeles&lt;br /&gt;
:2001 - 2002 Assistant Academic Curricula Developer: Bowdoin College&lt;br /&gt;
:1998 - 2001 Undergraduate Teaching Assistant: Bowdoin College&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
===Awards &amp;amp; Fellowships===&lt;br /&gt;
:2009	 Vicki and Patrick F. Stone Scholar&lt;br /&gt;
:2009	 MBI Amgen Postdoctoral Award&lt;br /&gt;
:2007	 Thomas L. and Ruth F. Jacobs Award&lt;br /&gt;
:2006	 John Stauffer Fellowship&lt;br /&gt;
:2006 - 2007	 UCLA Graduate Division Dissertation Year Fellowship&lt;br /&gt;
:2002 - 2007	 UCLA Graduate Fellowship&lt;br /&gt;
:2001	 Hypercube scholar award (Hyperchem 6.0)&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
===Conference Oral Presentations===&lt;br /&gt;
:Aug., 2008	 Computational Investigations of Ni and Rh Catalyzed CC Bond-Formation, Houk, K. N.; Cheong, P. H.-Y.; Liu, P.; McCarren, P. 236th ACS National Meeting, Philadelphia, Pennsylvania &lt;br /&gt;
:Sept., 2006	 The mechanism and the origins of stereoselectivity in the Rh(I)-Josiphos-catalyzed asymmetric hydrogenation of unprotected enamines: A computational study, Cheong, P. H.-Y.; Zhao, Y.-L.; Houk, K. N.; Rosner, T. 232nd ACS National Meeting, San Francisco, California &lt;br /&gt;
:Sept., 2006	 Mechanism of the Au(I)-catalyzed enyne cycloisomerization reaction, Cheong, P. H.-Y.; Houk, K. N.; Toste, F. D. 232nd ACS National Meeting, San Francisco, California&lt;br /&gt;
:Aug., 2005	 Rational design of organocatalysts using quantum mechanical calculations: Towards new catalytic proline derivatives for the diastereoselective intermolecular aldol and Mannich reactions, Cheong, P. H.-Y.; Houk, K. N.; Zhang, H.; Thayumanavan, F.; Tanaka, F; Barbas, C. F., III, 230th ACS National Meeting. San Diego, California&lt;br /&gt;
:Conference Poster Presentations&lt;br /&gt;
:Aug., 2008	 Synthetic Scope and Mechanistic Origin of a New Series of Exo-Selective Intermolecular Diels-Alder Reactions, Lam, C.; Cheong, P. H.-Y.; Blasco Mata, J. M.; Stanway, S. J.; Gouverneur, V.; Houk, K. N. Tetrahedron Symposium, Berkeley, California&lt;br /&gt;
:Jun., 2008	 Quantum Mechanical Investigations of Mechanisms and Selectivities of Organometallic Reactions, Cheong, P. H.-Y.; Legault, C. Y.; Liu, P.; Iafe, R.; Cheong, M.; McCarren, P.; Houk, K. N. Houk65 Symposium - Organo, Bio, Nano, University of California, Los Angeles, California &lt;br /&gt;
:Jun., 2007	 Theory and Modeling of Stereoselective Organic Reactions, Cheong, P. H.-Y.; Legault, C. Y.; Lin, L.; Luft, J. A. R.; Um, J. M.; Houk, K. N. 232nd UCLA Graduate Symposium&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
===Lectures===&lt;br /&gt;
:Jun., 2008	 The Origins of Catalytic Efficiencies of Various Monomeric Rh(I)-Catalyzed (5+2) Cycloaddition Reaction, Houk 65 Symposium, University of California Los Angeles &lt;br /&gt;
:Mar., 2008	 Computational Investigation of the Mechanism and Selectivities of Planar Chiral Bronsted Acid Catalysis, Gregory C. Fu group, Massachusetts Institute of Technology &lt;br /&gt;
:Feb., 2008	 Mechanisms and Selectivities of the Jamison Nickel Chemistry, Tim Jamison group, Massachusetts Institute of Technology &lt;br /&gt;
:Jan., 2008	 Computational Investigations of Synthetic Organic Reactions, Stephen L. Buchwald group, Massachusetts Institute of Technology &lt;br /&gt;
:Mar., 2007	 Rh(I)-catalyzed (5+2) Cycloaddition Reactions: A Computational Study into the Mechanism, Substrate Selectivities, Regioselectivity, and Catalyst Efficacy, Paul A. Wender group, Stanford University&lt;br /&gt;
:Aug., 2006	 Au(I)-catalysis and the enyne cycloisomerization reaction, F. Dean Toste group, University of California, Berkeley&lt;br /&gt;
:Jan., 2006	 Computational design of organocatalysts for the asymmetric mannich reactions: origins of diastereoselectivity and design principles for new diastereoselective reactions, Cheong, P. H.-Y.; Houk, K. N.; Barbas, C. F., III. 40th ACS Western Regional Meeting, Anaheim, California (oral)&lt;br /&gt;
:Dec., 2005	 Mechanisms and origins of stereoselectivity of organocatalysts, Donna Blackmond group, Imperial College, London, UK&lt;br /&gt;
&lt;br /&gt;
[[Category:Public]]&lt;/div&gt;</summary>
		<author><name>Tjmustard</name></author>
		
	</entry>
	<entry>
		<id>https://phyc-wiki.chem.oregonstate.edu/index.php?title=Public:Collaborators&amp;diff=21</id>
		<title>Public:Collaborators</title>
		<link rel="alternate" type="text/html" href="https://phyc-wiki.chem.oregonstate.edu/index.php?title=Public:Collaborators&amp;diff=21"/>
		<updated>2014-04-24T22:49:18Z</updated>

		<summary type="html">&lt;p&gt;Tjmustard: Created page with &amp;quot;==Paul A. Wender== File:WenderPA.jpeg :Stanford University  :Lorry Lokey Building  :337 Campus Drive, Mail Code #5080  :Stanford, CA 94305-5080   ==F. Dean Toste== File:...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Paul A. Wender==&lt;br /&gt;
[[File:WenderPA.jpeg]]&lt;br /&gt;
:Stanford University &lt;br /&gt;
:Lorry Lokey Building &lt;br /&gt;
:337 Campus Drive, Mail Code #5080 &lt;br /&gt;
:Stanford, CA 94305-5080&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==F. Dean Toste==&lt;br /&gt;
[[File:TosteFD.jpeg]]&lt;br /&gt;
:University of California, Berkeley&lt;br /&gt;
:Dept. of Chemistry, MC 1460&lt;br /&gt;
:Berkeley, CA 94720-1460&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Gregory C. Fu==&lt;br /&gt;
[[File:FuGC.png]]&lt;br /&gt;
:Massachusetts Institute of Technology&lt;br /&gt;
:Department of Chemistry&lt;br /&gt;
:77 Massachusetts Avenue, Room 18-290&lt;br /&gt;
:Cambridge, MA 02139-4307 USA&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Martin D. Burke==&lt;br /&gt;
[[File:BurkeMD.jpeg]]&lt;br /&gt;
:University of Illinois&lt;br /&gt;
:Department of Chemistry&lt;br /&gt;
:454 Roger Adams Laboratory&lt;br /&gt;
:600 South Mathews Ave.&lt;br /&gt;
:Urbana, IL 61801&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Rich G. Carter==&lt;br /&gt;
[[File:CarterRG.jpeg]]&lt;br /&gt;
Gilbert Hall, Rm 301 &lt;br /&gt;
Oregon State University &lt;br /&gt;
Corvallis, OR 97331&lt;/div&gt;</summary>
		<author><name>Tjmustard</name></author>
		
	</entry>
	<entry>
		<id>https://phyc-wiki.chem.oregonstate.edu/index.php?title=General_Research_in_the_PHYC_Group&amp;diff=19</id>
		<title>General Research in the PHYC Group</title>
		<link rel="alternate" type="text/html" href="https://phyc-wiki.chem.oregonstate.edu/index.php?title=General_Research_in_the_PHYC_Group&amp;diff=19"/>
		<updated>2014-04-24T22:48:48Z</updated>

		<summary type="html">&lt;p&gt;Tjmustard: Created page with &amp;quot;==The Advance of Synthesis through the Advance of Theory== Considerable recent advances in stereoselective synthesis allow great control over the processes that effect bond-fo...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==The Advance of Synthesis through the Advance of Theory==&lt;br /&gt;
Considerable recent advances in stereoselective synthesis allow great control over the processes that effect bond-forming and functional group transformations. These discoveries enable the efficient construction of molecules that conquer disease and influence biology. I seek to use computations to advance synthesis, by perfecting computational techniques to discover, explain, and quantify factors that control the selectivities and reactivities of complex synthetic organic reactions. The ultimate achievement of this line of research will be the routine and accurate prediction and design of selectivity and reactivity of homogeneous catalysts of all types and sizes.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Theory of Organic Catalysis - Organocatalysis to Peptides to Enzymes==&lt;br /&gt;
Catalysis based on natural enzymes and proteins is the new frontier of green and efficient syntheses. The best of these reactions catalyzed by synthetic peptides rival the selectivities observed in enzymatic reactions. An example of this is Miller's discovery of a synthetic peptide for the selective acylation of the most hindered endo-macrocyclic hydroxyl in the natural product Erythromycin A (&amp;gt;10:1).&lt;br /&gt;
 &lt;br /&gt;
[[File:General-Organic-Miller-Peptides.png]]&lt;br /&gt;
&lt;br /&gt;
The computational study of catalysis involving large organic systems is the subject of active pursuit by numerous groups, but none of these methods are routine, and all require substantial commitments of resources without a guarantee of success. In the past, I have been successful in understanding the selectivity of simple examples of organocatalysis, and have been at the forefront of the design of new organocatalysts. Now I seek to pursue the formidable challenge of understanding and design of more complex systems. This requires the development of techniques beyond what is available today. My research will perfect the computational tools to simulate, analyze, and predict the three dimensional structures, preorganization, selectivities, and reactivities of organic catalysts, from the small molecule catalysts to peptides, and finally to enzymes.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Theory of Transition Metal Catalysis - Rh(I)-Catalyzed C-C Bond Activation Reactions and Au(I)-Catalyzed Rearrangement Reactions==&lt;br /&gt;
Despite the tremendous progress in the development of new reactions, ligands, and theory, we have only begun to tap the power of transition metal catalysis. For example, a number of intermolecular Rh(I)-catalyzed multicomponent cyclo-addition reactions involving vinylcyclopropane, alkynes, and CO are shown below. Those on the right occur, while those on the left have not been observed to date.&lt;br /&gt;
&lt;br /&gt;
[[File:General-TM-Wender-Rh.png]]&lt;br /&gt;
&lt;br /&gt;
The factors that determine the reactivity and selectivity of these processes are not well understood. In the past, I have been involved in close collaborations with the Wender and Toste groups in using computations to address specific aspects of Rh(I)- an Au(I)-catalysis. Now in my independent career, my research will establish general principles that will explain and predict Rh(I)- and Au(I)-catalyzed processes involving a wide variety of substrates. The goals are to develop useful qualitative and quantitative tools to predict the products of reactions involving a wide variety of substrates. In the end, my research will result in the complete understanding of Rh(I)- and Au(I)-catalysis, encompassing the reactivity trends of catalysts, preferred mechanisms, stable intermediates, driving forces, and substrate-, stereo-, regio-, and chemoselectivity.&lt;br /&gt;
References&lt;/div&gt;</summary>
		<author><name>Tjmustard</name></author>
		
	</entry>
	<entry>
		<id>https://phyc-wiki.chem.oregonstate.edu/index.php?title=About_PHYC&amp;diff=16</id>
		<title>About PHYC</title>
		<link rel="alternate" type="text/html" href="https://phyc-wiki.chem.oregonstate.edu/index.php?title=About_PHYC&amp;diff=16"/>
		<updated>2014-04-24T22:48:12Z</updated>

		<summary type="html">&lt;p&gt;Tjmustard: Created page with &amp;quot;;Paul Ha-Yeon Cheong  ----  ===Contact Information===  ----  ====Mailing Address==== :Department of Chemistry :Oregon State University :153 Gilbert Hall :Room 303 :Corvallis, ...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;;Paul Ha-Yeon Cheong&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
===Contact Information===&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
====Mailing Address====&lt;br /&gt;
:Department of Chemistry&lt;br /&gt;
:Oregon State University&lt;br /&gt;
:153 Gilbert Hall&lt;br /&gt;
:Room 303&lt;br /&gt;
:Corvallis, OR 97331&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
====Telephone====&lt;br /&gt;
:541-737-6760&lt;br /&gt;
;e-Mail&lt;br /&gt;
:paulhcheong(at)gmail.com&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
===Education===&lt;br /&gt;
:2007 - 2009	 Postdoctoral Associate, University of California, Los Angeles: Principal Investigator: K. N. Houk&lt;br /&gt;
:2002 - Nov. 2007 Ph. D. in Organic Chemistry, University of California, Los Angeles: Thesis advisor: K. N. Houk&lt;br /&gt;
:1997 - 2001	 AB, Bowdoin College, Brunswick, ME: Independent Research Advisor: Faraj Hasanayn&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
===Experience===&lt;br /&gt;
:2009	 Assistant Professor: Oregon State University&lt;br /&gt;
:2007 - 2009	 Postdoctoral Associate: University of California, Los Angeles&lt;br /&gt;
:2002 - 2007 Research Assistant: University of California, Los Angeles&lt;br /&gt;
:2003 - 2006 Graduate Teaching Assistant Consultant: University of California, Los Angeles&lt;br /&gt;
:2002 - 2005 Graduate Teaching Assistant: University of California, Los Angeles&lt;br /&gt;
:2001 - 2002 Assistant Academic Curricula Developer: Bowdoin College&lt;br /&gt;
:1998 - 2001 Undergraduate Teaching Assistant: Bowdoin College&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
===Awards &amp;amp; Fellowships===&lt;br /&gt;
:2009	 Vicki and Patrick F. Stone Scholar&lt;br /&gt;
:2009	 MBI Amgen Postdoctoral Award&lt;br /&gt;
:2007	 Thomas L. and Ruth F. Jacobs Award&lt;br /&gt;
:2006	 John Stauffer Fellowship&lt;br /&gt;
:2006 - 2007	 UCLA Graduate Division Dissertation Year Fellowship&lt;br /&gt;
:2002 - 2007	 UCLA Graduate Fellowship&lt;br /&gt;
:2001	 Hypercube scholar award (Hyperchem 6.0)&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
===Conference Oral Presentations===&lt;br /&gt;
:Aug., 2008	 Computational Investigations of Ni and Rh Catalyzed CC Bond-Formation, Houk, K. N.; Cheong, P. H.-Y.; Liu, P.; McCarren, P. 236th ACS National Meeting, Philadelphia, Pennsylvania &lt;br /&gt;
:Sept., 2006	 The mechanism and the origins of stereoselectivity in the Rh(I)-Josiphos-catalyzed asymmetric hydrogenation of unprotected enamines: A computational study, Cheong, P. H.-Y.; Zhao, Y.-L.; Houk, K. N.; Rosner, T. 232nd ACS National Meeting, San Francisco, California &lt;br /&gt;
:Sept., 2006	 Mechanism of the Au(I)-catalyzed enyne cycloisomerization reaction, Cheong, P. H.-Y.; Houk, K. N.; Toste, F. D. 232nd ACS National Meeting, San Francisco, California&lt;br /&gt;
:Aug., 2005	 Rational design of organocatalysts using quantum mechanical calculations: Towards new catalytic proline derivatives for the diastereoselective intermolecular aldol and Mannich reactions, Cheong, P. H.-Y.; Houk, K. N.; Zhang, H.; Thayumanavan, F.; Tanaka, F; Barbas, C. F., III, 230th ACS National Meeting. San Diego, California&lt;br /&gt;
:Conference Poster Presentations&lt;br /&gt;
:Aug., 2008	 Synthetic Scope and Mechanistic Origin of a New Series of Exo-Selective Intermolecular Diels-Alder Reactions, Lam, C.; Cheong, P. H.-Y.; Blasco Mata, J. M.; Stanway, S. J.; Gouverneur, V.; Houk, K. N. Tetrahedron Symposium, Berkeley, California&lt;br /&gt;
:Jun., 2008	 Quantum Mechanical Investigations of Mechanisms and Selectivities of Organometallic Reactions, Cheong, P. H.-Y.; Legault, C. Y.; Liu, P.; Iafe, R.; Cheong, M.; McCarren, P.; Houk, K. N. Houk65 Symposium - Organo, Bio, Nano, University of California, Los Angeles, California &lt;br /&gt;
:Jun., 2007	 Theory and Modeling of Stereoselective Organic Reactions, Cheong, P. H.-Y.; Legault, C. Y.; Lin, L.; Luft, J. A. R.; Um, J. M.; Houk, K. N. 232nd UCLA Graduate Symposium&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
===Lectures===&lt;br /&gt;
:Jun., 2008	 The Origins of Catalytic Efficiencies of Various Monomeric Rh(I)-Catalyzed (5+2) Cycloaddition Reaction, Houk 65 Symposium, University of California Los Angeles &lt;br /&gt;
:Mar., 2008	 Computational Investigation of the Mechanism and Selectivities of Planar Chiral Bronsted Acid Catalysis, Gregory C. Fu group, Massachusetts Institute of Technology &lt;br /&gt;
:Feb., 2008	 Mechanisms and Selectivities of the Jamison Nickel Chemistry, Tim Jamison group, Massachusetts Institute of Technology &lt;br /&gt;
:Jan., 2008	 Computational Investigations of Synthetic Organic Reactions, Stephen L. Buchwald group, Massachusetts Institute of Technology &lt;br /&gt;
:Mar., 2007	 Rh(I)-catalyzed (5+2) Cycloaddition Reactions: A Computational Study into the Mechanism, Substrate Selectivities, Regioselectivity, and Catalyst Efficacy, Paul A. Wender group, Stanford University&lt;br /&gt;
:Aug., 2006	 Au(I)-catalysis and the enyne cycloisomerization reaction, F. Dean Toste group, University of California, Berkeley&lt;br /&gt;
:Jan., 2006	 Computational design of organocatalysts for the asymmetric mannich reactions: origins of diastereoselectivity and design principles for new diastereoselective reactions, Cheong, P. H.-Y.; Houk, K. N.; Barbas, C. F., III. 40th ACS Western Regional Meeting, Anaheim, California (oral)&lt;br /&gt;
:Dec., 2005	 Mechanisms and origins of stereoselectivity of organocatalysts, Donna Blackmond group, Imperial College, London, UK&lt;/div&gt;</summary>
		<author><name>Tjmustard</name></author>
		
	</entry>
	<entry>
		<id>https://phyc-wiki.chem.oregonstate.edu/index.php?title=Public:Group_News&amp;diff=13</id>
		<title>Public:Group News</title>
		<link rel="alternate" type="text/html" href="https://phyc-wiki.chem.oregonstate.edu/index.php?title=Public:Group_News&amp;diff=13"/>
		<updated>2014-04-24T22:47:35Z</updated>

		<summary type="html">&lt;p&gt;Tjmustard: Created page with &amp;quot;==2011.08.15 - Cluster== The test GPU node is tested with QM program! Whopping performance!!!  ==2011.06.15 - Cluster== The test GPU node is constructed and tested with GROMAC...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==2011.08.15 - Cluster==&lt;br /&gt;
The test GPU node is tested with QM program! Whopping performance!!!&lt;br /&gt;
&lt;br /&gt;
==2011.06.15 - Cluster==&lt;br /&gt;
The test GPU node is constructed and tested with GROMACS.&lt;br /&gt;
&lt;br /&gt;
==2011.01.05 - Cluster==&lt;br /&gt;
The second generation expansion of the Woodward cluster just added, tripling our core count!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==2010.11.08 - Arrival==&lt;br /&gt;
Postdoc I-Ya Chang arrived from Taiwan!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==2010.11.04 - Software==&lt;br /&gt;
Q-Chem 3.2 license extended to 2011.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==2010.09.12 - Software==&lt;br /&gt;
OSU TRF funding for Gaussian09 and GaussView5 approved!&lt;br /&gt;
OSU TRF Funding for 3 more years of ChemDrawUltra approved!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==2010.07.23 - Cluster==&lt;br /&gt;
The Borg cluster goes up, thanks to TJ!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==2010.07.05 - Group member(s)==&lt;br /&gt;
TJ Mustard and George Burgess have joined the lab as graduate students!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==2010.05.15 - Software==&lt;br /&gt;
PHYC, Chemistry and Pharmacy agrees on a deal to pay for first year license of ChemDrawUltra for all of OSU!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==2010.02.05 - Group member(s)==&lt;br /&gt;
Nilobon Pattawong and Matthew Pierce has joined the lab as graduate student!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==2009.10.08 - Group member(s)==&lt;br /&gt;
Subham Mahaptra has joined the lab as joint graduate student with Professor Rich Carter!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==2009 09 27 - Software==&lt;br /&gt;
Openeye, VCONF, and Babel installed and configured on Woodward!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==2009 09 25 - Queue==&lt;br /&gt;
Parallel queues (SMP, MPI) implemented on Woodward!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==2009 09 24 - Software==&lt;br /&gt;
Gaussian, Q-Chem, NWChem, NAMD, and GROMACS installed and configured on Woodward!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==2009 09 22 - Cluster==&lt;br /&gt;
Cluster status now available online!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==2009 09 21 - Cluster==&lt;br /&gt;
The Woodward cluster has arrived! Many thanks to friends from Silicon Mechanics (Art Mann and Scott Humphreys).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==2009 08 15 - Coworker==&lt;br /&gt;
Dr. I-Ya Chang has decided to join the lab as postdoc!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==2009 05 13 - Awards==&lt;br /&gt;
PHYC wins the Boyer-AMGEN postdoctoral award!&lt;/div&gt;</summary>
		<author><name>Tjmustard</name></author>
		
	</entry>
	<entry>
		<id>https://phyc-wiki.chem.oregonstate.edu/index.php?title=Main_Page&amp;diff=10</id>
		<title>Main Page</title>
		<link rel="alternate" type="text/html" href="https://phyc-wiki.chem.oregonstate.edu/index.php?title=Main_Page&amp;diff=10"/>
		<updated>2014-04-24T17:47:52Z</updated>

		<summary type="html">&lt;p&gt;Tjmustard: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
===General===&lt;br /&gt;
----&lt;br /&gt;
* [[Group News]]&lt;br /&gt;
&lt;br /&gt;
* [[About PHYC]]&lt;br /&gt;
&lt;br /&gt;
* [[General Research in the PHYC Group]]&lt;br /&gt;
&lt;br /&gt;
* [[Collaborators]]&lt;br /&gt;
&lt;br /&gt;
* [http://phyc.chem.oregonstate.edu/publications Publications]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Software Related===&lt;br /&gt;
----&lt;br /&gt;
* [[Apple Related]]&lt;br /&gt;
&lt;br /&gt;
* [[Linux Related]]&lt;br /&gt;
&lt;br /&gt;
* [[Text Editors]]&lt;br /&gt;
&lt;br /&gt;
* [[Computational Software Related]]&lt;br /&gt;
&lt;br /&gt;
* [[Computational Software Manuals]]&lt;br /&gt;
&lt;br /&gt;
* [[Ad Hoc Script Collection]]&lt;br /&gt;
&lt;br /&gt;
* [[Strange Error Messages]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Resources===&lt;br /&gt;
----&lt;br /&gt;
* [[Woodward]]&lt;br /&gt;
&lt;br /&gt;
* [[Fermi]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Programming===&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
* [[BASH]]&lt;br /&gt;
&lt;br /&gt;
* [[Python]]&lt;br /&gt;
&lt;br /&gt;
* [[C++]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Links===&lt;br /&gt;
----&lt;br /&gt;
* [[Chemistry Journals]]&lt;br /&gt;
&lt;br /&gt;
* [[Computational Chemistry]]&lt;br /&gt;
&lt;br /&gt;
* [[Organic Chemistry News, Highlights and Blogs]]&lt;br /&gt;
&lt;br /&gt;
* [[Other Links]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Getting started ==&lt;br /&gt;
* [//www.mediawiki.org/wiki/Manual:Configuration_settings Configuration settings list]&lt;br /&gt;
* [//www.mediawiki.org/wiki/Manual:FAQ MediaWiki FAQ]&lt;br /&gt;
* [https://lists.wikimedia.org/mailman/listinfo/mediawiki-announce MediaWiki release mailing list]&lt;br /&gt;
* [//www.mediawiki.org/wiki/Localisation#Translation_resources Localise MediaWiki for your language]&lt;br /&gt;
&lt;br /&gt;
Consult the [//meta.wikimedia.org/wiki/Help:Contents User's Guide] for information on using the wiki software.&lt;/div&gt;</summary>
		<author><name>Tjmustard</name></author>
		
	</entry>
	<entry>
		<id>https://phyc-wiki.chem.oregonstate.edu/index.php?title=Main_Page&amp;diff=8</id>
		<title>Main Page</title>
		<link rel="alternate" type="text/html" href="https://phyc-wiki.chem.oregonstate.edu/index.php?title=Main_Page&amp;diff=8"/>
		<updated>2014-04-24T17:44:40Z</updated>

		<summary type="html">&lt;p&gt;Tjmustard: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
===General===&lt;br /&gt;
----&lt;br /&gt;
* [[Group News]]&lt;br /&gt;
&lt;br /&gt;
* [[About PHYC]]&lt;br /&gt;
&lt;br /&gt;
* [[General Research in the PHYC Group]]&lt;br /&gt;
&lt;br /&gt;
* [[Collaborators]]&lt;br /&gt;
&lt;br /&gt;
* [http://phyc.chem.oregonstate.edu/publications Publications]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Links===&lt;br /&gt;
----&lt;br /&gt;
* [[Chemistry Journals]]&lt;br /&gt;
&lt;br /&gt;
* [[Computational Chemistry]]&lt;br /&gt;
&lt;br /&gt;
* [[Organic Chemistry News, Highlights and Blogs]]&lt;br /&gt;
&lt;br /&gt;
* [[Other Links]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Getting started ==&lt;br /&gt;
* [//www.mediawiki.org/wiki/Manual:Configuration_settings Configuration settings list]&lt;br /&gt;
* [//www.mediawiki.org/wiki/Manual:FAQ MediaWiki FAQ]&lt;br /&gt;
* [https://lists.wikimedia.org/mailman/listinfo/mediawiki-announce MediaWiki release mailing list]&lt;br /&gt;
* [//www.mediawiki.org/wiki/Localisation#Translation_resources Localise MediaWiki for your language]&lt;br /&gt;
&lt;br /&gt;
Consult the [//meta.wikimedia.org/wiki/Help:Contents User's Guide] for information on using the wiki software.&lt;/div&gt;</summary>
		<author><name>Tjmustard</name></author>
		
	</entry>
	<entry>
		<id>https://phyc-wiki.chem.oregonstate.edu/index.php?title=Main_Page&amp;diff=5</id>
		<title>Main Page</title>
		<link rel="alternate" type="text/html" href="https://phyc-wiki.chem.oregonstate.edu/index.php?title=Main_Page&amp;diff=5"/>
		<updated>2014-04-24T17:44:07Z</updated>

		<summary type="html">&lt;p&gt;Tjmustard: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
===General===&lt;br /&gt;
----&lt;br /&gt;
* [[Group News]]&lt;br /&gt;
&lt;br /&gt;
* [[About PHYC]]&lt;br /&gt;
&lt;br /&gt;
* [[General Research in the PHYC Group]]&lt;br /&gt;
&lt;br /&gt;
* [[Collaborators]]&lt;br /&gt;
&lt;br /&gt;
* [http://phyc.chem.oregonstate.edu/publications Publications]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Getting started ==&lt;br /&gt;
* [//www.mediawiki.org/wiki/Manual:Configuration_settings Configuration settings list]&lt;br /&gt;
* [//www.mediawiki.org/wiki/Manual:FAQ MediaWiki FAQ]&lt;br /&gt;
* [https://lists.wikimedia.org/mailman/listinfo/mediawiki-announce MediaWiki release mailing list]&lt;br /&gt;
* [//www.mediawiki.org/wiki/Localisation#Translation_resources Localise MediaWiki for your language]&lt;br /&gt;
&lt;br /&gt;
Consult the [//meta.wikimedia.org/wiki/Help:Contents User's Guide] for information on using the wiki software.&lt;/div&gt;</summary>
		<author><name>Tjmustard</name></author>
		
	</entry>
	<entry>
		<id>https://phyc-wiki.chem.oregonstate.edu/index.php?title=Main_Page&amp;diff=3</id>
		<title>Main Page</title>
		<link rel="alternate" type="text/html" href="https://phyc-wiki.chem.oregonstate.edu/index.php?title=Main_Page&amp;diff=3"/>
		<updated>2014-04-24T17:42:49Z</updated>

		<summary type="html">&lt;p&gt;Tjmustard: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
===General===&lt;br /&gt;
----&lt;br /&gt;
* [[Group News]]&lt;br /&gt;
&lt;br /&gt;
* [[About PHYC]]&lt;br /&gt;
&lt;br /&gt;
* [[General Research in the PHYC Group]]&lt;br /&gt;
&lt;br /&gt;
* [[Collaborators]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Getting started ==&lt;br /&gt;
* [//www.mediawiki.org/wiki/Manual:Configuration_settings Configuration settings list]&lt;br /&gt;
* [//www.mediawiki.org/wiki/Manual:FAQ MediaWiki FAQ]&lt;br /&gt;
* [https://lists.wikimedia.org/mailman/listinfo/mediawiki-announce MediaWiki release mailing list]&lt;br /&gt;
* [//www.mediawiki.org/wiki/Localisation#Translation_resources Localise MediaWiki for your language]&lt;br /&gt;
&lt;br /&gt;
Consult the [//meta.wikimedia.org/wiki/Help:Contents User's Guide] for information on using the wiki software.&lt;/div&gt;</summary>
		<author><name>Tjmustard</name></author>
		
	</entry>
</feed>