Fedora :: Editing A 26 Gigabyte Text File?

Jul 15, 2009

I did a pg_dump of our data warehouse, and it is 26 gigabytes. I wanted to load this data into a different database product (one that forked from Postgresql, so its syntax is very similar).I needed to change the syntax of the "COPY" command in the pg_dump output, remove references to "public", and change the table owner name. sed did these for me (albeit slowly). The output from pg_dump is a file called "pg-dump-output.sql".

pg_dump produces this:
Code:
...

[code]...

View 4 Replies


ADVERTISEMENT

General :: Text File Column Editing

Jul 17, 2011

I have 2 large text files , one looks like this:

<contact type="1">blahblah@hotmail.com</contact>
<contact type="1">blahblah2@hotmail.com</contact>
<contact type="1">blahblah3@hotmail.com</contact>

The other is a list of emails in single column format like this:

emailaddy@hotmail.com
emailaddy2@hotmail.com
emailaddy3@hotmail.com , etc

Is there a command to delete all the blahblah emails from text file 1 and replace them with the ones from text file 2?

Or maybe a linux version of 'Csved' which has the ability to add,remove,insert columns?

View 5 Replies View Related

Fedora :: F14 Gnome Text/plain Versus Text/html File Type

Apr 2, 2011

I put a text file on my desktop and added a couple lines of text with gedit. File type shows text/plain. Double-click opens the file in gedit which is what I want. I'm using the file to temporarily hold some snips of code that I copy from file to file, but when I copy some html into the file and save it, now file properties show it's text/html and a double-click opens the file in firefox, which isn't what I want. Is there some way to keep the file type from changing itself?

View 6 Replies View Related

Fedora :: Can't Open File For Editing

Apr 8, 2011

I tried to open and edit a root file to edit it and I got this error:gedit /usr/etc/w3c/validator.conf

View 2 Replies View Related

Programming :: Editing Text Using AWK?

Jan 11, 2010

Code:
echo -n "Title:"
read Title

[code]...

View 12 Replies View Related

Fedora Installation :: Editing Boot INI File To Detect F12?

Jan 6, 2010

Problem is to boot fedora. On my system I have 3 HDD
on 1st - 2 partition (1)XP (2) free space for data NTFS
on 2d - 1 partition (1) Win Serv 2003
on 3d - 3 partitions (1) free space for data NTFS (2) /boot (3) Fedora 12

After installation boot manager doesn't see fedora! Only give me option to run XP or 2003. Another problem Fedora 12 Live CD doesn't work for my graphic. I see some quick text after lanch and then black screen but still understand that there going some processes under that black screen, than it looks like stop and w8 for my decision which I cant make cause don't see what is there going on. So there no chance to get under linux after instalation and no chance using live CD to install GRUB and I need some how edit boot.ini in windows to make it appear fedora in boot menu.

My current boot.ini looks like that:
Code:
[boot loader]
timeout=30
default=multi(0)disk(0)rdisk(1)partition(1)WINDOWS
[operating systems]
multi(0)disk(0)rdisk(1)partition(1)WINDOWS="Windows Server 2003 Enterprise x64 Edition" /noexecute=optout /fastdetect
multi(0)disk(0)rdisk(0)partition(1)WINDOWS="Microsoft Windows XP Professional" /noexecute=optin /fastdetect
how should looks 3d line?
Code:
multi(0)disk(0)rdisk(2)partition(3)Linux="Fedora 12" /noexecute=optin /fastdetect
like this?

View 6 Replies View Related

Fedora :: Editing A Line In A Daemon.conf [read Only] File?

Mar 16, 2011

I need to edit a line in a file in gedit, but its read only. I need to change

; default-sample-rate = 44100
to
default-sample-rate=44800.

Would anyone know if there is an option to make a read only file editable? Judging by the responses to the thread I followed to enable my soundcard, it is possible, and perhaps there is some setting etc that needs changing

View 3 Replies View Related

Debian Multimedia :: Scribus Crash When Editing Text

Jul 20, 2015

I use Scribus 1.4.4 without any changes from the Debian stable repository.

Each time when I edit text in the layout mode (not in the text editor) the program crashes with a "signal #11" message:

Code: Select all$ scribus
TIFFFetchNormalTag: Warning, Incompatible type for "RichTIFFIPTC"; tag ignored.
TIFFFetchNormalTag: Warning, Incompatible type for "RichTIFFIPTC"; tag ignored.
TIFFFetchNormalTag: Warning, Incompatible type for "RichTIFFIPTC"; tag ignored.
TIFFFetchNormalTag: Warning, Incompatible type for "RichTIFFIPTC"; tag ignored.
Scribus Crash
-------------
Scribus crashes due to Signal #11
Calling Emergency Save
Segmentation fault

On Wheezy I was using Scribus also, but without such problems. Unfortunately I often need to use the text editing in the layout mode in order to adjust the text flow for the final layout.

View 2 Replies View Related

Ubuntu Multimedia :: Video Editing / Text And Reverse

Apr 9, 2010

I'm trying to reverse a clip in kdenlive and add text on top of the moving clip, but cannot figure out how to do it..anyone know how or a program that can?

View 2 Replies View Related

Programming :: Editing Text Files With Information From PostgreSQL DB?

May 16, 2011

Is there any way to edit text files with information in a database? The file is supposed to be always the same.. the information is going to be addedd in a specific format

View 2 Replies View Related

Ubuntu :: Sort The Output To A Text File So That It Prints To The Text File At 1 Process Per Line?

Feb 6, 2011

im trying to output a list of running processes via a shell script. At the moment i got this which outputs the processes to a text file called out.

echo $(ps aux) >>out

The problem is though, the processes are all just one big block of text which makes it hard to read. Does anyone know how to sort the output to a text file so that it prints to the text file at 1 process per line? I know its probably simple but im very new to linux.

View 5 Replies View Related

General :: Text Editing Remote Edit With Local Editor

May 26, 2010

I have a server I can ssh into, and I am also running Ubuntu. How do I edit this remote file using any program I have installed on my local Ubuntu, without copying it to local, editing it, and copying it back?

View 4 Replies View Related

Debian Multimedia :: Scribus Crashes When Editing Text In Layout Mode

Sep 29, 2015

I use Scribus for designing leaflets and broshures. Unfortunately with the most recent version in the stable branch the program crashes each time I try to edit text in layout mode. I didn't have this problem in older versions. So I wonder if this is a bug others noticed in Scribus 1.4.4 on Debian GNU/Linux 8 (jessie) 32-bit.

For normal text editing I use the text edit mode anyway but when I try to fix line breaks it's always hard to not instantly see what I am doing. So even if I just want to insert a single character the program crashes with the following message: Scribus crashes due to Signal #11

View 3 Replies View Related

Fedora Installation :: Editing Fstab File To Mount Ntfs Volumes Rw For User Account?

Mar 29, 2009

I have two NTFS volumes I want to automount at boot. I can't get my user account to mount them in Fedora 10. I keep getting the message that the two lines I have edited in fstab are bad. The volumes are sda2 and sda8, and the volume names are SPACELAB and Spaceman. I also need to be able to mount an NTFS usb drive from time to time. I am getting frustrated, so I have posted my fstab file below,

#
# /etc/fstab
# Created by anaconda on Sun Mar 1 12:44:11 2009
#

[code]....

View 13 Replies View Related

Programming :: Remove Lines In A Text File Based On Another Text File?

Jan 28, 2009

I have a text file called file1.txt containing many lines eg.

line1
line2
line3
line4
line5
line6

Then i have another text file called file2.txt contains

3
5
6

Is there a command to remove the lines in file1.txt based on the keywords in file2.txt? note: It should remove line3,line5,line6 based on 3,5,6

View 10 Replies View Related

Red Hat / Fedora :: Convert Plain Text File To Html File Without Using Perl?

Jun 9, 2010

I am looking for some source package which will convert plain text file to html file without using perl.

I mainly need to do this on an ARM platform, so if I get sources I can cross compile it.

View 5 Replies View Related

Red Hat / Fedora :: Edit A Text File To Delete All Commas In The File?

Jan 4, 2011

i want to find a command line way to edit a text file to delete all commas in the file. i do not want to replace them w/ anything.

View 2 Replies View Related

Fedora Hardware :: Running 14 On Gigabyte GA-890GPA-UD3H

Jan 14, 2011

Has anyone installed Fedora 14 with the above MoBo and using a video card in the PCIe x16 slot? I'm experiencing boot failures when I try to boot using cards in either the x16 or x8 slots as my default video.

View 14 Replies View Related

General :: Replace Text In One File With Text From Another File Using Sed?

Apr 28, 2010

How could I replace text in one file with text from another file using sed?

The text in each of the files would be surrounded by a starting and ending delimiter or a starting tag, say like /* */ so to easily find them.

View 8 Replies View Related

Software :: Use Sed To Include A Text File In The Beginning Of Other Text Files Inside A Folder And Its Subfolders?

Jun 1, 2010

Can I use sed to include a text file in the beginning of other text files inside a folder and its subfolders? So it should be recursive.

View 4 Replies View Related

Fedora Hardware :: Gigabyte GA-H55M-UD2H SATA Controller

Aug 18, 2010

A friend of mine bought a prebuilt system from a local computer store that has the Gigabyte GA-H55M-UD2H motherboard and he says he can boot Fedora off the CD but cannot install it as it doesn't detect the harddrive.

I assume it can't detect the SATA Controller as I am pretty sure hard drives use a universal driver so the only way for it not to detect the hard drive is if the controller is not detected.

I was wondering if anyone here has this motherboard and has this problem.

I think I gave him a Fedora 12 CD. (EDIT: It's Fedora 11 judging by the filename of the ISO I have on my Desktop...)

I myself haven't used Linux in a while since I completed my Linux course and this game I play needs Windows, but I am trying not to play that game as much anymore though because of free time issues... I have an Ubuntu Dualboot but have become used to Windows again. I am gonna try using Linux in a VM to get accustomed to it again, this way I can play with different versions/distros and still have the Windows 7 host as a fallback is something doesn't work...

View 2 Replies View Related

Programming :: Adding Lines Of Text To Beginning Of Text File

Jan 19, 2009

I need to insert 3-4 lines of text to the beginning of a text file. The file is a largish MYSQL dump, the result of a backup shell script. This shell script should insert the required text.I've wrestled with sed, but lost.

View 2 Replies View Related

Programming :: Delete Line Of Text From Text File Via Shell?

Jan 13, 2010

I have to delete a certain line of text from the a textfile via ubuntu's shell scripting.I have done research, and it seems that most people advocate the usage of sed /d option. sed makes does not edit the text file. Hence, most options I discovered involved the use of a temporary variable/textfile and then overwriting the old file with the temporary new file. Is there anyway whereby I can bypass the use of temporary storage containers? I hope there is any magical combination of commands to edit the file directly.

View 3 Replies View Related

Programming :: Exporting Glade Text View To Text File?

Jan 8, 2011

I want to display something in my text view widget in glade using c code. that's all right.
now I need to attach a save button beneath the text view.so that on click the text view content should save as a txt file..

View 8 Replies View Related

Programming :: Formatting Fields And Text Being Displayed From Text File?

Feb 9, 2011

I want to display the contents of a particular log file (simple text file, I mean in Linux). But there is a problem: The contents need to be organized in a fixed format. Have a look at this log file:

sampleLog.txt

Code:

User Name: XYZ
Reported Problems Description: Blah! Blah! Blah! Blah!Blah! Blah!Blah! Blah!Blah! Blah!Blah! Blah!Blah! Blah!Blah! Blah!Blah! Blah!Blah! Blah!Blah! Blah!Blah! Blah!Blah!

[code]....

So, while displaying the contents of above file on a web page, I want to format the field names found in the log file: User Name:, Reported Problems Description:, and Remarks:. These fields may contain a variable length of text and no specific line number is assumed for them to appear on.

The desired output should look like this:

User Name: XYZ
Reported Problems Description: Blah! Blah! Blah! Blah!Blah! Blah!Blah! Blah!Blah! Blah!Blah! Blah!Blah! Blah!Blah! Blah!Blah! Blah!Blah! Blah!Blah! Blah!Blah! Blah!Blah!

[code]....

Well, what I am trying to do may sound wierd to some of you. The filed "Reported Problems Description:" can possible contain text which embeds colon (.

View 15 Replies View Related

Fedora :: No Text File Preview In Nautilus / Get That?

May 22, 2010

Nautilus shows no text preview in icons for text files with preview enabeld.

View 4 Replies View Related

Fedora :: How To Extract Line From Text File

Aug 24, 2010

I'm trying to figure this error message out. This little script is supposed to tweet my laptop's IP address, as a cron job, I'm hopeful that it would do so even if it's stolen. This is a variant of one that works, but this doesn't, and I can't see a difference in the curl line of either one.

Code:
#!/bin/bash
user="xxxxxx@xxxxxxxxx"
pass="xxxxxxxxxxx"
wget [URL]
TWEET=`sed -n 1p index.html`
curl --basic --user "$user:$pass" --data-ascii "status=$TWEET" "[URL]"
rm -f index.html
exit
This is the error message.

Code:
curl: (6) Could not resolve host: status=66.183.103.67; Cannot allocate memory
{"request":"/statuses/update.json","error":"Client must provide a 'status' parameter with a value."}
Why does curl think the status is the URL?

View 7 Replies View Related

Fedora :: Scan And Save As A Text File?

Apr 26, 2010

Fedora12/Kde4After a Sane Scan how do I Save a scan as a *.txt file ? gocr does not work, I can save in any other format but a txt file.

View 6 Replies View Related

Fedora :: Installed 13 On An 80 Gigabyte Hard Drive - Root Partition Too Large

Jun 10, 2010

I recently installed Fedora 13 on an 80 gigabyte hard drive, and it split the space in two, giving root and the normal partition both 36 gigabytes. I need at least 60 gig or more for my home partition. What can I do to shrink the root one? I currently do not have accsess to the install media or a rescue disk.

View 4 Replies View Related

Ubuntu :: Add / Remove Bits Of Text From A Text File

Dec 6, 2010

I am looking for a way to keep a log and make if then statements if a line exitsts in the log. I also am looking for a way to make a simple loop, like goto line number, and I also am wondering how to add/remove bits of text from a text file (plugins line in server.properties)

View 5 Replies View Related







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