PDA

View Full Version : [ubuntu] Shell command doubts



navaneethan
August 18th, 2009, 08:33 PM
hi all,


found='ls'
echo ${found:+"This directory is not empty"}

what will be the output when we enter into bash

please explain also


echo "Enter file name:\c"
read flname
fname=${flname:-emp.lst} // what it means

1.compare the above two

2.what willbe the output?

3.what is mean by "/c"

Bachstelze
August 18th, 2009, 08:34 PM
what will be the output when we enter into bash

Why not try and find out?

Bachstelze
August 18th, 2009, 08:44 PM
Actually this looks very much like a school assignment. Closed.