LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 09-02-2005, 01:51 PM   #1
cetoute14
LQ Newbie
 
Registered: Aug 2005
Posts: 3

Rep: Reputation: 0
script batch linux


Salut la compagnie,
Je souhait que vous m'aidiez à réaliser un script batch en linux permettant d'afficher la liste des utilisateurs du système.

Ce script doit afficher les champs suivants :

a- Nom d'utilisateur
b- Nom complet de l'utilisateur
c- Repertoire maison de l'utilisateur

NB. si Vous donnez le script au complet ce serait mieux


Hi every body,
I wish you'll help me to realize a batch script in Linux daring to post up the system users list.

This script must post following fiel up:
a- User name
b-Full user name
c-user home Directory

NB. tst your script before5 14 red


You know that i should be able to find that information in /etc/passwd


Last edited by cetoute14; 09-02-2005 at 06:40 PM.
 
Old 09-02-2005, 02:15 PM   #2
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Debian Testing
Posts: 19,192
Blog Entries: 4

Rep: Reputation: 475Reputation: 475Reputation: 475Reputation: 475Reputation: 475
cetoute14, welcome to LQ On LQ, english is the primary language. Could you please reply to your post with a translation for those of us who do not read French. That means that your question will be understood by more people and you will be more likely to receive usable answers.

Thanks
 
Old 09-02-2005, 06:06 PM   #3
cetoute14
LQ Newbie
 
Registered: Aug 2005
Posts: 3

Original Poster
Rep: Reputation: 0
Linux batch script

Hi every body,
I wish you'll help me to realize a batch script in Linux daring to post up the system users list.

This script must post following fiel up:
a- User name
b-Full user name
c-user home Directory

NB. tst your script before5 14 red14 red
 
Old 09-02-2005, 06:36 PM   #4
homey
Senior Member
 
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 61
Looks like homework! You should be able to find that information in /etc/passwd .
Useful tools would be grep and awk
 
Old 09-02-2005, 06:45 PM   #5
cetoute14
LQ Newbie
 
Registered: Aug 2005
Posts: 3

Original Poster
Rep: Reputation: 0
i know that i should be able to find that information in /etc/passwd

you do it and then you'll tell the reply get it
 
Old 09-02-2005, 07:37 PM   #6
Earthwings
LQ Newbie
 
Registered: Aug 2005
Location: Karlsruhe, Germany
Distribution: Gentoo, Kubuntu
Posts: 20

Rep: Reputation: 0
Quote:
Originally posted by cetoute14
i know that i should be able to find that information in /etc/passwd
You only need cut to do it, see man cut.

Quote:
you do it and then you'll tell the reply get it

I think this thread should be closed, these homework questions are pretty annoying.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Change batch script to shell script alan.belizario Programming 5 03-31-2005 12:41 AM
Change batch script to shell script alan.belizario Linux - Software 1 03-30-2005 01:49 AM
Help w/ batch/shell script mikehlinuxquest Linux - General 5 09-13-2004 04:41 PM
Linux box calling a batch script on a windows box to run? Is it possible? joelhop Programming 8 05-17-2004 04:49 PM
Batch mv and tr script ... OrangeWarp Linux - General 1 12-11-2002 05:14 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 08:06 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration