Search Results

Search: Posts Made By: Light_
2,650
Posted By Yoda
Yes, just put brackets:- sed...
Yes, just put brackets:-

sed "s/^\(.........................\).*$/\1[...]/"
2,650
Posted By Yoda
Try this to replace characters beyond 25th...
Try this to replace characters beyond 25th position:-

sed "s/^\(.........................\).*$/\1.../"
4,874
Posted By radoulov
curl -s --connect-timeout 30...
curl -s --connect-timeout 30 ftp://ftp2.bom.gov.au/anon/gen/fwo/IDA00003.html |
awk -F'<TD valign=top>| &nbsp;</TD>' '$0 ~ where {
printf "Today:\n%s\nTomorrow:\n%s\n", \
(length($8) >...
1,741
Posted By malcomex999
Isn't this what you want... echo $peak...
Isn't this what you want...

echo $peak $days_remaining |awk '{ printf "Per day: %.2f GB\n", (50-($1/1000000000))/$2 }'

Just added /$2 to your code
1,741
Posted By
set `expr 50 - $peak / 1000000000` | echo $1...
set `expr 50 - $peak / 1000000000` | echo $1 $days_remaining | awk '{ printf "Use %.2f GB per day of total %.2f GB free.\n", ($1 / $2), $1}'
1,741
Posted By
set `expr 50 - $peak / 1000000000` | awk '{...
set `expr 50 - $peak / 1000000000` | awk '{ printf "Use %.2f GB per day of total %.2f GB free.\n", ($1 / $days_remaining), $1}'
Showing results 1 to 6 of 6

 
All times are GMT -4. The time now is 04:30 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy