Return to Snippet

Revision: 33390
at October 8, 2010 10:30 by oznek


Initial Code
!/bin/sh

reverse_order()
{
    for n in $@
    do
        reverse="$n $reverse";
    done

    echo $reverse
}

# example
reversed=$(reverse_order $@)

Initial URL

                                

Initial Description

                                

Initial Title
Reverse parameters order

Initial Tags

                                

Initial Language
Bash