Monday, January 30, 2012
8:42 PM

File Test Operators in Shell Script

File Test Operators in Shell Script in Linux/Unix


                                       There are many file test Operator which can be used to test various attributes of file like its type , permissions.

1. -f : File exist and is a regular file

$ ls -ltotal 112-rw-r--r-- 1     sandeep sandeep 31 2012-01-01 20:10         abc.lst (regular file)
drwxr-xr-x 2  sandeep sandeep 4096 2011-12-27

0 comments:

Post a Comment