This is a Unix Shell Script Qusn
Moderators: chulett, rschirm, roy
This is a Unix Shell Script Qusn
I know its not the right place to post it but I think someone should be able to give me answer to this Qusn:
how to make a shell script abc.sh -> abc.sh*
what is the difference between the above two forms and is abc.sh* an executable form.
How do we create abc.sh* from abc.sh
Thanks
Sumeet
how to make a shell script abc.sh -> abc.sh*
what is the difference between the above two forms and is abc.sh* an executable form.
How do we create abc.sh* from abc.sh
Thanks
Sumeet
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
The second form is a "regular expression" and can not be used in the command position of a command.
A Google search on UNIX "regular expression" returns over 1 million hits. One of the best is this one.
A Google search on UNIX "regular expression" returns over 1 million hits. One of the best is this one.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
Ah, no-one mentioned ls arguments.
For each of the three (user, group, other) pieces, the mode (permissions) map to an octal numeric value. 4 = read, 2 = write and 1 = execute.
Therefore, 755 would show up as rwxr-xr-x (a fairly common combination).
The chmod command has a letter-based syntax as well as the numeric syntax. For example, you can grant (additional) execute permission to the group using chmod g+x filename as the command. Research the man page for chmod to get more information.
For each of the three (user, group, other) pieces, the mode (permissions) map to an octal numeric value. 4 = read, 2 = write and 1 = execute.
Therefore, 755 would show up as rwxr-xr-x (a fairly common combination).
The chmod command has a letter-based syntax as well as the numeric syntax. For example, you can grant (additional) execute permission to the group using chmod g+x filename as the command. Research the man page for chmod to get more information.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.