Ubuntu :: Deleting File With '' In The Name

May 27, 2011

I tried running a back-up/restore script in a WordPress install to migrate from one server to another... long story made short, I ended up doing it manually and all is well on that front

The one remnant from that botched script is that it tried creating a directory 'wp-backup' and then a file inside that directory - but it tried using '' instead of '/'. So what it created was a file named 'wp-backupindex.php' with a file size of 0 bytes.

The problem is thus: I can't change the permissions nor delete the file, because of the invalid file name. I don't have direct shell access (that cost *extra*, of course) and every time I try with the web-based file manager (Quixplorer) it sees it as 'wp-backupindex.php', as though the '' is acting as an escape sequence in the file name. Same thing in FileZilla, I can't do anything to the file without it complaining about the invalid file name.

how to ixnay this one file given the limitations above (no shell access) short of calling and bugging tech support to delete the file for me?

View 2 Replies


ADVERTISEMENT

Ubuntu :: Deleting Duplicate Words In A Txt File?

Nov 14, 2010

i waas wondering if anyone knew of a script or program that removes duplicate words in a txt file. im making an install script and the install list has gotten a bit long so i want to ensure there are no duplicates in the file

View 2 Replies View Related

Ubuntu :: Do Not Regain Space After Deleting File?

Feb 10, 2011

I am using Ubuntu 10.10 and 10.04 on two different computers.I have the same problem with both .... when I delete a file on my hard drive or a removable drive I dont get the space back even after I empty the trash.The file is gone and deleted but its as if its only hidden from me seeing it and still sitting on my drive.For example when I have files on a thumb drive and I delete them and try and put new files on there it will tell me I dont have enough disk space even though all files have been deleted, the only way for me to get the disk space back is to format the drive.I have now realized I have the same problem with my hard drives, I delete files but I dont get any space back, eventually I will have a full hard drive but no files on there

View 9 Replies View Related

Ubuntu :: Deleting File While Renaming / Recover These?

Feb 25, 2011

This has happened twice to me. I'm editing a filename on the desktop, for example, I have a part of the name highlighted and press delete. Inadvertently, I press delete again, but with nothing highlighted. The file is deleted, but is not added to the recycle bin (possible bug).

I believe that is what is happening. I cannot seem to recreate it purposefully on my work computer --I had done this at home this morning while sans-coffee.

Is there a way to recover the files?

View 1 Replies View Related

General :: Deleting A File Beginning With '?'

Jan 26, 2010

I have found a file beginning with a question mark in my home dir, not sure how the hell it got there. It's from a downloaded rar i think.

Does anyone know how to do this?

View 14 Replies View Related

OpenSUSE Install :: Deleting File/directories Via CL

Mar 27, 2010

rm [non-empty directory's name] -r

....and not....

rmdir [non-empty directory's name]-i

..or..

rmdir [non-empty directory's name} -ir

backround:

I just downloaded and innstalled 11.2 about 6 weeks ago, and Have updated several times since... I was very frustrated and found that I did in fact have the proper pernissions to delete this directory. I checked multiple forums for much longer than I would like to admit, and they kept telling me to use (in the end) the same commands.....I finally stumbled upon a forum that again told me to use rm [nonempty directory's name] ...and viola

my /bash can't be outdated can it

View 2 Replies View Related

Programming :: Deleting Unwanted Characters In File

Mar 31, 2010

Currently, I'm working on personal project. and I'm kinda stuck. What I want to do is that open a file, and edit that file (deleting unwanted characters). The problem arises after I deleted unwanted characters, the file still has the same length of the original one. Let's assume that we have a file with "1234" in it. I deleted "3" ( I overwrite "\0" ) so now when I check the file, it's 124. But when I check the length, the both have the same size as 4

Here is an example source code
int length, length2;
num = open("a.dat", 2)
length = lseek(num, 0, 2); // Initial length
lseek(num, 2, 0); // editing
write(num, "\0", 1);
length2 = lseek(num, 0, 2); // Final length
close(num);

When I print those values those are exactly the same. Length2 should be one less than length, but the both are 4. What's wrong in m code? Am I supposed to use different character rather than "\0"?

View 8 Replies View Related

General :: Conditionally Deleting Lines From File

Mar 10, 2011

I am facing some problem regarding deletion of a line from a text file. The file consists of the lines of type which consists of more than 6 occurrences of : character in it. The line should be deleted completely and the line next to it must be shifted up.

View 1 Replies View Related

General :: Deleting File (Oracle Setup) From Root

Dec 18, 2010

I had copied oracle setup in the root. Now want to delete it. I tried the following commands, but couldn't succeed:

rm -R oracle-xe-univ-10.2.0.1-1.0.i386.rpm
rm: cannot remove `oracle-xe-univ-10.2.0.1-1.0.i386.rpm': No such file or directory

While this file there only in file system.

View 2 Replies View Related

General :: Deleting Symbols From File - String Not Found

Aug 4, 2009

I am trying to delete these symbols "[ ]" from a file but it says string not found. I tried: %s/[//g while editing the file not working also tried sed -e '/[/d' and sed '/]/d' still no job.

View 3 Replies View Related

General :: Script For Deleting Matched Line Of File From Another

Sep 3, 2009

I have two text file named 1.txt & 2.txt.

1. txt contains 5 laks of mobile number.
2. txt has 60 laks of mob no.

Situation is that I want to find and delete numbers in 2.txt which already in 1.txt. Any perl or bash script or any other way to get the work done.

I tried the following:
#! /bin/bash
IFS=$'
' for NAME in $(cat one.txt)
do sed -ie "|^$NAME$|d" two.txt done
echo "***DONE***"

It works well with smaller file but it take very very long time even processing 10 thousand numbers.

View 2 Replies View Related

Software :: Deleting All Instances Of A Certain Character From A Text File?

Feb 18, 2010

In my command prompt I did:

Code:

sed 's/://' mytextfile > newtextfile

But it only deleted the first instance of : in each line when some lines have multiple : appearing in each one. How can I delete all the : from the entire file?

View 6 Replies View Related

Programming :: Deleting Lines From A File With Specific Pattern Using AWK?

Jun 6, 2010

I have a file which contains milion of records. It contains 12 columns seperated by "||" (delimeter).

First two fields contain first name and last name of a person. Now my requirement is to delete all those records from this file for which:

First two fields does not contain any alphabet.

For e.g i have below mentioned records in file:

gaurav||gandhi||123||456||789
#a%bcd||123abc||89|90||91
12345||@@@||89||123||234
***||!!!!||98||76||90

Now, last two lines should be removed from this file since first two fields does not contain any alphabet for these two records.

View 12 Replies View Related

Programming :: Deleting Multiple Lines Above And Below Expression In File

May 19, 2010

I have a very, very large log file (360MB) that I'm trying to thin out. As it turns out the majority of this file has entries that aren't necessary so I'm attempting to build a command that will strip these out. The following command works to display only the data that I do not want:

Code:
cat xml_results.log | grep -B 6 -A 5 "YYY ZZZ"

This displays exactly the data I want to delete from the file by displaying the expression and six lines above it and five lines below it. However I'm at a loss as to how to remove this data from the output and display everything else. I looked into the -v option with grep redirecting the output to a new file:

Code:
cat xml_results.log | grep -B 6 -A 5 -v "YYY ZZZ" > xml_filtered_results.log

However it doesn't work, the new file is the same size as the old one. What am I doing wrong? Is there a better method of doing this? I'm a bit out of my element since the method I'd normally use can't handle files of this size.

View 7 Replies View Related

Programming :: Deleting Rows From Text File In Perl?

Jun 21, 2010

How can I delete rows into text file in perl?

View 4 Replies View Related

Programming :: Deleting Line By Line From A File?

Apr 21, 2010

this script returns me :

sed: -e expression #1, char 2: extra characters after command
sed: -e expression #1, char 2: extra characters after command

Code:

#!/bin/bash
while read line
do
sed -i "$line" 'd' test.txt
done < test.txt

View 12 Replies View Related

Ubuntu :: Deleting A Partition

Feb 23, 2010

If i have ubuntu dual-booted with windows already, and wanted to get rid of windows entirely, how would i delete its partition?

View 8 Replies View Related

Ubuntu :: Apt-get Deleting All Kernels Instead Of One

Sep 4, 2010

I have an issue with apt-get that has been bugging me, namely that it tries to delete kernels I did not specify for deletion.

This is an issue that has been present over at least the last three releases and is present for both 32bit and 64bit, so it might actually be a feature and not a bug, however I can't see it's usefulness.

When I use the command:

Code:
sudo apt-get remove --purge 2.6.32-21*

It not only tries to remove the kernel 2.6.32.21 but gives me the following output:

Code:
sudo apt-get remove --purge 2.6.32-22*
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting linux-headers-lbm-2.6.32-24-generic for regex '2.6.32-22*'
Note, selecting linux-headers-2.6.32-21-preempt for regex '2.6.32-22*'

[Code]....

When I go through with this command to remove the oldest kernel on the system, it will actually delete all kernels present on my PC (as I painfully learned when I first tried it). Why is that the case? Wouldn't it make more sense to only remove the kernel 2.6.32.22?

View 6 Replies View Related

Ubuntu :: Deleting Folders Which Contain No Mp3's?

Nov 13, 2010

I'm pretty new to Ubuntu and it might not be possible to do what I want to do here. First I'll explain the situation. Throught trying to tidy up my mp3 collection usign various pieces of software I now have a folder structure that I want (My MusicArtistalbum rack), However, in the process, I have been left with lots of other folders - these have had the mp3's removed but they contain other files (artwork, playlists, .nfo files - that kind of thing).

What I'm looking for is either a premade solution or help with a script to do the following : Check all folders in my music folder, if the folder doesn't contain any mp3's then check the subfolders, if none of them contain mp3's then delete the main folder (regardless of what otehr files are within it).

It seems like I should be able to do this - but not sure how. Incidentally, I have backed up my music folder to an external disk - so I can't do any lasting damage

View 2 Replies View Related

Ubuntu :: Installing Without Deleting Data

Mar 18, 2010

Is there any way to install ubuntu on a drive without deleting the current data on it:

I have a software raid array set up and it has a few folders in it like /rtorrent, /cod4, but nothing that would conflict with a new ubuntu install.

And its formatted as ext3

Is there any way I can install Ubuntu Server 9.10 onto that raid array keeping it INTACT as a raid array AND preserving the data on it?

And is it easy to boot from a software RAID array?

View 2 Replies View Related

Ubuntu :: Deleting Grub Line?

May 25, 2010

I upgraded to 2.6.33 and my comp will only run in Low graphics mode so i scroll down one level back to 2.6.32-22 and all is fine.How can i 'erase' the 2.6.33 line (and the associated recovery line)from the grub list so i dont have to deal with it till bugs are removed later on.My Grub header says it is version 1.98-1ubuntu6

View 3 Replies View Related

Ubuntu :: Deleting An Old /home Directory?

Jul 2, 2010

I've followed some instructions on installing a new hard drive on Ubuntu ("Installing a New Hard Drive" and "HOWTO move /home to a new hard drive") and I've now successfully got my new drive working with /home. Everything looks to be in perfect working order.Now I'm wondering how to delete my original /home folder. Running "df -h" still shows 97% usage on my / partition and I'd like to clear out the old /home to free up all that space. I just don't know where these files are now is all.

View 9 Replies View Related

Ubuntu :: Deleting And Reinstalling Firefox?

Oct 22, 2010

I was on line and viewed a Picassa slide show. I went to F11 for the full screen and after I closed Picassa,my Firefox browser had been reset,creating all kinds of issues,taking out my status bar,making it impossible to access the three icons in the top right hand corner of the screen,and so forth.

When I removed and reinstalled Firefox from the Synaptic Package Manager,it did not give me the option of not saving the settings and the same issues pertained to the newly installed one.

Does anybody know the shell code to remove and reinstall the Firefox Browser unsullied,pristine,not saving the existing settings?(realizing I'll lose the bookmarks and have to set it up anew?)

View 4 Replies View Related

Ubuntu Installation :: Multibooting After Deleting XP?

Nov 4, 2010

I am a new UBUNTU user. I had installed OS in my computer in the order of XP, Win 7, and finally UBUNTU.With EasyBCD, I managed multi-booting order of XP and Win7. That is, after choosing Win7 or UBUNTU from GRUB, (If I chose Win 7) I should choose XP or Win 7 to boot.

Using UBUNTU, I think that I do not need XP, so I formatted the hard disk where XP was installed. However, after deleting XP, I can not boot Win7 from GRUB, although there is still

View 2 Replies View Related

Ubuntu :: 'Are You Sure' Question Before Deleting Folder?

Nov 29, 2010

I accidentally hit the delete button on a folder. Luckily, it was still in the trash and I could restore it. However, I was wondering if there was a setting that could display an 'Are you sure?' question before deleting the folder in case this happens in the future again.

View 9 Replies View Related

Ubuntu :: Deleting A Disk Drive ?

Feb 16, 2011

Ok so basically this isn't my harddrive but hear me out. It's a known issue but it only happened after him downloading stuff off priate bay. The harddrive is not detected on BIOS, so you can't boot through it, just the CD Drive is now detected. You can't use SAFE mode as it reverts to another issue, a black screen with a white cursor, no keyboard commands work.

No restoring disks will fix it nor master disks, it's literally a bad *** issue. Thou I can still load things via CD Drive so I used the Acronis Bootable Media and surely enough, it could anaylse data on the harddrives. I thought maybe i'll try PE Bart but once again, loads up to Black screen with White Cursor. So I put in Ubuntu and yes, I can get on the GUI, but I can't install the operating system.

There would always been an issue. something about in/out whilst installing but as long a I can use the tools, then we go onto Disk Utility. When I try to format, the Error Message apprears stating : Eroor creating File System: helped exited with error code 1: Error calling fsync(2) on /dev/sda2: Input/Output error. This would be the same error i would get via installing and I would have to ignore and eventually whilst installing, from being complete on the right hand side, it would say ERROR or ABORTED after 70,000.

View 9 Replies View Related

Ubuntu :: Deleting Wine Symlinks?

Apr 12, 2011

I did a "backup" of my .wine folder by copying it to my network attached storage drive. Now, that folder thinks it has about 200gb of data! Specifically, it's the .wine/dosdevices folder. I didn't grasp that Wine had created some kind of hard links to my ~ folder on my Ubuntu box. Since that folder is clearly recursively linking to all my files, I'm afraid to just delete it. I did delete one file within it as a test and, sure enough, the original file back on my Ubuntu box disappeared!how can I delete the .wine "backup" folder I created on my NAS without deleting all the original files?

View 5 Replies View Related

Ubuntu :: Boot Error After Deleting?

May 10, 2011

i recently removed the Ubuntu partition in Windows 7. When I try to reboot I am faced with the the grub rescue error where it says no such partition.. I have tried booting Windows 7 from disc and I have even went into my BIOS and it says CD-ROM boot priority.. boot ready then says the grub rescue error again, stating that there is no such partition.

This is really annoying as all the tutorials on the internet say insert Windows 7 then use the recovery tools but I can't even boot any operating system. I have set the BIOS to boot from my CD drive..

View 6 Replies View Related

Ubuntu :: Syntax Error When Deleting Dir?

Jun 1, 2011

I am trying to delete a dir (with the CLI), that contains many sub dirs and files:
Hello - DE Important Files Stuff (0000-0001)

I am using the command:
PHP Code:
sudo rm -rf Hello - DE Important Files Stuff (0000-0001)/ 

But I keep getting this error:
PHP Code:
-sh: Syntax error: "(" unexpected

The between the spaces in the file name isn't showing in the PHP code?!?

View 7 Replies View Related

Ubuntu :: Win7 Keeps On Deleting Grub, 11 04?

Sep 1, 2011

I have a dual boot system which I made from scratch Win7 and then Ubuntu 11.04.After installation all worked fine but each time I have to run Win7starting it from Grub2)when I shut it down and restart the laptop, grub2 is not there anymore and Win7 starts with its bootloader.To get back to Natty I have to go through the Live CD and install Grub + Boot Repair and run it.'m lost. I attach the boot info results.

View 8 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved