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

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
get files from multiple directories using FTP amit1209 Shell Programming and Scripting 2 09-26-2007 10:39 AM
Using ls on multiple directories ntekupal UNIX for Dummies Questions & Answers 3 08-03-2007 11:47 PM
moving directories to new directories on multiple servers mackdaddy07 Shell Programming and Scripting 0 04-06-2007 12:30 PM
grep on multiple directories thedude5bc UNIX for Dummies Questions & Answers 1 01-20-2006 04:11 PM
Multiple protected directories ericg UNIX for Dummies Questions & Answers 2 06-10-2002 11:58 PM

 
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
Prev Previous Post   Next Post Next
  #1 (permalink)  
Old 08-02-2007
ntekupal ntekupal is offline
Registered User
  
 

Join Date: May 2007
Location: Dallas, TX
Posts: 13
Question Using ls on multiple directories

Hi,

I am using ls command as below to get the list of *.edi files from 2 different subdirectories as1 & as2:

/ntekupal/test$ ls ./as1/*.edi ./as2/*.edi

It is giving me list of edi files in these folders as below :

./as1/6df667.edi ./as2/823ssd3.edi

Now my requirement is to just get the list of files without showing the absolute path like below :

6df667.edi 823ssd3.edi

Thanks
Raj.
 

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 12:32 AM.


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