Sep 15, 2025 - 10:43 PMDeutsch | English
Hello unlogged user [ Register | Log in ]

Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
gsb
Post subject: benutzer aus csv datei anlegen  PostPosted: Sep 09, 2009 - 09:25 PM



Joined: Sep 23, 2005
Posts: 488

Ich hab ein script adduser, das braucht als Parameter Vorname, nachname und Passwort. diese Parameter stehen in einer csv datei
vorname1;nachnme1; Passwort1
Vorname2; ... etc
wie krieg ich diese Parameter aus der csv datei heraus?
mfg josef
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
Kano
Post subject: benutzer aus csv datei anlegen  PostPosted: Sep 09, 2009 - 09:42 PM



Joined: Dec 17, 2003
Posts: 16809

while IFS=";" read vorname nachname passwort; do
echo vorname: $vorname
echo nachname: $nachname
echo passwort: $passwort
done < datei
 
 View user's profile Send private message  
Reply with quote Back to top
gsb
Post subject: benutzer aus csv datei anlegen  PostPosted: Sep 09, 2009 - 09:50 PM



Joined: Sep 23, 2005
Posts: 488

Danke - sehr prompt Winken
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT + 1 Hour
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2007 The PNphpBB Group
Credits
 
Deutsch | English
Logos and trademarks are the property of their respective owners, comments are property of their posters, the rest is © 2004 - 2006 by Jörg Schirottke (Kano).
Consult Impressum and Legal Terms for details. Kanotix is Free Software released under the GNU/GPL license.
This CMS is powered by PostNuke, all themes used at this site are released under the GNU/GPL license. designed and hosted by w3you. Our web server is running on Kanotix64-2006.