From: Tim Walberg <twalberg@mindspring.com>
To: pacho baratta <pachox@evolinux.it>
Cc: linux-admin@vger.kernel.org
Subject: Re: help with script
Date: Mon, 9 Jun 2003 08:03:20 -0500 [thread overview]
Message-ID: <20030609080320.A30445@mindspring.com> (raw)
In-Reply-To: <1055141806.1522.4.camel@alice> from pacho baratta on 06/09/2003 01:56
[-- Attachment #1: Type: text/plain, Size: 1166 bytes --]
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 | |
+--------------------------+------------------------------+
[-- Attachment #2: Type: application/pgp-signature, Size: 174 bytes --]
next prev parent reply other threads:[~2003-06-09 13:03 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-06-09 6:56 help with script pacho baratta
2001-07-19 13:31 ` Win Toe ( Penguin Millennium )
2003-06-09 9:47 ` Carl
2003-06-09 12:58 ` Glynn Clements
2003-06-09 13:03 ` Tim Walberg [this message]
2003-06-10 19:58 ` Stephen Samuel
2003-06-10 23:37 ` pacho baratta
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20030609080320.A30445@mindspring.com \
--to=twalberg@mindspring.com \
--cc=linux-admin@vger.kernel.org \
--cc=pachox@evolinux.it \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).