Search Results

Search: Posts Made By: darkyoda2
15,047
Posted By darkyoda2
I think
I think I have found the solution. With LS, if you add " " in a filename, UNIX searches for the exact name between the " ".

So if you type: ls "/usr/local/this is a test/*.txt"; UNIX searchez for...
15,047
Posted By darkyoda2
LS with spaces
Hi! I'm fairly new to UNIX so don't mention that my question is stupid.

I have many problems with spaces in folders and files names.

Let's say I have the following files:
toto.txt
this is...
127,987
Posted By darkyoda2
That's ok. My command: ls -l | grep ^- | awk...
That's ok. My command: ls -l | grep ^- | awk '{print $9}'

does exactly what I want. Thanks for all your replies!

I'm on AIX for your information.
127,987
Posted By darkyoda2
The only command I have found so far to do...
The only command I have found so far to do exactly the same thing that this WIndows command do : dir /a:-d

IS

ls -l | grep ^- | awk '{print $9}'

Is there an easiest way?
127,987
Posted By darkyoda2
Thanks google! I am on the rigth track. I...
Thanks google!

I am on the rigth track. I have execute the command ls -l | grep ^- to display only the files. But I just want to display the name of each file.

How can I do this?
127,987
Posted By darkyoda2
LS files only
Hi! I'm really a newbie in Unix.

I want to list all the files (not the folders) in a certain directory (not recursive). How can I do this?

In Windows, the command is: dir /a:-d

Thanks
Showing results 1 to 6 of 6

 
All times are GMT -4. The time now is 06:31 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy