Hi
I have a file & always I need to remove or delete last 2 lines from that file. So in a file if I have 10 lines then it should return me first 8 lines.
Can someone help me? (4 Replies)
Hi,
Just consider there are around 10 lines in a file. Now is it possible to delete the first 2 lines in the file without opening the file. No matter whatever the content of the file is, I just wanna delete the first 2 lines without opening the file. Is that possible? If so, please help me out.... (3 Replies)
I have a file with 65 sets of 35 coordinates, and would like to isolate these coordinates so that I can easily copy the coordinates to another file. The problem is, I've got a 9 line header before each set of coordinates (so each set is 44 lines long). There are a zillion threads out there about... (3 Replies)
I am having a requirement like
File A contains All the records
eg.,
ONE
TWO
THREE
FOUR
FIVE
SIX
SEVEN
EIGHT
NINE
TEN
File B contains invalid records of File A
eg.,
TWO
FOUR
FIVE
SEVEN (7 Replies)
I tried a few ways to resolve this using a bash script w/ a loop, no luck.
File1: roughly 6,000 account numbers such as:
1111
1512
1113
123
I also have a dozen or so csv files, w/ the account number in the 4th field. What I would like to do is remove all lines if the... (19 Replies)
We have a server that logs transactions to a file. I want to write a script that will delete the first 50 lines of the file daily without renameing the file or moving the file. (8 Replies)
Hello Everyone,
I'm currently have a requirement where I've generated a list of files with specific attributes and I need to know what lines are similar between the two files. For example:
-File 1-
line1
line2
line3
-File 2-
line1
line2
line4
line5
-Desires Output-
line1
line2... (5 Replies)
Hi,
I have a file with the content:
for name in \
sree\
rama\
laila\
srihari\
vicky\
john
do
echo $name
done
I need to remove all the name lines that exist between for (first line) and do line so that i can replace with new names.
Output file should look like: (3 Replies)
Discussion started by: raosr020
3 Replies
LEARN ABOUT SUSE
dupdb-admin
dupdp-admin(1) General Commands Manual dupdp-admin(1)NAME
dupdb-admin - Manage the duplicate database for apport-retrace.
SYNOPSIS
dupdb-admin -f dbpath status
dupdb-admin -f dbpath dump
dupdb-admin -f dbpath changeid oldid newid
DESCRIPTION apport-retrace(1) has the capability of checking for duplicate bugs (amonst other things). It uses an SQLite database for keeping track of
master bugs. dupdb-admin is a small tool to manage that database.
The central concept in that database is a "crash signature", a string that uniquely identifies a particular crash. It is built from the
executable path name, the signal number or exception name, and the topmost functions of the stack trace.
The database maps crash signatures to the 'master' crash id and thus can close duplicate crash reports with a reference to that master ID.
It also tracks the status of crashes (open/fixed in a particular version) to be able to identify regressions.
MODES
status Print general status of the duplicate db. For now, it only shows the time when the database was "consolidated" last, i. e. when the
bug states (open/fixed) in the SQLite database where updated to the actual states in the bug tracking system.
dump Print a list of all database entries.
changeid
Change the associated crash ID for a particular crash.
OPTIONS -f path, --database-file=path
Instead of processing the new crash reports in /var/crash/, report a particular report in an arbitrary file location. This is use-
ful for copying a crash report to a machine with internet connection and reporting it from there. This defaults to ~./apport_dupli-
cates.db.
AUTHOR
apport and the accompanying tools are developed by Martin Pitt <martin.pitt@ubuntu.com>.
Martin Pitt August 01, 2007 dupdp-admin(1)