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