2
votes
3answers
95 views

Syntax error in shell script

I have this script to divide a file over a 100000 or even more in 50000 lines. desc() { echo ...
1
vote
3answers
3k views

Print given number in reverse order

clear echo "Enter a number" read n sd=0 rev=0 while [ $n -gt 0 ] do sd=$(( $n % 10 )) rev=$(( $rev *\ 10 + $sd )) n=$(( $n / 10 )) done echo "Reverse number of entered digit is $rev" ...