unixowe-systemy-operacyjne/args-reversed.sh

11 lines
123 B
Bash

#!/bin/bash
if [ $# -eq 0 ]; then exit 1; fi
for ((i=$#;i>0;i--))
do
eval echo -n " \$$i "
echo -n " "
done
echo