06-20-2007
I would try:
sed 1d < bigfile.txt >bigfile2.txt
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
Hello,
I need to insert a line (like a header) as the first line of a very huge file (about 3 ml rows). I am able to do it with sed, but redirecting the output and creating a new file takes quite some time. I was wondering if there was a more efficient way of doing it?
Any help would be... (3 Replies)
Discussion started by: shriek
3 Replies
2. Shell Programming and Scripting
what is the sed command to remove the first two characters of every line of a text file?
each line of the text file has the same amount of characters, and they are ALL NUMERIC. there are hundreds of lines though.
for example,
>cat file1.txt
10081551
10081599
10082234
10082259
20081134... (20 Replies)
Discussion started by: ajp7701
20 Replies
3. Shell Programming and Scripting
I have huge text files (~120 MB)x100 which equivalents to ~11GB of data. The files contain pure numbers, actually the value of "phi" to 10 billion digits!!
I know its huge!! Here are the last few lines of a file
0952899155 3233967444 3344925499 0276061529 7261968933 9683989044 3317145063... (14 Replies)
Discussion started by: shantanuthatte
14 Replies
4. Shell Programming and Scripting
Hi.
I have a 10 Gb text file.the default text editor in ubuntu doens't open it.
Does anyone know how can i open it??
Thanks (4 Replies)
Discussion started by: stalaei
4 Replies
5. Shell Programming and Scripting
Hi,
I need to correct line breaks for huge files (more than 1MM records in a file) and then format it properly.
Except the header and trailer, each record starts with 'D'.
Requirement:Scan the whole file except the header and trailer records and see if any of the records start with... (19 Replies)
Discussion started by: kikionline
19 Replies
6. Shell Programming and Scripting
How do I output only the first 400 bytes of a huge text file to a new file.
It has to be unmodified so no added invisible characters.
Many thanks..... (3 Replies)
Discussion started by: garethsays
3 Replies
7. Shell Programming and Scripting
We have a huge file which has just one really large line; about 500 MB. I want to
1. Count all the occurrences of a phrase
2. Replace the phrase with another.
Trying to open it using vi has not helped as it complains that it is too large. Can any script help? Please advise.
Thank you, (12 Replies)
Discussion started by: kaushikadya
12 Replies
8. Shell Programming and Scripting
Hi All,
I am creating a text file using perl. The first record I am writing as "$line" and all the other as "\n$line". At the end the file is having N number of lines. I am using this file for MLOAD (Teradata), which is reading N+1 lines in the file and failing.I am not able to find new line... (2 Replies)
Discussion started by: unankix
2 Replies
9. Shell Programming and Scripting
Hi.
Pardon me if I'm posting a duplicate thread but..
I have a text file with over 150 Million records, file size is in the range if MB(close to GB).
The requirement is to read ALL the lines excepting the FIRST LINE which is the file header and the LAST LINE which is it's trailer record.
... (8 Replies)
Discussion started by: kumarjt
8 Replies
10. UNIX for Beginners Questions & Answers
Hi,
At the moment, using Notepad++ to do a search and replace, manually section by section which is real painful. Yeah, so copying each section of the line of text and putting into a file and then search and replace, need at least 3-operations in Notepad++.
Here's hoping I will be able to... (1 Reply)
Discussion started by: newbie_01
1 Replies
LEARN ABOUT DEBIAN
grcompiler
grcompiler(1) grcompiler(1)
NAME
grcompiler - Compile GDL into a TrueType Font
SYNOPSIS
grcompiler [-d] [-D] [-g] [-n number] [-v number] [-w number] [-wall] [-q] gdl-file font-file [output-file] [output-fontname]
Description
Grcompiler compiles a Graphite Description Language description of the smarts for a font along with a TrueType Font to create a graphite
font with graphite tables in it.
-d Generate XML debugger file.
-D Generate all debugger files.
-g Permit and ignore invalid glyph definitions.
-nnumber
Set name table start location.
-q Quiet mode (no messages except on error).
-vnumber
Set Silf table version number.
-wnnnn Ignore warning with the given number. This option may be repeated.
-wall Display all warnings.
Environment
grcompiler makes use of the following environment variables
GDLPP Specifies the command to execute to run the GDL preprocessor
Files
gdlerr.txt
Warnings and errors are output to this file.
dbg_classes.txt
Debug file that specifies the classes stored in the font in terms of their GDL source and containing glyph ids in hex.
dbg_cmap.txt
Debug file giving Unicode to glyph mapping of all the glyphs in the font and vice versa.
dbg_enginecode.txt
Debug file containing the action code and constraint code associated with each pass and rule in a pass.
dbg_fsm.txt
Debug file that gives the finite state machines of each pass and the rules referenced. For each pass, a mapping is given between
glyph and column number.
dbg_glyphattrs.txt
Debug file containing all the glyph attributes and their names, along with values specified for each glyph.
dbg_parsetree.txt
Debug file giving the complete parse tree of the GDL source file.
dbg_ruleprec.txt
Debug file that lists the rules in precedence order (order in which they will be tested) for each pass.
$_temp.gdl
Debug file containing the output of gdlpp
Author
Martin Hosken <mhosken@users.sourceforge.net>
$Date: 2012-05-29 11:36:50 $ grcompiler(1)