I am seeing a ? in the directory
I am seeing a ? in the directory
am 11.09.2007 09:51:11 von parag_paul
hi All,
When I do a ls -a I see the following in my directory ???
.. hier_dynamic_walk_base.tcl
... hier_dynamic_walk_show.tcl
? hier_walk_base.ucli
driv_loads_proc.ucli hier_walk_dri_loads.ucli
expr_proc.ucli hier_walk_expr.ucli
formt_proc.ucli
-Parag
Re: I am seeing a ? in the directory
am 11.09.2007 10:04:10 von Matteo Corti
> hi All,
>
> When I do a ls -a I see the following in my directory ???
>
> . hier_dynamic_walk_base.tcl
> .. hier_dynamic_walk_show.tcl
> ? hier_walk_base.ucli
> driv_loads_proc.ucli hier_walk_dri_loads.ucli
> expr_proc.ucli hier_walk_expr.ucli
> formt_proc.ucli
>
> -Parag
Dear Parag,
someone or some program created a file (or a link) named '?'. Do an
'ls -l' to see if it is a file or a link if its size in bigger then 0.
You can also try to do 'file \?' to see its type or 'cat \?' to
display the content.
Matteo
Re: I am seeing a ? in the directory
am 11.09.2007 14:29:02 von Maxwell Lol
Teo writes:
> someone or some program created a file (or a link) named '?'.
or else it's a non-printing character the shell converts to "?"
(Giving you a clue how to construct a shell metacharacter to match).
to get rid of it, you can try
rm -i "?"
just make sure you don't delete a wrong file.
Re: I am seeing a ? in the directory
am 11.09.2007 15:15:25 von Scott McMillan
On Tue, 11 Sep 2007 00:51:11 -0700, "parag_paul@hotmail.com"
wrote:
>hi All,
>
>When I do a ls -a I see the following in my directory ???
>
>. hier_dynamic_walk_base.tcl
>.. hier_dynamic_walk_show.tcl
>? hier_walk_base.ucli
>driv_loads_proc.ucli hier_walk_dri_loads.ucli
>expr_proc.ucli hier_walk_expr.ucli
>formt_proc.ucli
>
>-Parag
man ls
If your ls has it, try the --show-control-chars option.
Scott McMillan
Re: I am seeing a ? in the directory
am 11.09.2007 16:44:17 von Joachim Schmitz
"Scott McMillan" schrieb im Newsbeitrag
news:s05de3h3a3rk6fjm6gnik87lbu5n9235bc@4ax.com...
> On Tue, 11 Sep 2007 00:51:11 -0700, "parag_paul@hotmail.com"
> wrote:
>
>>hi All,
>>
>>When I do a ls -a I see the following in my directory ???
>>
>>. hier_dynamic_walk_base.tcl
>>.. hier_dynamic_walk_show.tcl
>>? hier_walk_base.ucli
>>driv_loads_proc.ucli hier_walk_dri_loads.ucli
>>expr_proc.ucli hier_walk_expr.ucli
>>formt_proc.ucli
>>
>>-Parag
>
> man ls
> If your ls has it, try the --show-control-chars option.
or the POSIX 'ls -b' to show nonprintable characters in octal notation.
Bye, Jojo
Re: I am seeing a ? in the directory
am 12.09.2007 06:41:17 von Barry Margolin
In article <86abrt2xo1.fsf@localhost.localdomain>,
Maxwell Lol wrote:
> Teo writes:
>
> > someone or some program created a file (or a link) named '?'.
>
> or else it's a non-printing character the shell converts to "?"
What does the shell have to do with the output of "ls"?
--
Barry Margolin, barmar@alum.mit.edu
Arlington, MA
*** PLEASE post questions in newsgroups, not directly to me ***
*** PLEASE don't copy me on replies, I'll read them in the group ***
Re: I am seeing a ? in the directory
am 12.09.2007 13:30:17 von Maxwell Lol
Barry Margolin writes:
> In article <86abrt2xo1.fsf@localhost.localdomain>,
> Maxwell Lol wrote:
>
> > Teo writes:
> >
> > > someone or some program created a file (or a link) named '?'.
> >
> > or else it's a non-printing character the shell converts to "?"
>
> What does the shell have to do with the output of "ls"?
You are right. It's ls. My error.
Re: I am seeing a ? in the directory
am 12.09.2007 21:17:50 von anjoel.s
Hello for all !
,... Well,... I guess :) just think :),...
"if" <- is a command
"[" <- is alias for "test"
"test" <- is a command
"${rtn}" = "0" and "${rtn2}" <- is parameter for command test
test or [ <- is parameter for command if,...
'if' statement is like eval,.. because run all parameter with
'execv()' an C/C++ function then check this
The default system return is '0' or not zero for executions,.. '0' for
'if' statement is like true or '1',... :)
well now if I to do : '#if [ $a = $b and $b = $c ] && [ $c = $d ]'
"$a = $b and $b = $c" <- is parameter for test command ,.. then
command test parse the 'and' statement,.... and return '0' or '!0' for
shell ,.. ( you can get it from $? ) ,.. the system later will do:
$? && [$c = $d] ,.. look this,.. "&&" will be checked from system and
not by command ,...
here is the difference ,.. [] && [] ,.. the system will run the
test,..
and [ $a and $b ] the command will run the test
--
___________________
Anderson J. de Souza
- Networking and Security -
[ - Professional Consulting - The best firewall - ]
http://anjoel.s.googlepages.com - anjoel.s@gmail.com
Phone: +55 (54) 9115.13.15 - Sip: 1-747-006-0374