06-16-2011
Did you try it? It should delete whole row...
10 More Discussions You Might Find Interesting
1. Programming
Hi, experts,
I would like to create a function that can calculate the total number of lines in a saved text file and delete specific lines in that particular file (I only want the last few lines). Hav anybody have the experience and giv me a hand in this? (9 Replies)
Discussion started by: dniz
9 Replies
2. Shell Programming and Scripting
Hi all,
I want to remove the files from a folder whcih contain a specific text in it.
eg:
If i have the files like
xxxx.NAME.adadd.ajfaj.kjfha
agsg.NAME.dfshd.djsh.sdjhf
asgd.NAME2.sdhj.djhf.sjdhf
shdd.NAME2.dhse.tywe.eyio
How to remove the files which contain the pattern "NAME"... (3 Replies)
Discussion started by: sparks
3 Replies
3. Shell Programming and Scripting
Hello
i want to know a way so i can delete all the strings in file from the begning till a specific string (1 Reply)
Discussion started by: modcan
1 Replies
4. Shell Programming and Scripting
Friends,
I have text file with 700,000 rows.
Once I load this file to our database via our cutom process, it logs the row number for rejected rows.
How do I delete rows from a Large text file based on the Row Number?
Thanks,
Prashant (8 Replies)
Discussion started by: ppat7046
8 Replies
5. Shell Programming and Scripting
Hi
I do have a text file with 1000's of lines with 1 row and column with a specific pattern.
1102
1
1
1
1
1234
1
1
1
1
1009
1
1
1
1
1056
1 (3 Replies)
Discussion started by: Lucky Ali
3 Replies
6. UNIX for Dummies Questions & Answers
I know this is a complicated question but I will try to illustrate it with some data. I have a data file that looks like the following:
1341 NA06985 0 0 2 46.6432798439
1341 NA06991 NA06993 NA06985 2 48.8478948517
1341 NA06993 0 0 1 45.8022601455
1340 NA06994 0 0 1 48.780669145
1340... (1 Reply)
Discussion started by: evelibertine
1 Replies
7. UNIX for Dummies Questions & Answers
How do I go about deleting specific rows from a text file (given row number)? (5 Replies)
Discussion started by: evelibertine
5 Replies
8. UNIX for Dummies Questions & Answers
Hi all
I have a file which looks like this
1234|1|Jon|some text|some text
1234|2|Jon|some text|some text
3453|5|Jon|some text|some text
6533|2|Kate|some text|some text
4567|3|Chris|some text|some text
4567|4|Maggie|some text|some text
8764|6|Maggie|some text|some text
My third column is my... (9 Replies)
Discussion started by: A-V
9 Replies
9. Shell Programming and Scripting
Dear all,
I would like to delete even lines starting with "N" together with their respective titles which are actually odd lines.
Below is the example of input file. I would like to remove line 8 and 12 together with its title line, i.e., line 7 and 11, respectively.... (2 Replies)
Discussion started by: huiyee1
2 Replies
10. Shell Programming and Scripting
I'm trying to remove a specific number of lines, above and below a specific line of text, highlighted in red:
<STMTTRN>
<TRNTYPE>CREDIT
<DTPOSTED>20151205000001
<TRNAMT>10
<FITID>667800001
<CHECKNUM>667800001
<MEMO>BALANCE
</STMTTRN>
<STMTTRN>
<TRNTYPE>DEBIT
<DTPOSTED>20151207000001... (8 Replies)
Discussion started by: bomsom
8 Replies
LEARN ABOUT CENTOS
xkballocgeomoverlayrows
XkbAllocGeomOverlayRows(3) XKB FUNCTIONS XkbAllocGeomOverlayRows(3)
NAME
XkbAllocGeomOverlayRows - Allocate rows in a overlay
SYNOPSIS
Status XkbAllocGeomOverlayRows (XkbOverlayPtr overlay, int num_needed);
ARGUMENTS
- overlay
section for which rows should be allocated
- num_needed
number of new rows required
DESCRIPTION
Xkb provides a number of functions to allocate and free subcomponents of a keyboard geometry. Use these functions to create or modify key-
board geometries. Note that these functions merely allocate space for the new element(s), and it is up to you to fill in the values
explicitly in your code. These allocation functions increase sz_* but never touch num_* (unless there is an allocation failure, in which
case they reset both sz_* and num_* to zero). These functions return Success if they succeed, BadAlloc if they are not able to allocate
space, or BadValue if a parameter is not as expected.
XkbAllocGeomOverlayRows allocates num_needed rows and adds them to the overlay. No initialization of the rows is done.
To free rows in an overlay, use XkbFreeGeomOverlayRows.
DIAGNOSTICS
BadAlloc Unable to allocate storage
BadValue An argument is out of range
SEE ALSO
XkbFreeGeomOverlayRows(3)
X Version 11 libX11 1.6.0 XkbAllocGeomOverlayRows(3)