12-09-2009
Filter data in Excel sheet using Shell Script
Hi,
I have an excel sheet which has 100000 records. All these records are having 3 columns each with the last column as "Y" or "N". I would like to filter those records which has the value "Y". Can you please let me know how to proceed with that?
Thanks in advance.
-Sri
---------- Post updated at 11:39 AM ---------- Previous update was at 11:09 AM ----------
Any update on this
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
I have 3 columns in an excel sheet.
c1 c2 c3
EIP_ACCOUNT SMALL_TS_01 select A.* from acc;
All the above 3 col shoud be passed a variable in the unix code.
1.How to read an excel file
2.How to pass these data as variable to the unic script (1 Reply)
Discussion started by: Anne Grace
1 Replies
2. Shell Programming and Scripting
Hi All,
I am having an excel sheet with pre-defined format which our business team specified, what i need to do is i have to write a script which need to pick values from database and update specified cells in excel sheet..
can any one please help me in this regard..
I am able to pull the... (3 Replies)
Discussion started by: balanarendra
3 Replies
3. Shell Programming and Scripting
Hi Guys..
Need your help to format the output of my shell script.
I am using spool command to take out put in csv file.
below is my code. (for example)
col USERNAME for a15
col EMAIL for a30
col FULL_NAME for a20
col LAST_LOGIN for a40
col DATE_CREATED for a40
SPOOL 120.csv... (3 Replies)
Discussion started by: Agupte
3 Replies
4. Shell Programming and Scripting
hi,
i have a text file that looks like this!
i want to generate an excel sheet out of it, removing all the junk data except the addresses
that look like
. Arrow Electrical Services
Rotating Machinery, Electrical Contracting & Mining Specialists
Onsite maintenance, breakdown... (8 Replies)
Discussion started by: vemkiran
8 Replies
5. Shell Programming and Scripting
Export data from database in Excel sheet with the help of Shell script and automated the report every day in the mornig. (1 Reply)
Discussion started by: neeraj617
1 Replies
6. UNIX for Dummies Questions & Answers
Hi,
i have some data in a temporary file in Unix (the data is taken from the result of an SQL query). Now i want to dump that data into an excel sheet. How to do that. Someone please advise. Thanks
Regards,
Vinit (3 Replies)
Discussion started by: vinit raj
3 Replies
7. Shell Programming and Scripting
Hello,
I have the following data format in a log file :
a : x1
b : x2
c : x3
d : x4
--------
a : x5
b : x6
c : x7
d : x8
so the same fields ( a ,b ,c,d) repeated many times in the same log file but with different "x" values (x5,x6,x7,x8).
I need a script to save this data in an... (6 Replies)
Discussion started by: mm00123
6 Replies
8. Shell Programming and Scripting
(1 Reply)
Discussion started by: sagar_1986
1 Replies
9. Shell Programming and Scripting
Hi,
I want to write a program to copy a log file to Excel sheet. Excel sheet has four columns MethodName , Code , Description, Details and Time.
I want to pick these info from text file and put it in excel sheet.
here is how the text file looks -
04.17.2014 08:06:12,697... (1 Reply)
Discussion started by: hershey
1 Replies
10. Shell Programming and Scripting
Hi Folks,
Can you please advise for any script in unix such that for example , i have 3 different excel sheet at the location /ppt/gfr/exc so the name s of the excel sheet are
1excel.xslx
2excel.xslx
3excel.xslx
now in these 3 different excel sheet there is lot of data for example each... (3 Replies)
Discussion started by: punpun66
3 Replies
LEARN ABOUT CENTOS
ltdbtool
LTDBTOOL(1) CTDB - clustered TDB database LTDBTOOL(1)
NAME
ltdbtool - manipulate CTDB's local TDB files
SYNOPSIS
ltdbtool [OPTION...] {COMMAND} [COMMAND-ARGS]
DESCRIPTION
ltdbtool is a utility to manipulate CTDB's local TDB databases (LTDBs) without connecting to a CTDB daemon.
It can be used to:
o dump the contents of a LTDB, optionally printing the CTDB record header information,
o convert between an LTDB and a non-clustered tdb by adding or removing CTDB headers and
o convert between 64 and 32 bit LTDBs where the CTDB record headers differ by 4 bytes of padding.
OPTIONS
-e
Dump empty records. These are normally excluded.
-p
Dump with header information, similar to "ctdb catdb".
-s {0 | 32 | 64}
Specify how to determine the CTDB record header size for the input database:
0
no CTDB header
32
CTDB header size of a 32 bit system (20 bytes)
64
CTDB header size of a 64 bit system (24 bytes)
The default is 32 or 64 depending on the system architecture.
-o {0 | 32 | 64}
Specify how to determine the CTDB record header size for the output database, see -s.
-S SIZE
Explicitly specify the CTDB record header SIZE of the input database in bytes.
-O SIZE
Explicitly specify the CTDB record header SIZE for the output database in bytes.
-h
Print help text.
COMMANDS
help
Print help text.
dump IDB
Dump the contents of an LTDB input file IDB to standard output in a human-readable format.
convert IDB ODB
Copy an LTDB input file IDB to output file ODB, optionally adding or removing CTDB headers.
EXAMPLES
Print a local tdb in "tdbdump" style:
ltdbtool dump idmap2.tdb.0
Print a local tdb with header information similar to "ctdb catdb":
ltdbtool dump -p idmap2.tdb.0
Strip the CTDB headers from records:
ltdbtool convert -o0 idmap2.tdb.0 idmap.tdb
Strip 64 bit CTDB headers from records, running on i386:
ltdbtool convert -s64 -o0 idmap2.tdb.0 idmap.tdb
Strip the CTDB headers from records by piping through tdbrestore:
ltdbtool dump idmap2.tdb.0 | tdbrestore idmap.tdb
Convert a local tdb from a 64 bit system for usage on a 32 bit system:
ltdbtool convert -s64 -o32 idmap2.tdb.0 idmap2.tdb.1
Add a default header:
ltdbtool convert -s0 idmap.tdb idmap2.tdb.0
SEE ALSO
ctdb(1), tdbdump(1), tdbrestore(1), ctdb(7), http://ctdb.samba.org/
AUTHOR
This documentation was written by Gregor Beck
COPYRIGHT
Copyright (C) 2011 Gregor Beck, Michael Adam
This program 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 3 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; if not, see http://www.gnu.org/licenses.
ctdb 11/27/2013 LTDBTOOL(1)