The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
weird echo output? TinCanFury Shell Programming and Scripting 6 03-24-2008 03:40 PM
echo doesnot show output samy123 Shell Programming and Scripting 4 01-21-2008 07:15 AM
piping output to echo A1977 Shell Programming and Scripting 3 11-01-2006 05:58 AM
Store output and Echo meyerder Shell Programming and Scripting 2 05-14-2006 06:44 AM
Passing output of sed/echo to a variable donflamenco Shell Programming and Scripting 11 07-13-2005 07:08 AM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1  
Old 06-29-2007
Registered User
 

Join Date: Jun 2007
Posts: 2
What is the output of echo *

Hi all,

Kindly let me know the output of echo * command.
Reply With Quote
Forum Sponsor
  #2  
Old 06-29-2007
Registered User
 

Join Date: Mar 2006
Location: Bangalore,India
Posts: 1,397
Quote:
Originally Posted by shailja View Post
Hi all,

Kindly let me know the output of echo * command.
List out all the files in the directory
Code:
$ echo *
SNMP1 SNMP2 a a.s b b.s f f1 f2 ff ff1 ff2 file m s ss tmp tmp1 x a
$ set -f
$ echo *
*
$ set +f
$ echo *
SNMP1 SNMP2 a a.s b b.s f f1 f2 ff ff1 ff2 file m s ss tmp tmp1 x a
-f Disable wildcard expansion
Reply With Quote
  #3  
Old 06-29-2007
Registered User
 

Join Date: Jun 2007
Posts: 2
Hi,

Thanks for the reply. But I have one query, echo * displays only files in the current working directory or files and directories in the current working directory.
Reply With Quote
  #4  
Old 06-29-2007
kamitsin's Avatar
Registered User
 

Join Date: Nov 2006
Location: /dev/null
Posts: 177
Quote:
But I have one query, echo * displays only files in the current working directory or files and directories in the current working directory.
Files and directory both !!
Reply With Quote
  #5  
Old 06-29-2007
vgersh99's Avatar
Moderator
 

Join Date: Feb 2005
Location: Boston, MA
Posts: 3,003
Quote:
Originally Posted by shailja View Post
Hi,

Thanks for the reply. But I have one query, echo * displays only files in the current working directory or files and directories in the current working directory.
everything - the easiest way to find out is to try it.
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 01:28 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0