cat txtfile | xargs -n1 ./script On 06/09/2003 08:56 +0200, pacho baratta wrote: >> >> i have a txt file with a list of username one by line, say: >> user1 >> user2 >> user3 >> ..... >> >> >> i'd like to avoid to insert all these users by hand (about 1000 users) >> so i build a script to add users, make dirs and something useful to me >> >> my goal is to get a way to process txt file and send all users, one by >> one, to my script. >> >> cat txtfile | ./script >> >> is processing only the 1st user, not the others. >> >> any idea to automatize this process? >> tnx, pacho >> >> - >> To unsubscribe from this list: send the line "unsubscribe linux-admin" in >> the body of a message to majordomo@vger.kernel.org >> More majordomo info at http://vger.kernel.org/majordomo-info.html End of included message -- +--------------------------+------------------------------+ | Tim Walberg | twalberg@mindspring.com | | 830 Carriage Dr. | www.mindspring.com/~twalberg | | Algonquin, IL 60102 | | +--------------------------+------------------------------+