The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Removing a file name (-T-G1) bobo UNIX for Dummies Questions & Answers 3 03-05-2008 11:26 AM
Removing the first and last lines in a file naveendronavall Shell Programming and Scripting 2 12-30-2007 01:22 AM
removing a line from a file and then placing into another file iago UNIX for Dummies Questions & Answers 1 09-09-2007 02:46 AM
Removing lines from a file computersaysno UNIX for Dummies Questions & Answers 6 11-14-2006 06:50 PM
removing file vbaskar UNIX for Advanced & Expert Users 5 02-12-2002 04:43 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 02-14-2008
GTRocker8824 GTRocker8824 is offline
Registered User
  
 

Join Date: Feb 2008
Posts: 3
Unhappy Need Help Removing a File

I am using a text based secure shell and when I do a ls -al, I have this odd file in my directory. It is in the format of #text.txt#. What does the # on both sides of the filename mean, and how exactly would I go about removing this file? The simple rm -f and rm -rf do not work. Any help would be appreciated. Thanks!
  #2 (permalink)  
Old 02-15-2008
agn agn is offline
Registered User
  
 

Join Date: Feb 2008
Posts: 172

Code:

rm \#text.txt\#

A simple rm(1) won't work because a "# " starts a comment in most of the shells. So anything after # is ignored by shell. The solution is to escape the # by using '\' or by using single quotes around the filename.
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 10:30 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0