09-09-2008
Quote:
Originally Posted by
dcfargo
I don't know what I'm doing wrong but that syntax appears to be writing the entire string for each line in the filenumbers instead of extracting the substring(s).
No one else knows what you are doing wrong, either, because you didn't post the code you executed.
Nor did you make it clear whether you already have the string in a variable or whether it has to be read from a file.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi
I need to list all files in the system:
1. Greater than specific size
2. All files sorted by size
How can I do that?
Thanks in advance. (2 Replies)
Discussion started by: GNMIKE
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
Hello,
I have got one file with more than 120+ million records(35 GB in size). I have to extract some relevant data from file based on some parameter and generate other output file.
What will be the besat and fastest way to extract the ne file.
sample file format :--... (2 Replies)
Discussion started by: learner16s
2 Replies
4. 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
5. Shell Programming and Scripting
Hello people :)
That's here my first message to your forum, so I guess it would be fine ^^
I have a request about a code I want to use.
Actually, my system use a large variable, including much informations but those informations can change by more and I want to extract one of thoses... (26 Replies)
Discussion started by: WolwX
26 Replies
6. Shell Programming and Scripting
I have a log file like below.
66.249.73.11 - - "UCiZ7QocVqYAABgwfP8AAHAA" "US" "Mediapartners-Google" "-" www.mahashwetha.com.sg "GET... (2 Replies)
Discussion started by: Tuxidow
2 Replies
7. Shell Programming and Scripting
Hi i have a php script that works 100% however i don't want this to run on php because of server limits etc. Ideally if i could convert this simple php script to a shell script i can set it up to run on a cron. My mac server has curl on it. So i am assuming i should be using this to download the... (3 Replies)
Discussion started by: timgolding
3 Replies
8. UNIX for Dummies Questions & Answers
Dear all,
I want to extract around 300 columns from a very large file with almost 2million columns. There are no headers, but I can find out which column numbers I want. I know I can extract with the function 'cut -f2' for example just the second column but how do I do this for such a large... (1 Reply)
Discussion started by: fndijk
1 Replies
9. Shell Programming and Scripting
Hi All!!
I have a large file containing millions of records. My purpose is to extract 8 characters immediately from the given file.
222222222|ZRF|2008.pdf|2008|01/29/2009|001|B|C|C
222222222|ZRF|2009.pdf|2009|01/29/2010|001|B|C|C
222222222|ZRF|2010.pdf|2010|01/29/2011|001|B|C|C... (5 Replies)
Discussion started by: pavand
5 Replies
10. UNIX for Beginners Questions & Answers
Hi All,
I have records in unix file like below. In this file, we have empty fields from 4th Column to 22nd Column. I have some 200000 records in a file. I want to extract records only which have empty fields from 4th field to 22nd filed. This file is comma separated file. what is the unix... (2 Replies)
Discussion started by: rakeshp
2 Replies
LEARN ABOUT DEBIAN
odt2txt.odt2txt
ODT2TXT(1) User Commands ODT2TXT(1)
NAME
odt2txt - a simple converter from OpenDocument Text to plain text
SYNOPSIS
odt2txt [OPTIONS] FILENAME
DESCRIPTION
odt2txt is a command-line tool which extracts the text out of OpenDocument Texts, as produced by OpenOffice.org, KOffice, StarOffice and
others.
odt2txt can also extract text from some file formats similar to OpenDocument Text, such as OpenOffice.org XML (*.sxw), which was used by
OpenOffice.org version 1.x and older StarOffice versions. To a lesser extend, odt2txt may be useful to extract content from OpenDocument
spreadsheets (*.ods) and OpenDocument presentations (*.odp).
The FILENAME argument is mandatory.
OPTIONS
--width=WIDTH
Wrap text lines after WIDTH characters. The default value is 65, which means that any words which would extend beyond column 65 are
moved to a new line.
If WIDTH is set to -1 then no lines will be broken
--output=FILE
Write output to FILE and not to standard output.
--subst=SUBST
Select which non-ascii characters shall be replaced by ascii look-a-likes. Valid values for SUBST are all, some and none.
--subst=all Substitute all characters for which substitutions are known
--subst=some Substitute all characters which the output charset does not contain This is the default
--subst=none Substitute no characters
--encoding=X
Do not try to autodetect the terminal encoding, but convert the document to encoding X unconditionally To find out, which terminal
encoding will be used in automatic mode, use --encoding=show
--raw Print raw XML
--version
Show version and copyright information
COPYRIGHT
Copyright (C) 2006,2007 Dennis Stosberg <dennis@stosberg.net>
Uses parts of the kunzip library, Copyright 2005,2006 by Michael Kohn
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License, version 2 as
published by the Free Software Foundation
SEE ALSO
Homepage
http://stosberg.net/odt2txt/
odt2txt 0.4 2008-06-23 ODT2TXT(1)