42/d01/ex07/r_dwssap.sh

2 lines
172 B
Bash
Raw Normal View History

2016-11-20 02:20:23 +02:00
cat /etc/passwd | grep -v ^# | sed -n 'n;p' | cut -d ":" -f1 | rev | sort -r | sed -n "$FT_LINE1,$FT_LINE2 p" | sed -e ':a' -e 'N' -e '$!ba' -e 's/\n/, /g' | tr "\n" "."