I need to create a script that will create a file and dump formatted text into it. I need to run the script with an argument which will be the filename.
#!/bin/sh echo "Hello world" > ../directory/$arg1.txt
I need the text added to the file to be like:
class Arg1 {
public function x() {
....
}
}
Can anybody help me create a script to do this?











