Total programming newbie, probably extremely naive - bear with me.
As part of a current assignment, we've been given the task of grouping specific commands into a shell script. (date, hostname, arch...etc... top, history), using VIM to type the script.
My script is extremely basic, makes liberal use of "echo " to create blank lines for easy readability. I've got almost everything working - except every time I run the shell script, it fails when it reaches the "history" command.
The segment of the script is:
echo Finally, here is the output of the history command echo history echo echo -------------THE END---------------------
But upon running the script (using "sh [filename].sh"), the output reads:
[filename].sh: 66: [filename].sh: history: not found
I figure 66 refers to the line of the text document/script.
Can anyone help me get this working? I feel like it should be so simple, but I've tried numerous variations and am met with this "not found" message every time.
Thanks for your time!