search for: 289168

Displaying 2 results from an estimated 2 matches for "289168".

2010 Sep 25
3
LUKS create_encrypted_fs
...is line: FREE_SPACE=$(df -m $SECRET_PATH |grep / | awk '{ print $4 }') gave me a problem due to line wrapping in df. For example: $ df -m /home/ja/verify/ Filesystem 1M-blocks Used Available Use% Mounted on /dev/mapper/VolGroup00-LogVol00 589333 289168 269746 52% / So, $4 is 52% rather than 269746. The '/dev/mapper/VolGroup00-LogVol00' term is from a fresh install, so, perhaps others have this same name. This change worked for me: FREE_SPACE=$(${DF} -m ${PATH} | ${GREP} / \ | ${TR} "\n" ' ' | ${TR} -s ' ...
2005 Feb 04
5
2 small problems: integer division and the nature of NA
Hi, I'm wondering why 48 %/% 2 gives 24 but 4.8 %/% 0.2 gives 23... I'm not trying to round up here, but to find out how many times something fits into something else, and the answer should have been the same for both examples, no? On a different topic, I like the behavior of NAs better in R than in SAS (at least they are not considered the smallest value for a variable), but at the