Is there a way to set the "ls" command not to output the result of the command "ls" unless the directory exists? So if a directory does not exist it will not output that the directory does not exit.
ls command help
Started by BigLinux, Jul 05 2009 03:58 AM
8 replies to this topic
#1
Posted 05 July 2009 - 03:58 AM
|
|
|
#2
Posted 05 July 2009 - 05:30 AM
Can you give an example, I'm not sure what you mean. Also, have you typed "man ls"? There are a LOT of options for that command.
#3
Posted 06 July 2009 - 11:07 AM
Yes I did... but I did not find a way to do that.. and as for explanation I want that when i type in ls, if the folder does not exist.. I don't want it to output an error.. it just won't say anything.. but if the folder does exist.. I want it to output the result
#4
Posted 06 July 2009 - 06:29 PM
Very nice! Simple and I like the colors. You should get a bot to grab some free content unless your aiming for unique content.
#5
Posted 07 July 2009 - 06:31 AM
I think you posted in the wrong thread..
#6
Posted 08 July 2009 - 05:59 AM
#7
Posted 09 July 2009 - 11:33 AM
No problem :)
So.. any help on fixing this?
So.. any help on fixing this?
#8
Posted 13 July 2009 - 05:51 PM
What is wrong with seeing the error? I dont know of a way to do that.
#9
Posted 14 July 2009 - 07:42 AM
Well, I want to do a script and I'd like to eliminate that error


Sign In
Create Account


Back to top










