Monday, June 3, 2013

awk + for shell

#!/bin/bash

ff=$(awk -F: '{print $1}' /etc/passwd | grep user )

for i in $ff ; do something in $i ; done

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.

ALCATEL 6900

write memory copy running certified reload from working no rollback-timeout