Assumes one per line; narrative is "Unzip to stdout the file you want in the zip, piping it to sed, which runs in the print on demand only mode, looking for the URL in an href attribute, either in double quotes or barefoot after the =, and ending just before any of a double quote, space or less-than, substituting just the URL part for the whole line, and if such a substitute happens, print."
i need help..!!!!
i have one big text file estimate data file size 50 - 100GB with 70 Mega Rows.
on OS SUN Solaris version 8
How i can remove first line of the text file.
Please suggest me for solutions.
Thank you very much in advance:) (5 Replies)
what is the sed command to remove the first two characters of every line of a text file?
each line of the text file has the same amount of characters, and they are ALL NUMERIC. there are hundreds of lines though.
for example,
>cat file1.txt
10081551
10081599
10082234
10082259
20081134... (20 Replies)
Hi, I'm trying to do something relatively simple.
I have a txt file that has the following kinds of lines (and many more lines):
CP19 Oahu - Maunawili Falls
CP20 Oahu - Maunawili Falls
AG12 Oahu - Maunawili Falls
CP22 Oahu - Maunawili Falls, Local area
AG14 Oahu
CP141 KZ102 Kauai -... (7 Replies)
hi, I wish to move a specified line from a text file:
ltoremove=5 #remove 5th line
i=1
while read line ; do
if ; then
...
i=$(($i+1))
done < "txt.txt"
how should this actually be done? is there a shorter faster way to do this? :wall:
Thanks,
Ted (2 Replies)
Hi
I have a file which has aroun 200 line and it is like this:
GROUP2-WDI">GROUP2-WDI
GROUP3-WDI">GROUP3-WDI
KL2P0508BC">KL2P0508BC
KL2P0508BIT">KL2P0508BIT
KL3P0506BC">KL3P0506BC
KL3P0506BUS">KL3P0506BUS
KLD1F0507DBT">KLD1F0507DBT
KLD1F0507DIT">KLD1F0507DIT
KLD1F0510DBT">KLD1F0510DBT... (3 Replies)
Hi everybody,
I have a perl script that I used to collect traceroute data from some site.
It create output on the text file. The problem is , some site usually timed out when it's being tracerouted. And it show * * * on the line.
Here is the example
hop list to www.example.com
192.168.3.1... (3 Replies)
Hello,
I have a line that needs to be removed using sed -i to perform the replace in place. The issue that I have is the files on each server may contain extra rows after the last logger definition. So I can't count accurately from the last row.
So from the example the line that contains... (8 Replies)
Hi All,
I am creating a text file using perl. The first record I am writing as "$line" and all the other as "\n$line". At the end the file is having N number of lines. I am using this file for MLOAD (Teradata), which is reading N+1 lines in the file and failing.I am not able to find new line... (2 Replies)
I have a text file with a line of text that contains numbers and text formatted into groups. I need to extract the number that can be either 1,2 or 3 digits long. Then write it to a variable, but i need to remove any leading spaces in the number first.
I can get the numbers out but how to remove... (12 Replies)
I have test.xml XML file like
<Report account="123456" start_time="2014-09-08T00:00:00+00:00" end_time="2014-09-10T23:59:59+00:00" user="Dollar Tree" limit="1000000" more_sessions="some text ">
<Session ......rest of xml...............
I need output like
<Report>
<Session ......rest of... (3 Replies)
Discussion started by: kumars1331@gmai
3 Replies
LEARN ABOUT SUSE
ipager
term::interact::pager(n) Terminal control term::interact::pager(n)
__________________________________________________________________________________________________________________________________________________NAME
term::interact::pager - Terminal widget, paging
SYNOPSIS
package require Tcl 8.4
package require term::interact::pager ?0.1?
term::interact::pager object text ?options...?
object interact
object done
object clear
object text text
object configure
object configure option
object configure option value...
object cget option
_________________________________________________________________DESCRIPTION
This package provides a class for the creation of a simple paging text display.
CLASS API
The package exports a single command, the class command, enabling the creation of pager instances. Its API is:
term::interact::pager object text ?options...?
This command creates a new pager object with the name object, initializes it, and returns the fully qualified name of the object
command as its result.
The argument is the text to show, possibly followed by configuration options and their values. The options are explained in the sec-
tion Configuration.
OBJECT API
The objects created by the class command provide the methods listed below:
object interact
Show the pager in the screen at the configured location and start interacting with it. This opens its own event loop for the pro-
cessing of incoming characters. The method returns when the interaction has completed. See section Interaction for a description of
the possible interaction.
object done
This method can be used by user supplied actions to terminate the interaction with the object.
object clear
This method can be used by user supplied actions to remove the pager from the terminal.
object text text
This method can be used to change the text shown by the pager. The pager will reset the dispay to show the first line of the text
at the top.
object configure
object configure option
object configure option value...
object cget option
Standard methods to retrieve and configure the options of the pager.
CONFIGURATION
A pager instance recognizes the following options:
-in chan
Specifies the channel to read character sequences from. Defaults to stdin.
-out chan
Specifies the channel to write the pager contents to. Defaults to stdout.
-column int
Specifies the column of the terminal where the left margin of the pager display should appear. Defaults to 0, i.e. the left-most
column.
-line int
Specifies the line of the terminal where the top margin of the pager display should appear. Defaults to 0, i.e. the top-most line.
-height int
Specifies the number of lines of text to show at most in the display. Defaults to 25.
-actions dict
Specifies a dictionary containing additional actions, using character sequences as keys. Note that these sequences cannot override
the hardwired sequences described in section Interaction.
INTERACTION
A pager object recognizes the control sequences listed below and acts as described. The user can supply more control sequences to act on
via the configuration, but is not able to overide these defaults.
Cursor Up
The text is scrolled down a single line, making one more line visible at the top. The pager will not react if the first line of the
text is already shown.
Cursor Down
The text is scrolled up a single line, making one more line visible at the bottom. The pager will not react if the last line of the
text is already shown.
Page Up
The text is scrolled down a page. The pager will not react if the first line of the text is already shown.
Page Down
The text is scrolled up a page. The pager will not react if the last line of the text is already shown.
Enter/Return
The interaction with the object is terminated.
BUGS, IDEAS, FEEDBACK
This document, and the package it describes, will undoubtedly contain bugs and other problems. Please report such in the category term of
the Tcllib SF Trackers [http://sourceforge.net/tracker/?group_id=12883]. Please also report any ideas for enhancements you may have for
either package and/or documentation.
KEYWORDS
control, pager, terminal, text display
COPYRIGHT
Copyright (c) 2006 Andreas Kupries <andreas_kupries@users.sourceforge.net>
term 0.1 term::interact::pager(n)