This is an old revision of the document!
systemwide
- /etc/profile.d/custom.sh
# PROMPT if [ "$EUID" == "0" ]; then export PSUSERCOL=1 else export PSUSERCOL=2 fi export PS1="$(tput bold ; tput setaf $PSUSERCOL)### $(tput setaf 7)\d \A $(tput setaf $PSUSERCOL)\u $(tput setaf 3)\H $(tput setaf 2)\w $(tput sgr0)\n\$ "
root
user
utils
- ~/bin/csvview
#!/bin/bash set -o errexit function show_usage { cat <<EOF Usage: $0 [--help] [filename] View a CSV file at the command line. --help Show this help text. filename CSV file to be viewed EOF exit -1 } if [ "$1" == "--help" -o "$1" == "" ]; then show_usage fi column -ts $',' < "$1" | less -#.3 -N -S
- ~/bin/tsvview
#!/bin/bash set -o errexit function show_usage { cat <<EOF Usage: $0 [--help] [filename] View a TSV file at the command line. --help Show this help text. filename tabulated file to be viewed EOF exit -1 } if [ "$1" == "--help" -o "$1" == "" ]; then show_usage fi column -ts $'\t' < "$1" | less -#.3 -N -S