The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
Google UNIX.COM


Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
to get the timestamp of files from the files and folders in Unix kishan HP-UX 2 04-09-2008 05:20 AM
removing old files except configuration files and folders jamcalicut Shell Programming and Scripting 1 11-09-2007 12:34 PM
List Files & Folders created/modified tipsy Shell Programming and Scripting 2 10-24-2006 10:22 AM
How to Differentiate Between Files and Folders? dgower2 UNIX for Dummies Questions & Answers 6 04-28-2006 09:10 AM
list folders but not symbolic links esham Shell Programming and Scripting 7 04-14-2005 05:34 AM

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 01-18-2008
Registered User
 

Join Date: Jan 2008
Posts: 48
Unhappy list only files or folders

Hi experts,

i wanna to list either file or folder.
please help me

Thanks (in advance)

Jagannath
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 01-18-2008
Registered User
 

Join Date: Jun 2007
Location: Mumbai,India
Posts: 96
pl clear about ur question...??
:-(
Reply With Quote
  #3 (permalink)  
Old 01-18-2008
Registered User
 

Join Date: Jan 2008
Posts: 48
Question list files or folders

Thanks for reply

there are 6 files & 9 folder in my /home/jag/ folder

so when i am running command this command to list files

#find *.txt or find *.*

then it shows 5 out off 6 files i want see all files

second when i m running this command to view all folders

#ls --hide=*.*
it shows all folder excluding one which named as jag12.11.2007

i want to view files & folders

again thanks for reply

Please help me
Reply With Quote
  #4 (permalink)  
Old 01-18-2008
Registered User
 

Join Date: Jun 2006
Posts: 73
ls -l | grep ^d -> this will list all the directories

ls -l |grep ^- -> thils will list all regular files
Reply With Quote
  #5 (permalink)  
Old 01-18-2008
Registered User
 

Join Date: Jan 2008
Posts: 48
Smile :b:Thanks a lot quintet

Thanks a lot
problem has been solved

can u tell me whts use of " ^ " (meaning)

again thanks
Reply With Quote
  #6 (permalink)  
Old 01-18-2008
Registered User
 

Join Date: Jun 2006
Posts: 73
^ means beginning with
Reply With Quote
  #7 (permalink)  
Old 01-18-2008
Registered User
 

Join Date: Jan 2008
Posts: 48
Thanks

Quote:
Originally Posted by quintet View Post
^ means beginning with
Thanks for express reply

can i add u in my buddy list?
Reply With Quote
Google UNIX.COM
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 12:22 PM.


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

Content Relevant URLs by vBSEO 3.2.0