Brandon's Notepad

December 27, 2017

The vi Text Editor

ShortURL: http://wp.me/pb7U7-2QA
Home > My Lists > Technology > Software Development References > The vi Text Editor


User Guides & Tutorials

Tips & Tricks

  • Insert contents of another file into current file using :r filename
  • Open second file in split window using :sp or :vsp. Use Ctrl+w to switch between window panes.

Advertisements

June 5, 2015

m4 Macro Processor

Filed under: Computer Software,Linux — Brandon @ 3:54 am
Tags: , , , , , ,

ShortURL: http://goo.gl/cPBk8p
Home > My Lists > Technical Notes > Linux > m4 Macro Processor


m4 is a macro processor that replaces tokens in a file. It was once used as a FORTRAN preprocessor and is now used by various systems to manage configuration files. I started using it years ago in conjunction with make to automatically generate web pages, but that practice ended when I decided to move this site to a ‘blog platform. Since then, I’ve continued to look for additional ways to leverage it.


Presently, I’m collecting links about m4 and will write more if needed:

GNU m4 Manual
m4 Manpage (die.net)
Using m4 Macros in Your Programs
Building text files with m4 macros
Michael Breen’s Notes on the M4 Macro Language
Fractals with SVG and m4
m4 Macros and CSS
Using the m4 macro processor for fun and profit

Here’s a random snippet of a makefile using m4:

.SUFFIXES: .m4 .html
.m4.html: $(Common)
m4 -D_LOCATION=coding -P $*.html


January 29, 2008

January 29, 2008: Unix-Life, Tim Hawkins

Applying Unix Philosophy to Personal Productivity
Unix as a model for life:
http://lifehacker.com/349646/applying-unix-philosophy-to-personal-productivity
The rules come from Eric Steven Raymond’s The Art of Unix Programming:
http://www.faqs.org/docs/artu/index.html

Cletus, Take the Reel
Song by comedian Tim Hawkins:
http://doublesharpevideo.com/CletusTakeReel1/CletusMusicVideo.html (dead link)

Blog at WordPress.com.