storing data into text file
Hi, i would like to store my gross wage into my text file in the fifth segment like ${Name},${ID},${HP},${Type}, ${wage}
what codes should i add for me to execute that. Code:
line=`grep -i "$Name" $PAYROLL` |
This sounds like a homework problem, no?
|
Hi,
Quote:
We tried to help OP with this script over at http://www.linuxquestions.org/questi...on-4175483546/... OP: again, please indent your code correctly (if you don't know what that means, either look it up or ask). As for writing to files in a shell script, the simple way is to redirect the output of echo, using > or >> operators. Have a search online. Eg "bash output redirection". Evo2. |
All times are GMT -5. The time now is 06:02 PM. |