General :: Filename Beginning With Left Bracket: File Cannot Be Erased

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


ADVERTISEMENT

Fedora :: Entire HDD Erased At The Beginning Of Installation?

Mar 3, 2010

I just tried installing Fedora 12 and at the beggining of the install i got this message about my disk which cannot be read until it is initialized, and if i initialize it all data on the disk will be lost. Disk was formated using GUID, and had one HFS+ partition on it. I accidentaly clicked "yes" on that error message, and after realising what I just did (some 2sec later) i pulled out my computer's power cord out.

Now my entire disk is erased, it has no partitions on it, and all data is lost...

How do i retrieve my data from the erased disk, and why did Fedora want to do this to my disk?

View 9 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

General :: Insert Tab At Beginning Of Each Line In File?

Aug 5, 2010

I am trying to create a shell script where a user can specify a file with a list of logins and the script will create a batch file with specific information in specific columns.

Example:

loginfile.txt has

User1
User2
User3

I need the output to be as below:

1 User1 Date 12/31/9999
2 User2 Date 12/31/9999
3 User3 Date 12/31/9999

Where the columns are separated as below.

1[tab][tab]User1[tab]date +%D[tab]12/31/9999
2[tab][tab]User2[tab]date +%D[tab]12/31/9999
3[tab][tab]User3[tab]date +%D[tab]12/31/9999

I can use the nl utility to get the numbers easily enough, but I need two tab separations between the number and the user list. Is there a sed command that will insert at the beginning of each line? If so I can just run nl after I get some tabs up in the front.

View 2 Replies View Related

General :: Set A Pattern That Will Output A Filename Equal To The Original Filename In SoundConverter?

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

General :: Shell - What's The Difference Between Filename And ./filename

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

General :: Processing Log File Within Certain Dates Based On Filename

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

Ubuntu :: Half Erased Partition - Need To Restore Quicken File

Mar 20, 2011

I have a HP DV9000 laptop. The second hard drive bay doesn't support SATA II devices. I was cloning the original hard drive to the newer SATA II hard drive I purchased two swap them because bay 1 does support SATA II devices. I decided to use

Code:
dd if=/dev/sda of=/dev/sdb
to get the job done. I double/triple checked my command with fdisk -l, but my dyslexia got the better of me. I should have ran
Code:
dd if=/dev/sdb of=/dev/sda
....

I stopped the command about 1/2 hour in, it is a 160GB hdd. I tried using foremost to recover all of the files that hadn't been written over yet, but it can't recover Quicken filetypes. The ONLY thing I need off of this drive is the Quicken database. TL;DR I need to recover a quicken database file off my corrupted partition. What program can I use?

View 1 Replies View Related

General :: Release File Lock In SAMBA 3.2.5 Share - MS Word - Filename - Is Locked For Edit

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

Programming :: C - Return To The Beginning Of A File?

Dec 16, 2010

I'm reading a text file with fscanf using a loop until feof(inFile). How can I return to the top of the file? As in I have one loop that scans until the eof and then after it there's another loop and I want to start from the beginning of the file again scanning to the end of it. How do I get back there?

View 3 Replies View Related

Programming :: Sed - Save Output To File With Filename From Content Of Another File?

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

OpenSUSE :: Add 32 Seconds Of Nothing To Beginning Of Video File?

Mar 6, 2010

Movie and translation are 32 seconds out of sync. There are 2 ways to resolve:

1. edit all zillion lines of translation (daunting, I couldnt find tool)

2. add 32 seconds of nothing or whatever to the beginning of a video file

No2 may be quicker, but I do not know how.. I am not good with ffmpeg... also, if I want to join some 32 seconds, lets say of my XVid recording, I need to prepare it to be the same as film, so it is also complicated. how to add 32 sec? I tried openShot (couldnt find option). Cinellera is giving me strange errors, about audio codec and something I dont understand... I am confused in using both tools

View 7 Replies View Related

Programming :: Append Text To The Beginning Of A File?

Jan 14, 2010

I am trying to append text to the beginning of a file. This is what I have so far.

Code:
date_default_timezone_set('America/Chicago');
$date=date("m-d-Y g:i:s a");

[code]....

View 7 Replies View Related

General :: Create A Script That Will Look For A "filename" Under /etc/, Date Stamp The File And Copy It To /var/www/upload?

Jul 14, 2011

I'm trying to create a script that will look for a "filename" under /etc/, date stamp the file and copy it to /var/www/upload

View 5 Replies View Related

Server :: Split A Filename Into Its Filename And Extension?

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

CentOS 5 Hardware :: How To Compile Filename.c Into Filename.o

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

General :: Formatted HDD - Erased XP - Installed Backtrack 4

Apr 8, 2010

In what started as a quest to get free wifi, I have recently gotten in way over my head. After unsuccesfully trying to use a virtual drive, I decided to erase my HDD on my laptop completely, wiping out my Windows XP and installed Backtrack 4 in it's place.

My goal amongst others, was to create a 20% partition for Backtrack and run XP on the rest of it. Well, I couldn't figure out how to do it. My only option was format and install backtrack.

So now I'm typing on my iPhone cuz I know absolutely nothing about Linux or how it works. My computer has no Internet. It doesn't recognize my Ethernet NIC, my wireless card and probably alot of other stuff.

SO ANYWAYS I don't want to give up. I'm ready to learn. I guess the first order of business is to get my Ethernet Card working so I don't have to type on this damn phone. So how do I do it?

Here is the hardware list:

View 14 Replies View Related

General :: Make Nano Support Auto-complete And Auto-bracket Closing?

Feb 20, 2010

Does anyone know if there's a way to make nano support auto-complete and auto-bracket closing?

View 1 Replies View Related

General :: Erased /home/root And Now Can Not Administer The System?

Jan 10, 2010

I am operating Debian 5.0 kernel 2.26. In trying to clean up (I believe I was using a root terminal), I erased the directory /home/root. Since I have done that, I can not get to a root terminal, can not use synapse and a host of other administrative processed.

Now, when I boot the system, I can log in as a user (my version of Debian does not allow me to login as the administrator). Then, logged in as the user, I previously could select for example 'synapse', I would be given a screen to enter the Administrator password and then get synapse. Now, I am given the screen to enter the Administrator password, but once I enter it, I do not get synapse. I do get an error message
'can not find /home/root/.synapse' And of course, I erased the /home/root directory. Now I might just mkdir /home/root - except to do that I need a root terminal and I can not get that either - probably for the same reason.

I have tried using the boot disk and going to the rescue mode - except for some reason I can not mount a root directory. I believe it is because I am using LVM2 and my root directory must be in an LVM volume, but I can not figure out how to get to that using the rescue mode.

View 4 Replies View Related

Ubuntu :: The File Extension .pdf Appears In The Filename?

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

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 View Related

Software :: Difference Between <filename>.rpm And <filename>.src.rpm?

Nov 22, 2010

what is the difference between <filename>.rpm and <filename>.src.rpm?

View 2 Replies View Related

Ubuntu :: GTK File Chooser Sometimes Return Error Filename

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

Ubuntu :: Recovery Tool Which Recovers Both File And The Filename?

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

Ubuntu :: Nautilus Doesn't Focus On The File When Keystroke Of Filename

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

Programming :: Check That The Same File Exists Within Two Different Directories Using A Filename As A Variable?

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

OpenSUSE :: Bracket Highlighting In Kile?

May 12, 2011

I have OpenSuse 11.4 with KDE 4.6.2 in my laptop. The version of Kile I am using is 2.0.86. I would like to change the bracket highlight color from Black to Yellow (In previous version of Kile it was yellow). I have found no option to change the bracket highlight color in settings -> configure kile. The documentation says that it is possible but does not mention how. Can anyone help me in this regard ?

View 3 Replies View Related

Debian Programming :: Square Bracket Operator?

Sep 1, 2014

Is there a way to achieve the following with the square bracket operator?I have a class:

Code: Select allclass A
{
public:
    void SetValue(int index, Item* B);
private:
    int m_iCount;
    ItemCollection Item_Collection;

[code]....

The probelm is that I am not just blindly assigning whatever given on the right hand side to the returned value from operator [], I need to verify it's not NULL, and it is not already there in the Item_Collection, and I also need to increase the count.

View 5 Replies View Related

Networking :: In The Graph What Is The Signifcant Of Dots In The Bracket [-0.02%]

May 25, 2010

I use bmon for my networking manager. But I am confused with interface, I can't understand the graph, and other statistics. What is TX Rate, RX Rate, RX ,TX? In the graph what is the signifcant of dots, in the bracket [-0.02%]?

View 3 Replies View Related

Programming :: Convert A Dynamic Library (filename.so) To A Static Library (filename.a)?

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







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