Advertisement

11.26.2007 at 05:48PM PST, ID: 22984071
[x]
Attachment Details

List only file name

Asked by Quetysis in IBM AIX Unix

Tags: ls, list, file, names

Is there a way in AIX to only list the file name?

If I run the command below, only the file name is displayed.
ls -1 /tmp/

If I run the command like this, the path is included in the file name.   How can I get only the file name like the first command above?
ls -1 /tmp/*.txtStart Free Trial
[+][-]11.27.2007 at 01:48AM PST, ID: 20356629

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: IBM AIX Unix
Tags: ls, list, file, names
Sign Up Now!
Solution Provided By: amirs80
Participating Experts: 1
Solution Grade: A
 
 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628