Help ME!! bash script
i am fairly new at bash scripting. i have a problem that i want to understand more.
how would i create a script (name).sh that sets an alias for the less command so that it will diplay numbers when 1 is used and the filename passed. then reads th /etc/passwd file, ise the variable Line to store the data Also uses a function to process the data from /etc/passwd a) use the global variable,Line, when processing the data b) information passed to the function from the main script is: 1. the username field number 2. the UID field number c) the function will determine which UIDs are less than 100 and then write thoe to a file named: results.me.txt in the users home directory i: use the form: |
Smells like homework. What have you come up with so far?
|
yes as a second assignment i feel is pretty advanced, so i have gone into vim and set up the script but i am having trouble with the alias command
|
|
Quote:
|
Post the output of the script you made in vim so TB0ne can read it.
We can't advise you on something we can't see. |
All times are GMT -5. The time now is 12:13 AM. |