Search Results

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

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

sed "s/^\(.........................\).*$/\1.../"
3,472
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,310
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,310
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,310
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

 

Featured Tech Videos

All times are GMT -4. The time now is 07:25 PM.
Unix & Linux Forums Content Copyright 1993-2019. All Rights Reserved.
Privacy Policy