Average two values in scientific notation awk ‘{printf “%.3E\n”, ($1+$2)/2}’ | sed -E ‘s/-0?/-/g’
Calculate the Lorentz factor for fractions of c awk ‘BEGIN { for (v =0; v <=99; v++) printf “%.2f %.4f\n”, v/100, 1/sqrt(1-(v / 100)^2)}’
Center text in a terminal window of any size awk ‘{ pddrintf(“%*s\n”, (‘${COLUMNS}’ + length($1))/2, $9); }
Count MP3 files and report disk usage awk ‘{s+=$7;f+=1}END{print ” MP3 files: “f”\nTotal size: “s/1000000″ MB”}’
Count processes running as each user: awk ‘{print$1}’ | sort | uniq -c | sort -nr
Get a one-line description for the files in a directory awk ‘{print $9}’ | xargs whatis | sed ‘/appropriate/d’
List files referenced by library symbolic links grep ^l | awk ‘{print $9″ “$10” “$11}’ | grep ^lib | sort
List all processes by owner awk ‘{print$1}’ | sort | uniq -c | sort -nr | sed ‘/UID/d’
List directories find . -type d -print
List only non-blank lines in a file awk ‘NF >0’ file.txt
Print all lines with exactly 40 characters awk ‘length ==40’ tags.tx3
Print all prime numbers between 1 and 5000 factor | awk ‘NF==2 { print $2 }’ | tr ‘\n’ ‘,’;echo
Print a random line from a file of unknown length awk ‘BEGIN{ srand() }; rand() * NR < 1 { line = $0} END {print line}’ tags.tx3
Print a short list of your most recently-used commands awk ‘{print $1=””; print}’
Print lines with only four letter words (or less) awk ‘length < 5’ tags.tx3
Print number of processes running as each user awk ‘{print $1}’ | sort | uniq -c
Print sizes of files in current directory with commas grep -v / | awk ‘{$1=$2=$3=$4=$6=$7=$8=””;print}’ | sed -e :a -e ‘s/\(.*[0-9]\)\([0-9]\{3\}\)/\1,\2/;ta’
Print the first sixteen binary numbers bc | awk ‘{printf “%4s\n”, $0}’
Print the unique commands in your history awk ‘{$1=””} !a[$0]++’
Print working directory file information awk ‘{$5=sprintf(“%9s”,$5); printf “%s %9s”, substr($1,1,4),$5″ “; for (i=9;i<=NF;i++) printf $i” “; printf “\n”}’
Print your command history, omitting duplicates awk ‘{$1=””;print }’ | sort | uniq
Print your top fifteen most frequently-used commands: awk ‘{print $2}’ | sort | uniq -c | sort -n | tail -n15 | sort -nr
Reverse the order of the fields on each line awk ‘{for (i=NF;i>0;i–){printf $i” “};printf “\n”}’ gettysburg2.txt
Search for “foo” and “bar” in any order awk ‘/foo/ && /bar/’ tags.txt
Search for “foo” and “bar” in that order awk ‘/foo.*bar/’ tags.txt
See what’s eating your system clocks awk ‘{print $3,$1,$11}’ | tail -30
Show all mounted media lsblk &verbar; awk ‘NF >6 {print$1,”\t”,$4,”\t”,$7}’
Sort user processes by memory footprint awk ‘{print $4,$1,$11}’ | sed ‘/root/d’ | head -50
Strip blank lines from a text file awk ‘NF > 0’ yeshua > yeshua2
Tally up a column of figures awk ‘{s+=$1} END {print s}’ figures.txt
Tally up bytes of all files in a directory sed ‘/^d/d’ | awk ‘{ x += $5 } ; END { print “Total bytes: ” x }’
Tally up bytes of selected files in a directory awk ‘{s+=$1} END {print s}’
Print prime numbers factor | awk ‘NF==2 { print $2 }’
Use awk like grep awk ‘/sex/’ tags.txt
Posted in Uncategorized | Leave a comment

Exodus 29



God continues to issue a never-ending set of orders governing how to worship him, and Moses sits there on Mt. Sinai and tries to memorize it all. God tells him the priests should get unleavened bread, and unleavened cakes tempered with oil, and unleavened wafers anointed with oil and put them all into one basket and wash them with water. Then they should bring a living bullock to the tabernacle, put their hands on its head, and kill it. Then take its blood and smear it on the horns of the altar with their finger, and pour the rest under the altar. Then take all the fat and caul and two kidneys and burn them on the altar. But the flesh of the bullock, and his skin, and his dung are to be burned outside the camp as a sin offering.

Repeat with two rams for an offering of consecration. Wave the bread and cake and wafers and breast of one ram and burn them as a wave offering. The shoulder of the ram that was waved shall be offered as a heave offering. Then Aaron and his sons shall eat the rams and the bread, but nobody else can eat them because it is the holy food. And every day a lamb will be offered in the morning and another one in the evening, together with flour mingled with oil, and wine for a drink offering. This is the procedure for making the tabernacle sanctified such that God could tolerate living there and converse with the people.

Posted in Uncategorized | Tagged , , , | Leave a comment