07-11-2006
Quote:
Originally Posted by Hitori
Replace commands like
s/"Report Type"<TAB>"This Report"//g
with
/"Report Type"<TAB>"This Report"/ d
Then you'll remove entire line (with '\n')
What do you mean by with \n Do you mean that i have to put \n in at the end of each line?
I tried using the /d also but it kept telling me that SED was missing an argument.
So the way i am understanding it, it should be like this?
s/"Report Set:"//g
s/"All Files ERM"//g
s/"All Files"//g
s/"Object Name:"//g
s/"06\/29\/2006 11:18:12"//g
s/"Selection:"//g
s/ All Files//g
s/"Description: This Report *"//g
/^$/d
There appears to be some unicode there also,尀 <--characters how do i get SED to see those when running the script? I put the following in:
s/尀//g
and returned an error on line 1 "Unknown Command".
thanks!!
9 More Discussions You Might Find Interesting
1. Programming
For reading in large text files (say files over 1kB in size) are there any issues with fopen() that I should be aware of ?
cheers (2 Replies)
Discussion started by: JamesGoh
2 Replies
2. Shell Programming and Scripting
Hi All!!
I have a large file containing millions of record. My purpose is to extract 7 characters immediately after text '19' from this file (including text '19') and save the result in new file.
So, my OUTPUT would be as under :
191234561
194567894
192789005
198839408
and so on.....
... (7 Replies)
Discussion started by: parshant_bvcoe
7 Replies
3. Shell Programming and Scripting
I have a large CSV files (e.g. 2 million records) and am hoping to do one of two things. I have been trying to use awk and sed but am a newbie and can't figure out how to get it to work. Any help you could offer would be greatly appreciated - I'm stuck trying to remove the colon and wildcards in... (6 Replies)
Discussion started by: metronomadic
6 Replies
4. Shell Programming and Scripting
Hi Everyone,
I am using a centos 5.2 server as an sflow log collector on my network. Currently I am using inmons free sflowtool to collect the packets sent by my switches. I have a bash script running on an infinate loop to stop and start the log collection at set intervals - currently one... (2 Replies)
Discussion started by: lord_butler
2 Replies
5. Shell Programming and Scripting
Hi All,
I am trying to extract data from a large text file , I want to extract lines which contains a five digit number followed by a hyphen , like
12345- , i tried with egrep ,eg : egrep "+" text.txt
but which returns all the lines which contains any number of digits followed by hyhen ,... (19 Replies)
Discussion started by: shijujoe
19 Replies
6. Shell Programming and Scripting
Hi,
i have more than 1000 data files(.txt) like this
first file format:
178.83 554.545
179.21 80.392
second file:
178.83 990.909
179.21 90.196
etc.
I want to combine them to the following format:
178.83,554.545,990.909,...
179.21,80.392,90.196,... (7 Replies)
Discussion started by: mr_monocyte
7 Replies
7. Solaris
Hello everyone. Need some help copying a filesystem. The situation is this: I have an oracle DB mounted on /u01 and need to copy it to /u02. /u01 is 500 Gb and /u02 is 300 Gb. The size used on /u01 is 187 Gb. This is running on solaris 9 and both filesystems are UFS.
I have tried to do it using:... (14 Replies)
Discussion started by: dragonov7
14 Replies
8. Shell Programming and Scripting
Hello all, newbie here. I've searched the forum and found many "how to split a text file" topics but none that are what I'm looking for.
I have a large text file (~15 MB) in size. It contains a variable number of "paragraphs" (for lack of a better word) that are each of variable length. A... (3 Replies)
Discussion started by: lupin..the..3rd
3 Replies
9. Programming
Hi All,
I don't want any codes for this problem. Just suggestions:
I have a huge collection of text files (around 300,000) which look like this:
1.fil
orange
apple
dskjdsk
computer
skjks
The entire text collection (referenced above) has about 1 billion words.
I have created... (1 Reply)
Discussion started by: shoaibjameel123
1 Replies
LEARN ABOUT DEBIAN
lire::report::tableinfo
TableInfo(3pm) LogReport's Lire Documentation TableInfo(3pm)
NAME
Lire::Report::TableInfo - Object that holds all the GroupInfo and ColumnInfo for one subreport
SYNOPSIS
my $info = $subreport->table_info;
my $col_info = $info->colum_info( "request_total" );
DESCRIPTION
The Lire::Report::TableInfo object holds the ColumnInfo and GroupInfo objects for one subreport..
CONSTRUCTOR
new()
Creates a new Lire::Report::TableInfo object.
column_info_by_name( $name )
Returns the Lire::Report::ColumnInfo object that has the name $name.
Contrary to the method in Lire::Report::GroupInfo, this one will throw an exception if there is no column named $name.
column_info_by_col_start( $idx )
Returns the Lire::Report::ColumnInfo object that is starts at column index $idx.
Contrary to the method in Lire::Report::GroupInfo, this one will throw an exception if this column is out of bounds.
group_info( $name )
Returns the Lire::Report::GroupInfo object that has the name $name.
Contrary to the method in Lire::Report::GroupInfo, this one will throw an exception if there is no column named $name.
ncols()
Returns the number of columns there is in this table.
column_infos()
Returns an array containing all the columns of the table. Each element is a Lire::Report::ColumnInfo object.
groups()
Returns an array containing all the groups of the table. Each element is a Lire::Report::GroupInfo object.
columns_width()
Returns an array where each element represents the suggested columns' width in characters.
header_rows()
Returns an array reference containing one array reference for each rows in the header. Each row contains the ColumnInfo that should appear
on the header line. The first row contains all the numerical columns and the categorical columns appear based on their nesting. The indices
of the column is always equals to its column's start.
set_variables_indices()
Registers this TableInfo's variables using Lire::Config::VariableIndex.
reset_variable_indices()
Removes the variables indices. This can be called to undo the effect of set_variables_indices().
SEE ALSO
Lire::Report::Subreport(3pm) Lire::Report::ColumnInfo(3pm)
VERSION
$Id: TableInfo.pm,v 1.26 2006/07/23 13:16:31 vanbaal Exp $
COPYRIGHT
Copyright (C) 2002 Stichting LogReport Foundation LogReport@LogReport.org
This file is part of Lire.
Lire is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free
Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program (see COPYING); if not, check with
http://www.gnu.org/copyleft/gpl.html.
AUTHOR
Francis J. Lacoste <flacoste@logreport.org>
Lire 2.1.1 2006-07-23 TableInfo(3pm)