[Ilugc] Re: Oh! bash is confusing

  • From: bharathi@xxxxxxxxx (Bharathi Raja)
  • Date: Mon, 16 Feb 2004 05:54:52 -0800 (PST)



--- Sridhar R <sridharinfinity@xxxxxxxxx> wrote:

--- nagendra <nchumbal@xxxxxxxxx> wrote:

At 06:31 PM 2/16/2004 +0530, Ramanraj K wrote:
Sridhar R wrote:

How to delete file ??

rm '??'

rm ./??

Try these

$ touch a??b
$ rm a??b  # works

$ touch a##b
$ rm a##b  # works

$ touch ??
$ rm ??    # works!! ;>-

$ touch ^V^G^V^G
$ rm ??    # works! sigh!

(Suraj! note the above.  I said about a file '??'.  I
was unable to remove it using 
$ rm ??

But now, for `touch ^V^G^V^G` it works.  Bash is very
confusing!

 Try this C code to delete the file ??
 
#include<stdio.h>
main()
{
 remove("??");
 return 0;
}

  Using this u can delete any file,u no need to use escape characters in the 
remove() function
                                          -----bharathi raja




_____________________________________________________________
Linux.Net -->Open Source to everyone
Powered by Linare Corporation
http://www.linare.com/

Other related posts:

  • » [Ilugc] Re: Oh! bash is confusing - Bharathi Raja