Red Hat :: Backspace Key Deletes Section Not Single Character

Jun 24, 2010

I am running RHEL 5 and when I get the backspace key it deletes a section to the left (such as /usr/localbin) instead of just a single character to the left. How do I change that?So it deletes the section instead of just the single character n.

View 4 Replies


ADVERTISEMENT

General :: Replacing Single Quotes In Filenames With Another Character

Jan 26, 2011

Can anyone offer a code snippet to recursively go through directories and replace any single or double quotes quotes found in a filename with another character (e.g. "_").If any of the filenames contain a single quote or double quote, then replace it with an underscore.

View 7 Replies View Related

General :: Vim To Input A Single Character And Continue In Command Mode

Jun 23, 2011

I increase my knowledge in vim in two ways. Little hints about doing this or that and scattered studies using the vim help files. Please do not believe I always rely on the first one.

View 12 Replies View Related

Programming :: Perl Only Matching Single-character Regex Patterns?

Jan 20, 2009

I'm having a small issue with regex matching in Perl. I'm pretty certain it's a simple fix, but it all looks correct to me...

If I run the following:

Code:

It prints out all the lines containing a 'P', as one would expect. But when the regex is

Code:

I get zero lines printed. It seems to match only single-character patterns.

The file I'm reading is: (It has the same effect whether I leave it with Windows linebreaks or convert them to unix).

Code:

View 3 Replies View Related

Programming :: String Editing: Remove Lines Consisting Of A Single Character?

Jul 16, 2010

I have a large text file that's formatted sort of like this:

Code:
foo bar
blah

[code]...

View 2 Replies View Related

General :: Use The Man / Info / Apropos Pages - Character Instructed The Shell To Interpret A Special Character As An Ordinary Character?

Mar 27, 2010

1.What character instructd the shell to interpret a special character as an ordinary character?

2.What directory contains some of the utilities available on the system in the form of binary files?

3. What command is used to search the location of a utility?

4. What command is used to instruct the editor to write the file and quit the editor?

5. What key quits the more utility and displays the shell prompt?

6. What command starts a child shell as the super user, taking on root's identity and environment?

7. Which wildcard characters can be used for searching all the files in the system that start with "A"?

8. The user name or login name of the super user is????

[Code]....

View 10 Replies View Related

Programming :: Script To Delete Aligned Single-character Columns With No Field Separator?

Apr 20, 2010

The lines beginning with greater-than symbols are the sequence descriptors and the lines immediately after each descriptor with A-Z characters, dashes, and question marks are the aligned DNA sequences. The sequences are always the same length within a file and never span/wrap across more than one line.I am trying to write a script to remove positions in the sequences that are only represented by a -, X, ?, or N (these represent gaps or missing data). Also, if there is exactly one non-gap/missing character in a position it is also useless (there is nothing to compare it to) so I would like to remove those positions as well.

Position 5 (from the left) was removed because it was all gap/missing characters. Position 9 was removed because only one character was a non-gap/missing character. Position 10 was retained because there were 2 non-gap/missing characters.I'm really not sure where to start here. My first concern is I can't figure out how to tell awk to treat each character in lines not containing a greater-than symbol as a separate field. After that, I'm thinking I should use set up a counter to count the number of lines with gap/missing characters comparing that to the total number of lines not containing greater-than signs?

View 14 Replies View Related

OpenSUSE Install :: Immutable Section Of HDD + Differencing Section?

Jul 8, 2010

You maybe know that VirtualBox has an "immutable" feature for HDD images. I.e. setup the system, if the stuff is in place, you can set the image to IMMUTABLE to prevent any changes to the image. Differences are written to a separated image. So on the next boot you'll see that all the (unintended) changes are gone and the "old" system is up & running again. I run an old SuSE 10.3 on a write-protected SD-IDE-Adapter. Changing and playing with RPMs is a mess due to around 50 changes I had to do to make that work. Is there any option to mount an SD-card as RO and having all the changes written to e.g. /dev/sda3? To make it clear: I thought about something like a RAID-X system, but could not find any description on how to setup a raidtab.

View 3 Replies View Related

Ubuntu :: Frozen Panel - Messing Around With The Alternate Character Panel App And Made A Custom Character Set

Jun 12, 2011

I was messing around with the alternate character panel app and made a custom character set. I then wanted to put it on a new panel and created a new panel. I moved the character set to that panel, and then started to mess around with the panel settings (auto hide, show hide buttons, and expand, to be specific.) So far so good, until I moved the panel from the right side of the screen to the top. I already had a panel here, and it seemed not to like hiding a panel when there was already one on the top.

When the new panel hid itself, all my panels stopped responding (any clicks on them did nothing) and my processor started going at 100%. I tried a reboot and the only thing that changed is that now I can't even see my panels. I'm guessing I need to change the settings back manually through the prompt, but I don't know how to do that. I am using 10.04 and have not upgraded gnome since upgrading to 10.04.

View 1 Replies View Related

Programming :: String Deletes Its Own Value In C?

May 4, 2011

I have a school project to write a horse racing program, where the user can type their name, bet money, etc. However, after storing the user's name, it will delete itself after a few more instructions. So when I try to read back the user's name, it it blank. just this one section:

Code:

printw("Welcome. Name?
");
refresh();
scanw("%s",name1); //ask for name

[code]....

View 14 Replies View Related

Ubuntu Servers :: Deletes Changes To MOTD?

Jul 29, 2010

I applied some changed to the MOTD in /etc/update-motd (including removing the canonical mention in ./python2.6/dist-packages/landscape/sysinfo/landscapelink.py). After updating the system I found that all my changes had been deleted without any warning. Is there a way around this nonsense?

View 2 Replies View Related

Ubuntu :: Windows 7 Deletes Grub2?

Aug 26, 2010

I booted into Windows 7 three times this summer and each time I did, upon restart grub was missing. In fact, the computer couldn't find any operating system, and displayed an error "No Module Name Found".

how to make windoze not commit suicide and delete grub?

I have a Dell Studio 1557.

:~$ uname -a
Linux dell-monsters 2.6.32-24-generic #41-Ubuntu SMP Thu Aug 19 01:38:40 UTC 2010 x86_64 GNU/Linux
:~$ sudo fdisk -l

[Code].....

View 2 Replies View Related

Red Hat :: Why Rpmbuild Deletes The BUILD Directory

Apr 15, 2011

I'm using rpmbuild 4.8.0 to build my rpm package on RHEL6. The spec file works just fine with any other Linux Releases, including RHEL5. But at the end, build failed with:
"shell-init error retrieving current directory: getcwd: cannot access parent directories: No such file or directory" I found that rpmbuild tried to compare the BUILD directory with the root filesystem, it will delete the BUILD directory if it's not '/'. My working directory is /tmp/test, so something like this in the /var/tmp/rpm-tmp file:

Code:

cd "/tmp/test/BUILD"
[ "RPM_BUILD_ROOT" != "/" ] && rm -rf "${RPM_BUILD_ROOT}"

I think this is the reason why the command failed. And I can't find the two lines of similar code in an earlier version of rpmbuild on RHEL5.

View 5 Replies View Related

Programming :: Connect Multiple Sockets From A Single Client To A Single Server And Keep Them Open?

Oct 13, 2010

I have question about the UNIX sockets. my goal is to connect multiple sockets from a single client to a single server and keep them open...I'm not sure if that is possible to create or not. Do you have any suggestion or an example of code?

View 1 Replies View Related

Fedora :: Program That Deletes All Crap - Don't Use Anymore Off 14

Apr 21, 2011

I was wondering if there was a program that deletes all the crap you dont need/use anymore off Fedora 14. I was wondering if anyone had any kind of program that is like "CCleaner" specifically for Linux systems.

View 6 Replies View Related

Ubuntu :: Deletes XP Partition - Can't Boot Directly ?

Feb 28, 2010

I have deleted sda1, sda2 as they were XP partitions that I no longer wanted to use (yay!). After doing so, when I rebooted I just got a blinking cursor. I was able to boot with the Ubuntu 9.10 install CD, and found that I could elect to boot from the first hard drive, and in doing so the usual grub menu was displayed, and I could boot to my Ubuntu 9.10 partition (sda5 inside of sda3 extended partition). So, noobid that I am, I figured I would try to 'fix' grub. ran commands grub>root (hd0,4); grub> setup(hd0)

Now, when I reboot, it goes directly to the grub command line, no multiboot menu, and I cannot find a way to boot to my Ubuntu partition. The partition is still there, though, as I've checked from the Ubuntu CD.

View 4 Replies View Related

Ubuntu :: Moving To Trash Deletes Immediately?

Sep 15, 2010

Under 8.04 lts moving a file to Trash under Gnome/Nautilus resulted in the file being moved to the Trash directory, from where I could then delete it. It was an extra layer of protection against mistakes.

Now when I right click on a file and choose move to Trash, it deletes immediately without the protection.

I see no way to turn it back on. Is this a change in the way Nautilus is meant to work, or is there a switch someplace to put it back?

View 4 Replies View Related

Ubuntu :: Windows Deletes GRUB Each Boot?

Nov 7, 2010

Each time I boot into Windows 7 on my dual-boot setup (the other OS being Ubuntu Maverick), the computer is no longer able to boot. I can use Windows fine that once, but after shutting down and restarting it simply loops during boot in the pattern OEM screen, power off, power on, OEM screen, power off, power on... you get the idea.

I have read that this is due to Windows (or a program inside Windows) "fixing" the Master boot record (MBR) each time it loads - and in doing so, deleting GRUB. Thing is: on my other laptop the exact same dual-boot setup works fine. My problem laptop is a Samsung R780. My guess is that it's a specific program on my laptop, as oppose to Windows in general, which is doing it, so I was hoping that you could help me either identify the problem program or secure the MBR against Windows writing to it (if that is possible).

I can, of course, fix GRUB each individual time it is destroyed by installing it again using the Ubuntu live CD, but this is obviously not a permenant solution as, upon the next boot of Windows, it is destroyed again.

View 9 Replies View Related

Ubuntu :: Nautilus Deletes Files Without Warning / Fix It?

Nov 14, 2010

I've noticed since upgrading to Maverick that nautilus has become very buggy and crashes quite a bit (I've noticed it tends to happen during multiple file transfers but really it happens often and not only because of transfers).

While I've been able to tolerate this crashiness, today I came across a problem that is very distressing. If I have two files in a folder and I rename one so that it has the same filename as the other, nautilus does not display an error message. Instead what seems to happen is that it retains one file and deletes the other permanently (There seems to be nothing in the trash as far as I can tell).

Has anyone come across this error before? If you have, I'd really appreciate any advice on how to fix it.

View 4 Replies View Related

Ubuntu :: Rsync Deletes Files It Should Not Delete

May 4, 2011

I built a script that downloads my podcasts using Gpodder into the directory /HOME/SHARED/PODCASTS/ (with a subdirectory for each podcast)The script then selects the latest episode and copies it over to a target directory (it empies the target directory first and copies over everything) I want to use RSYNC to make sure the 'not so fresh' episodes get deleted and the "fresh" episodes get copied over. Then dropbox can sync the "new" files over to the cloud where i can access them via my ipad/iphone (whole other story).The thing is : i've replaced the cp command with the RSYNC command and now the script is acting strangely.

It selects and sync's over the "newest" podcasts to the destination directory. Then it suddenly DELETES all the episodes in the destination directory and copies over the three last files.

View 8 Replies View Related

General :: Ldconfig Deletes The Link That Create Using Ln -s In /usr/lib?

Nov 9, 2009

I created a link for a library my application needs in /usr/lib/ and then run ldconfig.
The link gets deleted. Should I be creating the link in any other way?

View 1 Replies View Related

Software :: Thunderbird In KDE Over NX Randomly Deletes Mail?

Mar 30, 2010

I might have hit the "delete" button on my laptop, by mistake. But, since then, it's happened too many times to be an "accident", plus it's happened when the NX window is NOT in focus. From my Winblows laptop, I start a KDE session, using NX. Within that session, I start a copy of Thunderbird. Then, at random times, that I've not been able to correlate, the mail item "highlighted" will be deleted. This has happened in the Inbox, where the mail then appears in the Trash, and also once, when I left it in the Trash view, where items were deleted permanently. I've turned off the automatic "delete Trash at close", to safeguard my saved mail for the time being, as I think I lost some mail before I realised what was going on.

View 1 Replies View Related

OpenSUSE Network :: NetworkManager Deletes Default Route

Jul 11, 2010

I'm currently struggling with the following problem: Connecting to a wired network with NetworkManager (0.7.1) is no problem at all: Everything is set up automatically, including the default route:

[Code]....

When I now add the route manually it works. But as soon as the cable is plugged in, the NetworkManager overwrites the routing table entry again (which makes it quite annoying). Does anyone know a way to avoid this behaviour?

View 6 Replies View Related

General :: Find Directory With Frequent Writes And / Or Deletes?

Jun 20, 2011

Is there a way under linux to find out directory with frequent writes and/or deletes?

I'm using Ubuntu and recently bought SSD. I moved /tmp to ramdisk and did some other tweaks to avoid wear. But I was wondering if there's a way to pinpoint hotspots in filesystem where files are often written. For example webserver's log directory with many appends every minute or user's download directory where he downloads gigabytes of stuff only to be moved elsewhere soon after finishing.

I came across inotify which could probably do the trick but it seems it'd require lot of scripting which I'm not very familiar with

View 4 Replies View Related

Ubuntu :: Desktop User Deletes Www-data Files?

Dec 26, 2010

I have some developers with Desktop User accounts. How can I allow them to delete files owned by www-data which are created under their accounts (/home/username/public_html) by PHP scripts they are coding and testing.I tried to edit www-data user group and add the user as a member of it but this has no effect - the user still unable to delete these files only by creating another PHP script!

View 1 Replies View Related

Ubuntu Multimedia :: Banshee Deletes The Wrong Song?

Jan 2, 2011

ok on my new laptop, banshee deletes songs other then the ones I told it to. I highlite a song or 2 I want to remove from a playlist, rightclick select remove from playlist and some seemingly randome other song is removed and the one I selected is left there.

what could cause this, am I the only one affected and is there a solution, for the moment I am using rythembox to play music.

I would prefer to use banshee as it plays nicer with my mp3 player then any other program I have tried.

View 5 Replies View Related

Programming :: C Scanf Arbitrarily Deletes Contents Of Another Variable?

Oct 3, 2009

I am in the process of writing a program that plays the game mancala. I wanted to create a function that requires the player to choose a number between one and six, should be simple right? I kept having problems, so I started testing stuff out.

Code:

#include <stdio.h>
#include <stdlib.h>
short move();

[code]....

I am using gcc version 4.3.2 (Debian 4.3.2-1.1). On a whim, I tried something else out; when I change the 'short' variables to 'int' , the problem seems to dissapear.... I tried changing the format string in the scanf statement from "%d" to "%u" which is listed as the appropriate string for the 'short' type, still no luck.

View 13 Replies View Related

Slackware :: 12.2 Deletes All /dev/fd?u* Floppy Special Files On Boot?

Nov 15, 2009

Slackware 12.2 has the unkind habit of deleting all the /dev/fd?u* floppy special files upon boot-up. I have to make another directory (I use /floppy) to contain these files so I don't have to keep copying them from an earlier distribution (12.1) Now, for example, to format a 1743 kilobyte floppy, I do fdformat /floppy/fd0u1743 mformat a:If I copy these special files to /dev (where they belong) then some part of Slackware Linux 12.2 deletes the special files when I power down and power up the machine.Slackware 12.1 and earlier leave floppy special files severely alone upon shutdown/startup.I cannot seem to "grep" a reference to /dev/fd anywhere in /etc/rc.d or its subdirectories. Why is Slackware 12.2 deleting them?

View 1 Replies View Related

Ubuntu One :: Tomboy Syncs - And Promptly Deletes All My Local Notes

Jan 14, 2010

I attempted to sync Tomboy notes with Ubuntu One, the process claimed to be successful - and deleted all the notes on my computer, with no warning at all. Thankfully I had just backed things up yesterday...

I'm running Karmic, the Tomboy is version 1.0.0, and the Ubuntu One client is 1.0.2 (I think).

A little while ago I was having problems with Tomboy syncing with Ubuntu One at all. Then things worked, but I ran into problems with the program declaring that the notes online were newer than my local ones - which was certainly not the case, as I only use my Ubuntu One account with a single computer. Some of the notes were conflicting, though there were also problems with templates (probably something similar to this bug here: https://bugs.launchpad.net/ubuntuone...rs/+bug/502017).

So I deleted all the notes, manually, on the Ubuntu One site, thinking this would help. It certainly didn't help with my template problem, and now when I sync it declares "Synchronization is complete, 32 notes updated. Your notes are now up to date." - and lists all of my notes stating that they were deleted locally! And indeed they are.

If I go online and look at Ubuntu One, the notes tab simply says: "You have no notes (yet!)." I tried to see if this was recurring, and it is. Every time all my notes are deleted.

View 9 Replies View Related

Ubuntu :: Firefox Deletes All Cookies / Contrary To Privacy Settings

Sep 24, 2010

Firefox used to work fine, then I played around (only) with privacy settings, and now it deletes all cookies (including ones set to expire in a month) at the end of the session.It is set to "remember history". Moving to a new profile is not an option.

View 3 Replies View Related







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