IT/WebAuthoring

From CA Greens wiki
Revision as of 23:14, 8 April 2010 by 66.159.220.136 (talk) (Deleting a line from a file)

Jump to: navigation, search

Editing pages in this wiki

Wikipedia has a [page] about its wiki markup language. The previous sentence contains [an external link]. So does that one.

Editing pages on our server

Use [vi], or download, edit, upload.

Deleting a line from a file

Sometimes you don't want to bother with an editor. The grep -v command passes every line through unless it matches some pattern. Here I'll use it to delete the style sheet link from a page.

 pushd /w/cal/liaison/docs
 grep _styles_basic.css status_nota_1992_1995.htm

The system replies
<link rel="stylesheet" type="text/css" href="http://www.cagreens.org/sitetools/_styles_basic.css" />

 grep -v _styles_basic.css status_nota_1992_1995.htm > z
 mv z > status_nota_1992_1995.htm