Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
Name: arulactive
I have a file named "-bas" this was created by one of the scripts. Can somebody help in deleting this file?

I am having a problem creating a file called -bas. Have you tried something like this:
rm ./*bas
Maybe this discussion removing a - file will help:
To remove a - file, use a path to the file -- either full or relative. Assuming the dash file exists in the mydir directory, provide a full path to the file:
rm /pathto/mydir/-
Or if the file exists in the current directory, provide a relative path:
rm ./-
Use find to remove the file everywhere:
find . -name "-" |xargs rm

You can also run this trick:
rm -i *bas
Just remember to answer N to any file which you do not want to delete, and CTRL-C when the wanted file has passed (or keep pressing N). This trick would work with any weird character, problem is that you MAY end up making mistakes. Be very careful.

![]() |
![]() |
![]() |
| Login or Register to Reply | |
| Login | Register |
| Ads by Google |