The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

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 and shell scripting languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Recursive FTP -- here at last. Perderabo Shell Programming and Scripting 52 03-25-2009 12:15 PM
Recursive SFTP MohanTJ Security 1 05-19-2008 12:17 AM
Recursive grep upstate_boy UNIX for Dummies Questions & Answers 16 05-18-2008 05:16 PM
recursive rcp Nicol Shell Programming and Scripting 6 11-06-2003 11:52 AM
Recursive FTP aslamg UNIX for Dummies Questions & Answers 1 03-08-2001 04:27 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 07-16-2007
pbsrinivas pbsrinivas is offline
Registered User
  
 

Join Date: Jul 2006
Posts: 141
ls automatically does a recursive ls of dir

when i have a file and directry starting with same letter and i do a ls it does a recursive ls..

example

output of ls -ltr

-rw-r--r-- 1 root system 0 Jul 16 15:26 a
drwxr-xr-x 2 root system 256 Jul 16 15:26 aa
drwxr-xr-x 2 root system 256 Jul 16 15:26 bb
-rw-r--r-- 1 root system 0 Jul 16 15:26 b


output of ls -ltr a*
-rw-r--r-- 1 root system 0 Jul 16 15:26 a

aa:
total 0
-rw-r--r-- 1 root system 0 Jul 16 15:26 insideaa


it automaticaly goes inside aa dir and display the contents

i just wanted the files or dir names startring with a* to be displayed
  #2 (permalink)  
Old 07-16-2007
Shell_Life's Avatar
Shell_Life Shell_Life is offline
Registered User
  
 

Join Date: Mar 2007
Location: Bahia, Brazil
Posts: 695
Try this:
Code:
ls -d a*
  #3 (permalink)  
Old 07-16-2007
pbsrinivas pbsrinivas is offline
Registered User
  
 

Join Date: Jul 2006
Posts: 141
Quote:
Originally Posted by Shell_Life View Post
Try this:
Code:
ls -d a*


thanks...
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 04:11 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0