Skip to content

Latest commit

 

History

History
34 lines (31 loc) · 515 Bytes

File metadata and controls

34 lines (31 loc) · 515 Bytes

oneliners

##Initiate new git.

echo "# oneliners" >> README.md
git init
git add README.md
git commit -m "first commit"
git remote add origin https://github.com/schraderL/oneliners.git
git push -u origin master

##Loop over file in bash

while read p; do
  echo "$p"
done < file

##Loop over column in bash

for i in $(cut -f 3 file.tsv|sed 1d); do
  echo $i
done

##AWK tab out

 awk -v OFS='\t'

Display tabs as proper columns

column -t
column -t -s $'\t'