|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now! |
|
#1
|
|||
|
|||
|
ls files not directorys
Hi,
Just looked at the man page for ls and counldnt seem to find what I was looking for... I want a way to do an ls and ONLY shows files and not directories.. Theres an option -F which puts a / at the end of the directory names, maybe theres a way to filter out the directory names using this option and something like grep... However the option -F puts a * at the back of some of my filters so I reckon I need some this like.... we are doing like this but there must be a simpler way right? ls -F | grep -v "/" | sed "s/\([^*]*\)\*/\1/g" Thanks in advance... Anthony |
|
#2
|
|||
|
|||
|
try find command
find . -type f -ls any use?
it will traverse lower directories tho |
|
#3
|
||||
|
||||
|
Quote:
if you DO not want a recursive 'ls', i whoud say Quote:
else follow NickPickering suggestion. |
![]() |
| Viewing: Dev Shed Forums > Operating Systems > UNIX Help > ls files not directorys |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|