Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: wube
  • Content: Threads
  • Order by date
  1. wube

    Difference between du and adding up the bytes from ls -laR

    Can someone expalin the size difference between the two commands : 1. du -ks . 2. ls -laR | awk '{ sum += $5 } END { print sum/1024 }' - $5 is the 5th column that displays the byte count I thought that at least the two figures should be close since both are supposed to display the total...
  2. wube

    Test if numeric

    I am currently writing a script that expects input to be keyed in, and I have to verify if the input is numeric or not. #!/bin/sh read input echo $input | awk ' { if ( $0 ~ /[0-9]/ ) printf " input contains numerics only" else printf " input...

Part and Inventory Search

Back
Top