Ubuntu :: Cannot Delete File With Backslash In Filename
Feb 6, 2011
Ubuntu 10.04 Guest in VirtualBox
I'm trying to delete a file called
Code:
springlobby_config.h
I've tried:
Code:
rm -i *
which gives me:
Code:
rm: cannot remove `springlobby_config\.h': No such file or directory
Tried to rename it:
Code:
mv * abc
which gives me:
Code:
mv: cannot stat `springlobby_config\.h': No such file or directory
I don't think it's a permissions issue because usually the terminal would say permission denied, but perhaps I'm wrong.
View 9 Replies
ADVERTISEMENT
Jun 6, 2010
I have downloaded torrent from some chinese tracker. It has ???? and some other symbol charaters in directory name. How to delete that file and directory?
View 5 Replies
View Related
Mar 23, 2011
I run 5GBFree.com a free hosting site. As you can imagine, it gets quite a few people signing up to abuse the service.Recently I've found a LOT of people setting up sites with a particular script that floods forums and IRC chat rooms. The names of the files are as follows:
peindom1.php
peindom2.php
peindom3.php
peindom4.php
Is there a command I can run to remove files with these filenames ANYWHERE on the server (so basically, a command to go through all folders on the server and remove instances of that name
View 14 Replies
View Related
Oct 26, 2010
I just installed Picasa from google and it has corrupted my picture database. The good thing is that it has done it in an organized manner. It appended -1 -2 -3 and so on to the copies file name. They look like (filename.jpg filename-1.jpg filename-2.jpg) the original having no numerical suffix just (filename.jpg)How do i write a command line to remove all of the undesirables without deleting the origionals?
View 7 Replies
View Related
May 21, 2011
I need a command to find the all files which filename contains the text "SomeText" and to delete that files!From /home/movie/wp-content/uploads/this folder I have lots of files and folders .Also I need that for folders and subfolders who contains some text in folder name "someTextInFolderName"
View 13 Replies
View Related
Jan 23, 2011
$ uname -a
Linux a 2.6.35.10-74.fc14.i686.PAE #1 SMP Thu Dec 23 16:10:47 UTC 2010 i686 i686 i386 GNU/Linux
$ lsb_release -a
LSB Version: :core-4.0-ia32:core-4.0-noarch
[Code].....
How can I set a pattern that will output a filename equal to the original filename? E.g.
something.mp3 → something.ogg
And why isn't this implemented in SoundConverter?
PS: {Filename} doesn't work.
View 1 Replies
View Related
Feb 28, 2011
My employer issues pdf files with everyones work schedules. I copy the content and save it as plain text in a file called unformatted (hope to be able to automate this step someday). Im working on a SED script that reduces unformatted to only display what I want to see and saves the result in a file Iïve named formatted. After that I have to manually copy formatted and save it with that days date as a filename e.g. 2011-02-25 or whatever day is scheduled in the pdf, for use on a mobile device (Nokia N900). I noticed that the date occurs on certain lines in the file so I added a line like:
sed -n 's/^Date: (201[1-9])/([0-1][0-9])/([0-3][0-9]).*/1-2-3/p' < unformatted >theDate
That creates a file theDate with the date in it that I wish to use as the filename for this particular instance. So I would like to skip the file formatted all together and have the sed- script write to a new file using the content of the Date as a filename, but how do I make that happen? And of course it would be more elegant if I could skip the intermediate theDate file as well.
View 4 Replies
View Related
Feb 18, 2010
Why is there no Delete when I right click like there is with Windows in ubuntu? Pretty much everything else is there like new folder and so on Is there some way to add it? Also why when i delete something does it not ask me if I am sure that i want to delete that file?
View 6 Replies
View Related
Apr 23, 2010
What is the difference between filename and ./filename? Under what circumstances is one preferred to the other?
View 5 Replies
View Related
Apr 6, 2010
I need to split a filename into its filename and extension, so I can append a datestamp to the filename. I'm using bash.
View 8 Replies
View Related
Nov 20, 2009
I've installed ethernet adapter, it is made in china from a manufacturer called FOX. The driver for that adapter is supported for sco linux kernel version 2.4.x and 2.5.x .However, I'm using Centos5 but the OS didn't recognize the adapter alone, so I'm trying to follo instructions on the driver on the attached CD.
The CD contains file named "SC92031.c", the instructions tell me to do the following "Compile the driver source files and it will generate sc92031.o"
View 8 Replies
View Related
Apr 2, 2010
How to make sure that when I save a pdf file, the file extension .pdf appears in the filename? Its a silly little thing, but annoying. The file browser recognises it afterward as a pdf file though, it opens with document viewer ok.
View 9 Replies
View Related
Sep 29, 2010
GTK file chooser sometimes return error filename.
eg:
When i use GTK file choose dialog, select C.xml. it return B.pdf. when B.pdf, i got A.jpg.
Seems file node reduce 1?
And in my perl script, use an filechooserbutton, i always got this trouble now.
2.6.32-25-generic, but seems not business with kernel. i always upgrade to newest 10.04.
View 2 Replies
View Related
Jun 23, 2011
I accidentally deleted my drive, which was an ext4 filesystem. I had lot of .php files in that drive.I created again an ext4 filesystem from that deleted partition. When i used photorec ,it recovered lot of files without the filenames. better recovery tool which recovers both file and the filename?
View 3 Replies
View Related
Dec 1, 2010
When you open up a file browser, if there are tons of files in some directory, it will be tedious to locate the desired one mannually. For most of the file browsers, the desired file will be located automatically by obtaining the focus when you type the filename. I don't believe that Nautilus doesn't have this feature.So, there must be something I can configure with. Note that I'm just using the default Nautilus with fresh Ubuntu installation.
View 4 Replies
View Related
Nov 22, 2010
what is the difference between <filename>.rpm and <filename>.src.rpm?
View 2 Replies
View Related
Apr 8, 2010
I am working on the script parsing specific message "TEST" from multiple file. The log file name looks like:
N3.2009-11-26-03-05-02.console.log.tar.gz
N4.2009-11-29-00-25-03.console.log.tar.gz
N6.2009-12-01-10-05-02.console.log.tar.gz
I am using the following command:
zgrep -a --text "TEST" * | awk -F"[ .,]" '{sub(".*:","",$6); sub(",.*","",$7); print $1,$6,$7,$10}
and getting
N3 2009-11-25 20:12:57 TEST
N4 2009-11-28 10:42:18 TEST
N6 2009-12-01 10:00:24 TEST
If I only want to search the log file after 2009-11-29, what shall I change the command?
View 1 Replies
View Related
Apr 30, 2010
I am in need of a way to check that the same file exists within two different directories using a filename as a variable. Here is the process which requires it: The script is reaches out (via ftp) and pulls down a file(s) and delete it afterwards. This is halfhazard because in the instance it doesnt pull down the file, yet still deletes it, we are up a creek. I am looking to pull it down to a temp location and then verify that file exists in the location in which it needs to be present to process before deleting it, adding a little extra layer for security. The script itself is finished.If I put a file name in manually it works perfect. I just need a way to pump the filename into the variable.
View 1 Replies
View Related
Nov 28, 2010
Kernel 2.6.21.5, Slackware 12.0
I saved a page from Linuxquestions. It was saved under a filename beginning with '[' (left square bracket). And I now can't delete the file. Unfortunately I cannot send you a screenshot because opening a terminal in the GUI makes ls behave differently. I shall try to describe, assuming the file is in dir '.'. Also let '[SOLVED]foo.html' be the file in question:
Code:
$ ls
<the file is listed>
$ ls [*
/bin/ls: cannot access [*: No such file or directory
$
If I want the hdd to get rid of this file, what should I do? Any hint will be welcome.
View 2 Replies
View Related
Nov 18, 2009
How can we convert a dynamic library (filename.so) to a static library (filename.a) using gnu gcc . Can we get a static library form a dynamic library . I saw a few post in which the conversion form a static library to a dynamic library is mentioned but, unfortunately, not the other way.
View 4 Replies
View Related
Dec 9, 2010
I'm a UK based user and using a standard UK keyboard (Coleman based layout I think) although I have a backslash (to the left of the "Z", I can't type the character in any application. This is very frustrating when typing FQDNs amongst other things. How can I enable the backslash key for use with UK keyboard layouts. BTW I have tried all of the UK keyboards suggested in the keyboard layout dialogue
View 2 Replies
View Related
Sep 20, 2010
I'm having problem with the Samba 3.2.5 file share which host my MS-Word Document the user (user1) already restart her PC but still she cannot open the file from MS Word.
Here's the file and it's status on the samba drive:
Code:
How to reset the Samba file locking mechanism ?
View 6 Replies
View Related
Feb 11, 2010
In pcre manual, to use a backslash to escape a special character. But in fact, it is need to use double (\) backslashes to do escape for a pcre program on linux C,why?
View 5 Replies
View Related
Mar 7, 2011
I am having what I think is a slightly weird problem with the way some of my keys on my keyboard are mapped. When I try entering the "backslash" keys i get < and for the pipe key i get >. I have tried going through the keyboard layouts and trying other combinations but to no avail
System info
ASUS G51VX
Keyboard: Standard
Ubuntu 10.04 LTS the Lucid Lynx - released in April 2010 and supported until April 2013.
View 5 Replies
View Related
Mar 21, 2011
Reading a BASH script, I saw a find command preceded with a backslash. It was similar to this:
Code:
`find . -type f -name '*.xml' -print > xmlfilelist`
It's impossible to find documentation about this in man pages or on the internet, since 'backslash' are always evoked along with special characters. I also noticed that even though the command was surrounded with backquotes, the result was not affected to any variable. Maybe the backslash's presence is related with this?
View 2 Replies
View Related
Jul 1, 2010
I have a small script that takes input from one file, and uses this input to do a find/replace (with sed) to make an executable snmp trap.The input file could look something like this :JOHBURG SOUTH AFRICAOSLO NORWAY..etcThe script takes the input from this file, and preserves all words in one line as a variable (so that the variables are "JOHBURG SOUTH AFRICA" and "OSLO NORWAY", instead of JOHBURG, SOUTH, AFRICA, OSLO, NORWAY.This is working ok (in the given example, I get two variables).sed is supposed to take this variable, and use it to substitute "HITME" with the new variable.
#!/bin/bash
N=0
cat tutticodes | while read LINE
[code]....
View 21 Replies
View Related
Jul 11, 2010
This pretend to be a script for rename a lot of files automatically. So I put the list of files in an array named @lista. But, as you can see, at the end of the command I use a sed filter to print out a backslash for those files that have spaces in their names, so the path for those files could be rightly interpreted.
But there's no way I could print a backslash. It works well when I use the Perl's sed substitution s///, but I need every path in the array to be fixed.
I'd like to add that the bash command works perfectly well alone. I mean outside the Perl script.
This is de command line with the sed filter:
Code:
And this is what it brings:
Code:
View 12 Replies
View Related
Oct 21, 2009
Many folders within a subdirectory some of which have lots of data in and some of which have only one specific file called produkt.fil inside.I need a command to find and delete those folders that contain ONLY the file produkt.fil - if other files exist (doesnt matter what they are) then they should be left alone. Note: produkt.fil exists in all of the folders always.
View 5 Replies
View Related
Jul 30, 2010
When I ls -l /etc/passwd, -rw-r--r-- 1 root root /etc/passwd When I login as myself, and rm /etc/passwd, it asks: rm: remove write-protected file '/etc/passwd'? If I say yes, will it actually delete the passwd file?
View 1 Replies
View Related
Mar 23, 2011
1) Keyboard number keys on the right side, including backslash, plus, minus, etc. stopped working. The rest of the keyboard seems okay. It's not just this keyboard, either, because I plugged in my other keyboard and it has the same problem.
2) My mouse seems to have an intermittent problem in which it stops working for a few seconds or a minute. I can move it around the screen but I'm not able to click on anything. Sometimes if I wait long enough, it returns to normal. If I logout using the keyboard commands and log in again, it seems okay, at least until the next occurrence.
I'm running 10.04 LTS Lucid Lynx. I installed a kernel update a couple of weeks ago (2.6.32-29) but I've gone back to -28 in the hope that it would solve the problem. It has not. Is there a software package I need to reinstall or some other way to revert keyboard and mouse settings to defaults?
View 4 Replies
View Related