/ Published in: Bash
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
!/bin/sh reverse_order() { for n in $@ do reverse="$n $reverse"; done echo $reverse } # example reversed=$(reverse_order $@)