Why hidden script will not come up?
I have just setup a hidden shell script named ~/source/.myfuncs
. The source
directory also has another directory called corp_phones
. I am trying to get the hidden script .myfuncs
to sort the corp_phones
directory by typing at the shell prompt . .myfuncs
the corp_phones
directory does not come up. Instead a get a thes message at the prompt:
$ sort_dept
sort: open failed: +4: No such file or directory
This is how the hidden .myfuncs
script is setup in the vi editor:
sort_name()
{
sort +1 -t: corp_phones
}
sort_date()
{
sort +6 -t: corp_phones
}
sort_dept()
{
sort +4 -t: corp_phones
}
The file I want to sort is corp_phones
which is also in the source
directory. Once again I setup the hidden script in the source
directory.