General :: Replace The () With Xxxx?

Dec 29, 2010

I have a sed question

I got the following

(12121) and I want to replace the () with xxxx

so the output would be

xxxx12121

I am using the following but its not working

sed 's/(.*)/xxxxxx/g' TMP4 > TMP5

View 6 Replies


ADVERTISEMENT

General :: Replace Function Replace More Than One Word With The Same Character(s)?

Apr 23, 2011

Can the Replace function replace more than one word with the same character(s)?

Also, do you know how to access the plugins provided by the gedit-plugins package?

View 3 Replies View Related

Ubuntu Installation :: Dev/disk/by-uuid/xxxx Does Not Exist?

Jan 23, 2010

Fresh install of 9.10. Update all. The update froze at the very end: configuring grub-pc. I let it run like that all night before settling for a reboot while the update manager was still running. (The update also raised the kernel version.) After reboot, I tried the newer kernel [2.6.31-17-generic] at the grub menu and got this error:

Quote:

udevadm trigger is not permitted while udev is unconfigured.
udevadm settle is not permitted while udev is unconfigured.
svgalib: Cannot open /dev/mem.[code].....

And, cat /proc/modules gives me a long list of modules (too much to retype for now).So my hard drive is there. maybe some errors on the / home partition [sda6] and I can get to the root directory.

FYI: MS-win XP still boots fine from grub.

View 1 Replies View Related

Ubuntu :: 10.04 LTS Crashes: End_request: I/o Error, Dev Sda, Sector XXXX

Apr 30, 2010

I just installed the new LTS version but it crashes sometimes an gives the error end_request: i/o error, dev sda, sector XXXX in terminal My PC was working just fine when I was under Karmic. I think it's a bug....

I run Ubuntu 64 bit on my Pentium D820 machine:
HD: Maxtor PATA 160Gb
MB: MSI 7387
GC: MSI TD256E (RX550)

View 9 Replies View Related

Server :: Vsftpd - FTP Clients Work - Ftp://xxxx In Mozilla Does Not

Jan 13, 2010

I have an FTP server which is linked to a user account in a chroot jail and I have disabled anonymous access (anonymous_enable=NO). I can FTP into this server from Windows command line FTP client and every other FTP client I have used with no problems.

However, I have been trying to access it via a web browser (firefox) using ftp://<server name>. This connects and prompts me for my login details, which I enter as I should. But then I get a 425 connection error.

In my /var/log/secure log, I see the entry: -

Why is Mozilla Firefox trying to connect as an anonymous user when it has already prompted me for my login details?

View 8 Replies View Related

Ubuntu :: Ssh: Connect To Host XXXX Port 22: Connection Timed Out

Jul 4, 2010

I have been playing with this for awhile now and I am ready to go postal.

I just want to move some files around and potentially rsync my net book with my desktop as well as learn the software (my primary reason)

Steps Taken.
Set Static IP address to machines on LAN
Turned on Port Forwarding (22)
Added Rule to UFW allow 22/TCP

View 9 Replies View Related

Fedora Servers :: BUG: Unable To Handle Kernel Paging Request At [xxxx]?

Nov 10, 2009

[Note: I'm typing this entire thing out. It probably isn't 100% verbatim. And I am using an older version of the kernel because 2.6.30.9.96 was not behaving either.]

Code:
BUG: unable to handle kernel paging request at efd86f5c
*pde = 00000000

[code]....

View 2 Replies View Related

Fedora Hardware :: NVidia FX5200 Only Works With An Old Kernel Xxxx.i586?

Feb 1, 2010

I was helping my cousin move to the GNU Linux world and I was faced with the following problem: He has a MSI nVidia GeForce FX5200 PCIe (128MB vRam) Graphics card. I followed a couple of instructions here in getting that card to work, but the drivers that I was able to load up to his 23 bit system refused to load after system boot up (white flashing letters would come up, X server refusing to load). I was only able to load the system with full 3D hardware accelerated support when I loaded the old xxxxx.i586 based kernel from the GRUB list, while the current kernel that was being used was xxxx.i686 based one.

Currently there was two kernels in the list, so I manually edited the GRUB file to change the boot identifier number from 1 (xxxx.i686) to 0 (xxxx.i586) so every time that the computer would be powered on, it would load that kernel up automatically without having to reselect it manually each time.

Yesterday, my cousin picked up his computer, he was fine and happy with his fedora core (version 11, because Version 12 had major problems with this graphics card, its on the "test" list still, and the developers of fedora, or the developers of that other 3rd party software source seems to be in the middle of testing it for FC12 compatibility)

He told me today that after he ran the "updates" for fedora and installed them, when he rebooted the system, he would see that same while characters in the top left section of the screen flashing and it would get stuck there, he told me that he was able to solve the problem by rebooting and selecting the xxxxxx.i586 kernel from the list. He also told me that he saw three kernels from the list.

For what I see here, this driver will only load with the i586 based kernel, and I also am seeing that each time that he updates his system he may have to go thru this again. My question is this: Will fedora 11 change his default kernel each time that he runs Fedora Updates? If so, what can I do to prevent that change from occurring.

Also, is there a limit on the kernels that appears on the GRUB list, if each updates brings a new kernel entry on the GRUB list, will the list get very large one day? or will Fedora remove one or more kernels, in other words, what is the maximum number of Kernels Fedora keeps on the GRUB list? and will there be a point that Fedora updates will delete that working i586 kernel leaving him with a non booting system? Or will that nvidia driver "magically" start working with some future update after the developers fix/improves what ever is keeping that nVidia driver from loading with the latest updates?

View 4 Replies View Related

CentOS 5 :: Getting "Unknown Error" When Running System-config-xxxx Programs?

Aug 6, 2010

I am a long time Unix system admin and this one has got me stumped.When I try to run the system-config-network (or any of the system-config-xxx programs) from the links on the GNOME interface, I get a message pop-up that says, "Unknown error" and no additional information. I have also opened a terminal and run it from the command line (/usr/bin/system-network-config) and I get the same "Unknown error" pop-up. I was not the one who originally configured this server, so I am not sure of the history or how it might have been broken. I can't seem to find any debugging information or even any command line parameters that might give me a clue what the complaint is. There is no error number or any other helpful hint as to the cause of the problem.

I have been manually editing the config files so the server is up and running but it is tedious to manage the server without the GUI.Has anyone seen this before? I assume it is a configuration issue, but I am not sure where to look.uname -aLinux xxxxserver 2.6.18-164.15.1.el5 #1 SMP Wed Mar 17 11:30:06 EDT 2010 x86_64 x86_64 x86_64 GNU/Linux/etc/redhat-releaseCentOS release 5.4 (Final)

View 3 Replies View Related

Fedora :: Do A "modprobe Xxxx" Only When Boot Up?

Jul 16, 2011

How do I do a "modprobe xxxx" only when I am booting up?

View 14 Replies View Related

General :: Replace The Old One.o With The New One.o?

Feb 15, 2010

I am having problem with the ar cmd. I had already created an archive archive.a with two .o files but I have modified one of them now. How do I replace the old one.o with the new one.o?

I used the ru cmd but it is not working. I don't think I am properly using it, this is how I have it so far:

ar ru archive.a one.o. But this is not working.

View 1 Replies View Related

General :: Replace All The C's And C's In It With %1?

Nov 13, 2010

I have a document. I want to replace all the c's and C's in it with %1 all the f's and F's in it with %2. i can get sed to do one of them but for some reason i can't get the script to do all the conversions at once.

View 4 Replies View Related

General :: Search And Replace /'s In VI

Feb 7, 2010

I was wondering how I would search and replace all /'s with -'s in vi. %s///-/g doesn't work obviously.

View 2 Replies View Related

General :: Making RPM Replace Another One

Jul 12, 2011

I want to make an rpm which when installed as an update causes another rpm to be removed. I'm fairly sure this is possible because I have seen LibreOffice rpms install as updates replacing OpenOffice rpms in the process without any interaction being required. However I'm unable to figure out how to do it, even after having looked at the spec file for such a LibreOffice rpm.

I have package gstreamer-0_10-ffmpeg installed. I have another package called multimedia installed. I've built a new version of multimedia which includes the gstreamer ffmpeg plugin so I don't need the gstreamer-0_10-ffmpeg package installed any more. I've tried using Provides and Obsolete in the spec file of the new multimedia package. E.g.

Code:
Provides: gstreamer-0_10-ffmpeg
Obsoletes: gstreamer-0_10-ffmpeg <= 0.10.10
(I've tried it with and without version numbers.) Whatever I put in the spec file, when I try and install the new multimedia package as an update zypper says

Code:
$ zypper up -y multimedia
Loading repository data...
Reading installed packages...
Resolving package dependencies...

Problem: multimedia-1.1-1.i586 obsoletes gstreamer-0_10-ffmpeg <= 0.10.10 provided by gstreamer-0_10-ffmpeg-0.10.10-0.i686
Solution 1: replacement of gstreamer-0_10-ffmpeg-0.10.10-0.i686 with multimedia-1.1-1.i586
Solution 2: do not ask to install a solvable providing multimedia > 1.0-2
Selecting an option manually is no good, I need the update to happen without user interaction.

View 3 Replies View Related

General :: Find Or Replace Without Using Sed?

Dec 27, 2010

I am working on writing a script for find and replace a string using sed.But know I want to write without using sed.

View 9 Replies View Related

General :: How To Replace The Path

Feb 16, 2010

I added a path in my bash_profile so that I could use the executables in the directory (I thought). But it turned out some other directory has the same executables and the path had already been added by the previous user. Is there way to overwrite this path? I can't find where that old path was added.

View 10 Replies View Related

General :: Replace Everything Before @ Symbol?

Nov 13, 2009

I have a list of email address's that I need to sift through to identify only the domain name.

xyz@yo.com
abs@yo.com
clahclah@test.com

I want to remove everything before the @ symbol and only print the domain name. Can anyone assist with this?

View 8 Replies View Related

General :: Sed Replace String Up To Tab

Dec 12, 2009

I'd like a sed command to replace all decimal values greater than 0.5 with nothing in a tab delimited text file.

EX:

There would be one tab before 0.301 and two tabs after it. This way when you paste the text into an excel spreadsheet, there are empty cells where you deleted values.

I thought the sed command would be something like:

But this will delete everything.

What I need is something that will start deleting when it sees 0.[5-9] and stop when it reaches a tab. I know you can use [^character]+ to do this, but it doesn't seem to work with a TAB as the character.

Another idea I had would be to have sed replace from 0.[5-9] to 0. and replace with a tab + 0. But I also cant get [^0.]+ to work as it only works with single characters.

View 14 Replies View Related

General :: Sed To Replace First And Second Instance?

Jul 17, 2011

I might just be crazy or particularly dumb today but what I'm trying to do is have sed replace the first and second instance of a character on a line but not after that.

Basically it is a csv file with a date formatted as dd/mm/yyyy and I need to completely remove the slashes. No problem using:

Code:
sed 's////g' < file > outputfile

The only problem is that one of the columns after this may also contain these slashes and shouldn't be removed.

I must have read every single sed page on the net today to find a way to do it to no avail! Is it as simple as :

Code:
sed 's////1' < file > outputfile

And then run the same on the output file again? these two slashes will always be the first and second slashes in the file.

View 6 Replies View Related

General :: Replace Multiple Spaces By One Tab

Feb 2, 2011

Ive some textfiles which contains some colums seperated by a various number of spaces, but instead i need one single tab as a seperator.

View 5 Replies View Related

General :: How To Replace Sendmail With Postifx

Mar 9, 2011

Been using the Amazon EC2 Linux AMI and enjoying it.It comes configured with sendmail. I think I'd rather use postfix.replacing sendmail with postfix might be as simple as what I found searching online:

$ rpm -e sendmail
$ yum install postfix.

However rpm complains:

$ rpm -e sendmail
error: Failed dependencies:
smtpdaemon is needed by (installed) mdadm-2.6.9-3.7.amzn1.i386

View 1 Replies View Related

General :: Can Replace Windows With Wine

May 10, 2011

I will buy a new computer and install Kubuntu on it.The only kind of software that I would run on Windows are PC games. Can I play most of Windows games without problems with Wine on Linux?If Wine cannot run games, how much of disk partition is recommended to install Windows and PC games? Can Windows read ext4 partitions?

View 5 Replies View Related

General :: Replace One Line For Another In File?

Dec 1, 2010

I trying to change a file with hundreds of entries, replacing line with "IP Address Number" for "Host Name", one for another.

this is the original: [IP Address Configuration : "172_17_27_161.SUBNET_U"] IP Address Number = 172.17.27.161Assignment Type = 8Host Name = CAST124Last Used = 1290499294000MAC Address = 1 00 16 35 74 4C 59Client Identifier = 01 00 16 35 74 4C 59and the result desired is: [IP Address Configuration : "172_17_27_161.SUBNET_U"]Host Name = CAST124Assignment Type = 8IP Address Number = 172.17.27.161Last Used = 1290499294000MAC Address = 1 00 16 35 74 4C 59Client Identifier = 01 00 16 35 74 4C 59I know how to change one character by another with sed, but not to change a line for another, because I don't know in which line number it is.

View 3 Replies View Related

General :: Find And Replace String?

Jul 26, 2011

I need to find this "TYPE=MyISAM;" and replace with "ENGINE=MyISAM;" in all .sql files in a directory. How can I do this with sed?

View 2 Replies View Related

General :: Vim Replace All The Same Words In A Certain Line?

Dec 2, 2010

15 for(i = 0; i < N; i++) I want to replace "i" with "test" in the line above,whose line number is 15. When I tried this command :15s/i/test/ Line 15 turned to be this: for(test = 0; i < N; i++) It only replace the first "i",but I want to change all "i" in line 15.

View 3 Replies View Related

General :: Replace Nvidiafb With Another Driver?

May 13, 2010

I'm running Ubuntu 9.10. I've tried installing the correct nvidia-glx driver for my added AGP card but keep getting an error about another driver is working, which is the generic nvidiafb one. How would I disable or remove it to install the correct one

View 1 Replies View Related

General :: Replace A Pattern In A File?

Jun 11, 2010

I want to replace a pattern in a file.The file format is given below.

111111
path=/home/fun/
222222
path=/home/fun/

[Code]....

I want to replace "path=/home/fun" with another pattern, but only under "111111", all the others should be the same.

View 14 Replies View Related

General :: Replace Characters In Txt File?

Nov 7, 2010

I have txt file with list of ID's and I need to insert comma in every line and then remove new line character so it'll become one long string. So to clarify, I have txt file content that looks like this.

234
5466
2356
... and so on.

but I would like this to change to 234,5466,2356,... I looked at sed and tried to wrap my head around the commands but I guess my brain isn't smart enough. its really confusing for me. I've managed to add commas to end of line (sed "s/$/,/g" filename) but somehow I can't seem to remove new line character from each line.

sed 's/[

]*$//' doesn't seem to work.

View 4 Replies View Related

General :: Replace Data - Transaction IDs And Corresponding Value

Dec 22, 2010

I have two files one of which having some Transaction IDS and corresponding value whose sample content as follows:

Code:
SDP-DM-100689014,8.0
SDP-DM-100689202,30.0
And in second file complete details of all Transaction IDs and sample content as follows and delimeter used is comma(,):

Code:
SDP-DM-100689014,2010-12-21 19:24:29 GMT+05:30,CRBT,18,UK,Default,B_11170244,9058629605,405818120653083,,Pre-Paid,Comviva,default_provider,009114500001366,,0.0,code0,0,,Caller Tune,,UK#11561723,,1292939663242,VAS0003ALL,52211,,,UK,,0.0,Grace,
SDP-DM-100689202,2010-12-21 19:24:34 GMT+05:30,Subscription,4,BJ,,B_12326406,9122828964,405876120814560,,Pre-Paid,,default_provider,4945,,40.0,,0,,,,BJ#12106840,,-2206657c%3A12d08f49330%3A4812,VAS0003ALL,,OBD,RECURRING,BJ,,,,

And I want is if column number 1 of first file which is transaction ID matches with column number 1 of second file which is transaction ID than 18th column of second file is replaced with data provided on first file with the respective transaction ID. Example of output as follows:

Code:
SDP-DM-100689014,2010-12-21 19:24:29 GMT+05:30,CRBT,18,UK,Default,B_11170244,9058629605,405818120653083,,Pre-Paid,Comviva,default_provider,009114500001366,,0.0,code0,8.0,,Caller Tune,,UK#11561723,,1292939663242,VAS0003ALL,52211,,,UK,,0.0,Grace,
SDP-DM-100689202,2010-12-21 19:24:34 GMT+05:30,Subscription,4,BJ,,B_12326406,9122828964,405876120814560,,Pre-Paid,,default_provider,4945,,40.0,,30.0,,,,BJ#12106840,,-2206657c%3A12d08f49330%3A4812,VAS0003ALL,,OBD,RECURRING,BJ,,,,

View 1 Replies View Related

General :: Replace OS X On IMac With Kubuntu?

Apr 4, 2011

Machine:
iMac (aluminum from like '06/'07)
Intel Core 2 Duo
1 GB 667MHz DDR2 SDRAM

Can I replace OS X with Kubuntu just the same, and as simply as, replacing Windoz with Kubuntu?

Anything I need to know, advice? Tutorial? Im have not much experience with Macs. I am well experienced with PC multiboots, but all I want to do here is eradicate OSX, and replace. My first time loading Linux on Apple machine.

View 3 Replies View Related







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