[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Google
  Web www.spinics.net

Summary: BASH + concatenate + scripint



Howzit guys,

thanks for all the replies:

nice to see all the ways u would do it, some really nice

there was alot of other ones, like perl, which would be the best way of doing stuff like this, or some hardcore sed regex's

easiest way i found was gawk:

a=`awk '{printf "%s@%s\n",$2,$1}' users.txt`

for i in $a;
       do /home/vpopmail/bin/vadduser -n -q 10MB $i
done

Thanks for all the replies,

Jandre




-- Regards Jandre

		"Some people are alive only because
		 it is illegal to kill them."

_____________________________________________________
_______________________________________________
LinuxManagers mailing list - http://www.linuxmanagers.org
submissions: LinuxManagers@xxxxxxxxxxxxxxxxx
subscribe/unsubscribe: http://www.linuxmanagers.org/mailman/listinfo/linuxmanagers

[Home]     [Kernel List]     [Linux SCSI]     [Video 4 Linux]     [Linux Admin]     [Yosemite News]     [Motherboards]

Powered by Linux