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 Mike Lewis 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
  • 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

    Using sed to edit string and save the new info to the same file

    Ron, As far as I know, ( I'm a newbie too ) sed writes the output to stdout. Therefore you must redirect stdout to a file ( > file2 ). I am also trying to do the same as you, but I was thinking more along these lines: If one can test whether the find and replace was done then we can do...
  3. wube

    Test if numeric

    Thanks. That worked. I was on the right track. I did try the following combinations: /^[0-9]/ /[0-9]+$/ but these did not work. Once again, thanks a lot. wube
  4. 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