Skip to main content

BASH MAN PAGE

------------------------------------------------------------------------------------------------------------------------------------------------

Beginning a bash script

  #!/bin/bash

------------------------------------------------------------------------------------------------------------------------------------------------

Set user input as a variable

echo 'enter domain name to test'
read domain

------------------------------------------------------------------------------------------------------------------------------------------------

SORT

sort -k1 (sort a file or output by a specific column, ie sort -k1 would sort by the first column)

sort -r (reverse the results)

sort -n (Numeric sort)