File: sort-args.sh

package info (click to toggle)
bfs 4.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 5,484 kB
  • sloc: ansic: 21,302; sh: 3,227; makefile: 221
file content (4 lines) | stat: -rwxr-xr-x 100 bytes parent folder | download | duplicates (3)
1
2
3
4
#!/usr/bin/env bash

IFS=$'\n' read -rd '' -a args < <(printf '%s\n' "$@" | sort)
echo "${args[@]}"