Sorry I know I probably sound VERY stupid but I'm in the process of writing a Linux script and I'm getting stuck! I'm totally new to this OS so it's kind of frustrating. I've managed to work out most of it from help sites and Linux tutorials but I have two questions that I just can't find the answers to anywhere!
1) Does anyone know how I can create a file that contains a list of all the files in the current directory? I can do a list of the files, that's simple enough, but how do I create a file with the list inside???
2) I need to write a script that reads in ten numbers (either one at a time during script execution or as parameters) and prints to the screen the sum of these numbers. This one REALLY has me stumped - I can't even figure out where to begin with this one so any help at all would be great!
I've been through so many Linux tutorials and help sites but all the jargen is sometimes too difficult for me to understand because, like I said, I'm completely new to this. If anyone could explain it in simple English i would be eternally indebted!