Check that the argument is a file
|
Original Message
|
Name: Jose K
Date: April 30, 2005 at 00:54:22 Pacific
Subject: Check that the argument is a fileOS: Red Hat 9CPU/Ram: 256 |
Comment: Hi In Shell Script, how do I check that the argument is a file? Thanks in advance Jose
Report Offensive Message For Removal
|
|
Response Number 3
|
Name: ravi.kumar
Date: May 1, 2005 at 23:48:21 Pacific
Subject: Check that the argument is a file |
Reply: (edit) if(-f $1) then echo " $1 is file" else echo " $1 is not a file" fi
Hello I am working extensively on SCM and Unix
Report Offensive Follow Up For Removal
|
Use following form to reply to current message: