#!/bin/bash
for I in `seq 1 10`;do
cut -d: -f1 /etc/passwd |grep"user$I" 2>>/tmp/etc.err || useradd user$I
for I in `seq 1 10`;do
cut -d: -f1 /etc/passwd |grep"user$I" 2>>/tmp/etc.err || useradd user$I
done
本文转自 15816815732 51CTO博客,原文链接:http://blog.51cto.com/68686789/1690298