22b3c0cc36
load.sh now loads debug module or a noop file library, file.lib - refactored _find function, added alias superceed * added h option to include .hidden files * - added build_file function to append file to another refactored comment and uncomment functions added find_mountpoint function to filesystem module added ssh_config builder function and ssh override to use it. added github module with binary release fetch function (needs work)
10 lines
264 B
Bash
10 lines
264 B
Bash
#!/bin/bash
|
|
function comment() {
|
|
[[ $# -lt 2 ]] && echo must supply pattern and file && return 1
|
|
sed -i '/'$1'/s/^#*/#/g' "$2"
|
|
}
|
|
|
|
function uncomment() {
|
|
[[ $# -lt 2 ]] && echo must supply pattern and file && return 1
|
|
sed -i '/'$1'/s/^#*//g' "$2"
|
|
}
|