Home | Contact Us | Sitemap
DWHlabs provides Data Warehouse education services.This web portal is very useful to the Database professionals,
Data Warehouse professionals, UNIX professionals etc.,
  About Us Advertise Support us Tell your Fren Testimonial Contact Us  
 
 
Please help us continue development of this website and it's services!
 
 

 


 
UNIX Lab -SHELL SCRIPTING
Sponsered Links
 
 
 
Shell Scripting Exercise Next Question
   
 
9 Write a script to check the given type of file?
$vi type_file.sh
echo "enter file name:"
read fname
if [ -e $fname ]
then
if [ -f $fname ]
then
echo "regular file "
else
echo "directory file "
elif [ -l $fname ]
then
echo " link file"
elif [ -b $fname -o -c $fname ]
then
echo "Device file"
fi
:wq

** How to excutre shell script ?
$./open.sh or $sh open.sh

DWH 3Colors
CERTIFICATION GUIDE
DATA DICTIONARY
ALL ARTICLES
   
Data Warehouse Lab

- ETL TOOL
INFORMATICA
OTHER TOOLS

- REPORTING TOOL

BUSINESS OBJECTS
OTHER TOOLS

Database Lab

- ORACLE
SQL
PL/SQL

- DB2
OTHER TOOLS

Unix Lab

Project Lab

DWH Schools

Books Store


 
  About Us Advertise Support us Tell your Fren Testimonial Contact Us  
© 2008 DWHlabs
Privacy Policy | Terms & Conditions