Computing.Net > Forums > Linux > question about linux

question about linux

Reply to Message Icon

Original Message
Name: jack_niit
Date: April 11, 2007 at 03:12:16 Pacific
Subject: question about linux
OS: linux
CPU/Ram: 512
Comment:

how do i use echo command to enter ID, first name and last name? but ID auto generation.



Report Offensive Message For Removal

Response Number 1
Name: jack_niit
Date: April 11, 2007 at 03:18:26 Pacific
Subject: question about linux
Reply: (edit)

how do i use echo command to enter ID, first name and last name? but ID auto generation and data input file

ouput should be:
1 : jane : su
2 : michale : tran


Report Offensive Follow Up For Removal

Response Number 2
Name: Fist (by fmwap)
Date: April 11, 2007 at 03:33:15 Pacific
Subject: question about linux
Reply: (edit)

Where do you intend to get this data from?

echo '1 : jane : su\n2 : michale : tran'

Is an example...if you're typing it all out by hand...


Report Offensive Follow Up For Removal

Response Number 3
Name: jack_niit
Date: April 11, 2007 at 03:47:59 Pacific
Subject: question about linux
Reply: (edit)

no
i am doing exercise in class: use shell script to write code enter ID, first name, last name and give it into file (note: ID auto generation)

use looping? and how do it


Report Offensive Follow Up For Removal







Use following form to reply to current message:

   Name: From My Computing.Net Settings
 E-Mail: From My Computing.Net Settings

Subject: question about linux

Comments:

 


  Homepage URL (*): 
Homepage Title (*): 
         Image URL: 
 
Data Recovery Software