User Tools

Site Tools


scripting:sh

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Last revisionBoth sides next revision
scripting:sh [2014-12-18 20:08] – external edit 127.0.0.1scripting:sh [2016-01-10 21:29] root
Line 24: Line 24:
   echo 3.14158 2.348 | awk '{ printf("%f\n", $1/$2) }'    echo 3.14158 2.348 | awk '{ printf("%f\n", $1/$2) }' 
   echo "" | awk '{ printf("%i\n", 10+5) }'   echo "" | awk '{ printf("%i\n", 10+5) }'
 +  awk '{ print $1/2 }' <<< "5"
      
 bc bc
Line 30: Line 31:
 bash bash
   result=$((30*1000/60))   result=$((30*1000/60))
- 
scripting/sh.txt · Last modified: 2016-05-20 17:00 by root