This is an old revision of the document!


/etc/profile.d/custom.sh
# ALIASES
alias lsblk='lsblk -o NAME,SIZE,FSTYPE,LABEL,MOUNTPOINT,UUID,MODEL,SERIAL,STATE,TYPE'
alias l='ls -lh'
alias ssh='ssh -o ServerAliveInterval=100 -Y'
 
# PATH
export PATH=$PATH:~/bin

txt

/usr/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
/usr/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