![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| SuSE SUSE Linux is a major operating system. The developer rights are owned by Novell, Inc. |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
if [ -r * ] then
if [ -r * ] then or if [ -w * ] then
those commands are not working example kganeshb@its04489:~/scripts $ ls -l total 340 -rw-r----- 1 kganeshb users 9038 Oct 22 13:23 109_db.t -rw-rw---- 1 dlc users 1413 Oct 10 17:40 1.txt -rw-rw---- 1 kganeshb users 45 Jan 28 13:46 a -rw------- 1 kganeshb users 197 Dec 26 13:19 aa -rw-rw---- 1 kganeshb users 99 Jan 28 13:37 aaa -rw-rw---- 1 kganeshb users 110 Jan 28 12:29 aaa.sh -rw-r--r-- 1 kganeshb users 11146 Sep 29 15:36 aat.txt -rw-rw---- 1 kganeshb users 58 Dec 29 19:03 aa.txt -rw-rw---- 1 kganeshb users 639 Jan 8 11:48 add.sh Script: if [ -r * ] then echo "readable" else echo "not" fi Output: bash: [: too many arguments not Note: Currently we are using the Suse 2.0 Version. |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|