I entered a Terminal command into TextEdit, but i don't know the hash to Terminal, so I can't change it. I tried changing it into .bash and .rtf, but they don't work. Help Plz???
When using TextEdit to write shell scripts or similar,
- make sure that TextEdit is in plan text (and not in rich text) mode (check the format menu)
#!/bin/bashas the first line
chmod +x /path/to/fileonce after saving it
/path/to/file(or, if it is in the current directory,
./file) to execute it