Skip to content

Commit 18b3298

Browse files
committed
Remove the use of bc as some dont have bc installed and it is easy to bypass
1 parent 55d3118 commit 18b3298

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

rac-on_all_db.sh

+3-1
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,14 @@
1010
# More information here : https://unknowndba.blogspot.com.au/2018/04/rac-onalldbsh-easily-execute-query-on.html
1111
#
1212
# Version of the script is 20180318
13+
# 20210407 -- Fred Denis -- Remove the use of bc as some dont have bc installed and it is easy to bypass
14+
# 20180318 -- Fred Denis -- Initial release
1315
#
1416

1517
#
1618
# Set the default output to 90% of the screen size
1719
#
18-
COLS=$(printf %.f $(bc <<< "`tput cols`*.9"))
20+
COLS=$(printf %.f $(($(tput cols)*90/100)))
1921

2022
#
2123
# If for any reason we couldn't get the number of cols, we set it to 120

0 commit comments

Comments
 (0)