Here is a quick guide to nawk. nawk as it has more functionalities over awk. Most systems now would have both programs installed. See also:
Month: January 2006
Quick Guide to Emacs
Here is a quick guide to emacs. These are a collection of commonly used keystrokes. See also:
- Quick guide to n8n
- Quick guide to NSCC ASPIRE2A
- Quick guide to Docker
- Quick guide to CVS
- Quick guide to nawk
- Quick guide to GNUPlot
- Quick guide to Git
Key Definitions
- Ca-Cb : Press [Control][a] follow by [Control][b].
- Ma-b : Press [Esc][a] follow by [b].
- F1-t : Press function key [F1] follow by [t].
Tutorial
- Please go through the Emacs tutorial If you haven’t done so: Ch-t or F1-t
Useful things to put in .emacs
- Show line number : (line-number-mode 1)
- Show column number : (column-number-mode 1)
- Show time : (display-time)
- Change color theme: (load-theme ‘deeper-blue t)
Navigations
- Quit : Cx-Cc
- Move between windows : Cx-o
- Goto a line : Mg
Editing
- Cut : Ck
- Paste : Cy
- Select/mark region : C[space]
- Exchange mark and point : CxCx
- Cut rectangle region : Cx-Rk
- Paste rectangle region : Cx-Ry
Search
- Quick search forward : Cs
- Quick search backward : Cr
Keystroke Record/Playback
- Record : Cx-(
- Playback : Cx-)
Various Different useful modes
You can enhance XEmacs with various useful features. The following two packages can be installed with minimal effort. Email me if you require any help in installing them.
- Flyspell : On-the-fly spelling checker.
- X-Symbol : Enables the showing of superscript, subscript and greek characters in LaTex.
To check for grammar errors in Latex, the best way is to convert your Latex document to HTML and use one of the online Grammar checkers.
Quick Guide to CVS
Here is a quick guide to setting up and using CVS. The commands shown below were tested on Concurrent Versions System (CVS) 1.10 available from Cyclic Software.
See also:
- Quick guide to GNUPlot
- Quick guide to n8n
- Quick guide to Docker
- Quick guide to nawk
- Quick guide to Emacs
- Quick guide to Git
Setup
- Set CVSROOT to a directory (e.g. setenv CVSROOT ~/cvsroot )
- Run “cvs init”
Put Project into CVS
- To add version control for a project consist of multiple files in a directory, e.g. ~/project
- cd to ~/project
- Run “cvs import -m “Project” myproject sample start”
- The respective arguments are :
- cvs -m “Log message” repository vendor-tag release-tags
- You can put anything you like for the tags and log message.
- You will need to use “repository” to checkout your files later.
Checkout a Project
- To checkout a project
- Run “cvs checkout myproject”
- You can subsitute “myproject” for any other repositories in the CVS.
Update a Project
- To update a project after modifying several files
- Run “cvs commit”
- An editor will be shown to allow you to add comments on the changes
- To use another editor eg: xemacs, do “setenv EDITOR xemacs”
Add/Remove File
- To add a file, run “cvs add filename; cvs commit”
- To remove a file, run “cvs remove filename; cvs commit”
Topics not covered here
- Version branches
- Multiple developers
See also this site for a more comprehensive tutorial.