![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| 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 |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
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!
|
|
||||
|
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. |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|