You don't say what you want to do with the permissions, but most shells have a 'test' command that can look at various permissions. Look at the 'man' command for the shell you are running in to see what tests are possible on files and directories.
You can check to see if the target is a directory, or a file, and whether it has read, write, or execute/search permissions. Again, it varies by the shell environment.
dono
write a shell program for finding out gcd of three given numbers? write a shell program for finding out gcd of three given numbers? write a shell program for finding out gcd of three given numbers? check bellow link http://bashscript.blogspot.com/2009/08/gcd-of-more-than-two-numbers.html
Make sure it is readable and executable (permissions). Then, just type in the name of the shell file to execute it.
k
Use the 'chmod' command to change permissions on any file. Note: you have to be the owner (or the superuser) to do this.
no thanks
in winxp del *.* /Q /S
No, the shell needs both execute and read permissions to run the script.
seq 1 2 99
The 'users' command should do that; you don't need to write a shell script to get that information in that format.
see : Write_a_shell_program_using_the_if-the-else_to_test_whether_a_variable_name_is_a_directory_or_a_file
tr [:lower:] [:upper:] < /etc/passwd > somefile