I am iterating record by record through a file as below,
A,B
A,C
A,D
B,E
B,F
E,G
E,H
The same file should look like in the final output as below,
A,B
B,E
E,G
E,H
B,F
A,C
A,D (10 Replies)
Hi Everyone,
Please help me with this. I have gone through many posts here but couldn't find what I wanted.
I have a file with 79000+ lines and I want to delete lines in a pattern.
I want to delete every 141st line in the file, starting from line 2000 till 50000.
Please help guys.
... (8 Replies)
I have below file say temp1
BSCAJM1:HWJA10C
BSCAJM1:
BSCALW1:
BSCALW1:GVND01B
BSCALW1:
BSCALW1:
BSCBKNR:IJNMKTA
BSCBKNR:
BSCJOD1:
BSCJOD1:JOD121B
i want to delete all the lines ending with : and have below output
BSCAJM1:HWJA10C
BSCALW1:GVND01B
BSCBKNR:IJNMKTA... (8 Replies)
Hi i need an help. I have two files list1 and list2, both contains the server names i want to delete the servers in list2 which were also found in list1.
for an eg
list2 list1
oradg1 oradg4
oradg2 oradg2
oradg3 ... (5 Replies)
I have a huge file with record length around 5000 characters.
There is an ETL tool datastage which is writing this data to the file(AIX server). At position 4095 i have seen NULL Character(^@).
when i am using this command "head -1 file_nm | sed 's/\000//g'" --- the output is displaying... (3 Replies)
I have 800+ html files that need to have a javascript added to them in the head. I can do the looping, setting filenames as variables, etc. but I cannot figure out how to insert my javascript file into the html.
My javascript is in a file named jsinsert.txt
It basically has this format:... (4 Replies)
so i have this data in a file:
jime=1860,yime=1.23243,lime=
jime=1859,yime=1.23018,lime=
jime=1825,yime=1.15371,lime=
jime=1849,yime=1.20769,lime=
jime=1841,yime=1.1897,lime=
jime=1849,yime=1.20769,lime=
i use this code to calculate the percentage difference of the number in column 2... (9 Replies)
Hi,
I am in stage of post processing some of my results. I wanted to plot the data against the three axis x,y,z. The data file is quite complicated and i have to take the average of x, y,z over different steps of my test. A typical file look like below:
Time taken:4s
No.of series : 3... (6 Replies)
Hi, I'm currently dev'ing using awk and I'm currently stuck.
Here's the file, with comments on "<--- ":
Record <--- First Pattern
Amount 1 <--- Amount on first transaction
TotalSales 0 <--- Total Sales Prior from previous transactions
Time 1:00:00 <--- Time... (9 Replies)
Discussion started by: Jin_
9 Replies
LEARN ABOUT DEBIAN
grephistory
GREPHISTORY(1) General Commands Manual GREPHISTORY(1)NAME
grephistory - display file names from Usenet history file
SYNOPSIS
grephistory [ -f filename ] [ -e ] [ -n ] [ -q ] [ -l ] [ -t ] [ -i ] [ -s ] [ messageid ]
DESCRIPTION
Grephistory queries the dbz(3) index into the history(5) file for an article having a specified Message-ID.
If messageid cannot be found in the database, the program prints ``Not found'' and exits with a non-zero status. If messageid is in the
database, the program prints the pathname and exits successfully.
OPTIONS -n If no pathname exists, the program will print ``/dev/null'' and exit successfully. This can happen when an article has been can-
celled, or if it has been expired but its history is still retained. This is default behaviour, which can be obtained by using the
``-n'' flag.
-q If the ``-q'' flag is used, then no message is displayed. The program will still exit with the appropriate exit status.
-t If the ``-t'' flag is used, then only the offset into the history text file is printed.
-e If the ``-e'' flag is used, then grephistory will only print the filename of an existing article.
-l If the ``-l'' flag is used then the entire line from the history file will be displayed.
-i If the ``-i'' flag is used, then grephistory will read a list of Message-ID's on standard input, one per line. Leading and trailing
whitespace is ignored, as are any malformed lines. It will print on standard output those Message-ID's which are not found in the
history database. This flag is used in processsing ``ihave'' control messages.
-s If the ``-s'' flag is used, then grephistory will read a similar list from its standard input. It will print on standard output a
list of filenames for each article that is still available. This flag is used in processsing ``sendme'' control messages.
-f To specify a different value for the history file and database, use the ``-f'' flag.
HISTORY
Written by Rich $alz <rsalz@uunet.uu.net> for InterNetNews. This is revision 1.7, dated 1996/11/08.
SEE ALSO dbz(3), history(5).
GREPHISTORY(1)