find and replace
i am trying to get the listing of all ordinary files names i can get the names but i need to remove some of the extra text
ls -Q "fileName" this is the command i am using i want to get ride of the quotes have it just display the name. I am using this in a script so any help would be appreciated |
Hello,
Hold on... Are you saying you want to get rid of everything in quotes? I can not quite understand your explanation here... Could you possibly read over what you said, and edit your post so it makes more sense? Cheers, Josh |
Well, if you don't want the quotes around the filenames just skip the -Q flag..
|
Quote:
or "ls -Q | sed 's/"//g'" |
Just use ls.
|
More information might be required as the parsing of ls in a script is generally a bad idea, see here.
|
All times are GMT -5. The time now is 09:00 PM. |