How to name a file like users-DDMMYYYY format?
Posted on 2005-04-18
How can i write a shell script that extracts all the usernames from the file /etc/passwd into a file /tmp/users-DDMMYYYY, then sorts this file alphabetically into another file /tmp/sortedusers-DDMMYYYY and finally join all the usernames together into a single line, with each username separated by a horinzontal tab (thiswill be display on the screen)? DDMMYYYY refers to the current system date.
Thanks for any help