Skip to content

Instantly share code, notes, and snippets.

@richlowe
richlowe / csgrep.sh
Last active May 5, 2019
csgrep: Search cscope and provide output similar enough to grep for M-x grep, :grep, etc.
View csgrep.sh
#!/bin/bash
if [[ ! -f cscope.out ]]; then
print -u2 "No cscope.out"
exit 1
fi
# Common to all versions
modes[0]="symbol"; SYMBOL=0
modes[1]="definition of"; DEFINITION=1
@richlowe
richlowe / rofflmao.py
Created Feb 27, 2011
roff(1) Line Mangler And Organizer
View rofflmao.py
#!/usr/bin/env python
# roff(1) Line Mangler And Organizer
#
# Reflow a roff (source) document without damaging it:
#
# - Comments are left intact
# - Commands are left intact
# - Known "Verbatim blocks" are left intact
# - tbl(1) Tables