New Member FAQ
|
Forums
|
Earn Revenue
Resources
Entrance
Ask Experts
Exam Papers
Jobs
English
Projects
Universities
Colleges
Courses
Schools
Training
My India
Members
|
Communities
|
Business Directory
|
Classifieds
|
Reviews
|
Silverlight Games
|
Peer Appraisal
|
Bookmarks
|
Polls
|
Mentors
|
Links
|
B.Tech Projects
|
Lobby
|
Gift Shop
|
Chat
My Profile
Sign In
Register
AdSense Revenue
Active Members
Today
N K Ravishanka...
(50)
atiya
(45)
sridevi
(41)
Last 7 Days
Mr. Anindya
(2274)
PROSENJIT MANN...
(2013)
Pawan Bahuguna
(1251)
more...
Awards & Gifts
Online Exams
Aptitude Questions
General Aptitude Tests
Medical Entrance
Engineering Entrance
Bank Tests
TOEFL & IELTS Questions
Fresher Jobs
Our fresher job section is exclusively for fresh graduates! Find jobs for freshers in major Indian cities including Bangalore, Chennai, Hyderabad, Pune or Kochi
Resources
Find educational articles, blogs, discussion threads and other resources.
Colleges
Find details about any college in India or search for courses.
Unix
Posted Date: Total Responses:
0
Posted By:
vasudevan
Member Level:
Gold
Points/Cash
: 2
PROGRAM:
clear
echo "Enter the file name"
read name
ls -l > t
if grep $name t > t1
then
c2=`cat t1 | cut -d " " -c2`
fi
c=`echo $c2 | wc -c`
if [ $c -gt 1 ]
then
if [ $c2 = 'r' ]
then
echo "The File has Read Permission"
else
echo "The File has no Read Permission"
fi
fi
c2=`cat t1 | cut -d " " -c3`
c=`echo $c2 | wc -c`
if [ $c -gt 1 ]
then
if [ $c2 = 'w' ]
thenfi
fi
c2=`cat t1 | cut -d " " -c3`
c=`echo $c2 | wc -c`
if [ $c -gt 1 ]
then
if [ $c2 = 'w' ]
then
echo "The File has Write Permission"
else
echo "The File has Not Write Permission"
fi
fi
c2=`cat t1 | cut -d " " -c4`
c=`echo $c2 | wc -c`
if [ $c -gt 1 ]
then
if [ $c2 = 'x' ]
then
echo "The File Has Executable Permission "
else
echo "The File Has No Executable Permission"
fi
fi
OUTPUT :
Enter the file name
eb1
The File has Read Permission
The File has Write Permission
The File Has No Executable Permission
$
Project Feedbacks
No feedbacks found. Be the first to respond and make money from
revenue sharing program
.
Post Feedback
You must
Sign In
to post a feedback.
Next Project:
Oracle
Previous Project:
Unix
Return to Project Index
Post New Project
Related Projects
Array operation acceptor with array
Elementary root & IMultiVariable Operation Acceptor
Dijkstra’s Algorithm
Multi Variable Array Operation Acceptor
Abstract Code Creator
Advertise Here
Contact Us
Advertise
Editors
Privacy Policy
Terms Of Use
ISC Technologies.
2006 - 2009 All Rights Reserved.