From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <96078618110756.tru64-unix-managers.marc@archive.invalid> From: edge Date: Fri, 31 Oct 1997 00:13:59 +0000 To: tru64-unix-managers Subject: SUMMARY:awking out a character X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=96078618110756 Wow - Thanks to the 20+ who responded! Although I feel like somewhat of a clod, due to the fact that I forgot about the cut command. Here are a selected few responses: 1) cut -c 1 /etc/passwd 2) awk '{ print substr($0, 1, 1) }' 3) cat /etc/passwd | cut -b 1,1 | while read FirstInitial do echo Do anything with "$FirstInitial" done ORIGINAL MESSAGE: Was wondering if any of you could inform me of a quick way to read through a list of user names and just grab the first char of the login so as to use it in a automated script in order to edit/traverse C2 auth files. Perhaps awk can do this? Obviously C2 security stores files in /tcb/files/auth/first initial login name and you must edit those user profiles individually on occasion.