Hi all,
I have the following data in a file x.csv:
> ,this is some text here
> ,,,,,,,,,,,,,,,,2006/11/16,0.23
> ,,,,,,,,,,,,,,,,2006/12/16,0.88
< ,,,,,,,,,,,,,,,,this shouldnt be deleted
I need to use SED to match anything with a > in the line and delete that line, can someone help... (7 Replies)
I have files of more than 10K lines that I need to delete lines that contain a pattern, but I want to keep the first few lines intact. Can this be done with sed? (7 Replies)
I need to copy lines to a new file from files with sed using a pattern in char postions 1-3.
Then after the copy, I need to delete those same lines from the input files.
For example, string "ABC" in pos 1-3 (6 Replies)
Hello All,
I am here again scratching my head on pattern selection with special characters.
I have a large file having around 200 entries and i have to select a single line based on a pattern.
I am able to do that:
Code:
cat mytest.txt | awk -F: '/myregex/ { print $2}'
... (6 Replies)
Hello sed gurus. I am using ksh on Sun and have a file created by concatenating several other files. All files contain header rows. I just need to keep the first occurrence and remove all other header rows.
header for file
1111
2222
3333
header for file
1111
2222
3333
header for file... (8 Replies)
HI,
My input file contains below data:
DFHDR
12345110
1,200
2,-100
1,100
2,123
12345110
1,300
2,200
DFTLR
In the above data, the first line and last lines should be remove as well as the lines in which contains 110 as position(6,7,8 position) should also be removed,
How we... (0 Replies)
Hello,
I'm trying to figure out how to use sed or awk to delete single lines in a file. By single, I mean lines that are not touching any other lines (just one line with white space above and below).
Example:
one
two
three
four
five
six
seven
eight
I want it to look like: (6 Replies)
Hi
Im trying to do the following in sed. I want to delete any blank line at the start of a file until it matches a pattern and then stops. for example:
Input
output:
I have got it to work within a range of two patterns with the following:
sed '/1/,/pattern/{/^]*$/d}'
The... (2 Replies)
Hello,
i have a question.
My problem is that i have a file like:
TEST
JOHN
ADAM
MICHAEL
SEBASTIAN
ANDY
i want find for MICHAEL and want delete lines like this:
TEST (4 Replies)
BASH in Solaris 10
I have a log file like below. Whenever the pattern ORA-39083 is encountered, I want to delete the line which has this pattern and 3 lines below it.
$ cat someLogfile.txt
ORA-39083: Object type OBJECT_GRANT failed to create with error:
ORA-01917: user or role 'CMPA' does... (4 Replies)
Discussion started by: kraljic
4 Replies
LEARN ABOUT REDHAT
whois
jwhois(1) General Commands Manual jwhois(1)NAME
jwhois - client for the whois service
SYNOPSIS
jwhois [ OPTIONS ]... [ QUERY ]
DESCRIPTION
jwhois searches Whois servers for the object on the command line.
The host to query is taken from a global configuration file, a configuration file specified on the command line, or selected directly on
the command line.
OPTIONS --version
display version, authors and licensing information.
--help display a short help text.
-c FILE --config=FILE
uses FILE as a configuration file instead of the default.
-h HOST --host=HOST
overrides any hosts in the configuration file and queries HOST directly.
-p PORT --port=PORT
specifies a port number to use when querying a HOST.
-f --force-lookup
forces a query to be made to a host even if a current object is available from the cache.
-v --verbose
outputs verbose debugging information while running (use this before sending a bugreport to ensure that it's indeed a bug and not a
misconfiguration). You can increase the verbosity by giving several verbose commands to jwhois, such as -vv.
-n --no-redirect
disable features that redirect queries from one server to another.
-s --no-whoisservers
disable the built-in support for whois-servers.net.
-a --raw
send query verbatim to receiving hosts instead of rewriting them according to the configuration.
-i --display-redirections
display every step in a redirection (default is to display only the last answer).
-d --disable-cache
completely disable both reading and writing to cache.
-r --rwhois
force the query to use the rwhois protocoll instead of HTTP or whois.
--rwhois-display=DISPLAY
asks receiving rwhois servers to display the results in the DISPLAY display instead of the default dump display.
--rwhois-limit=LIMIT
asks receiving rwhois servers to limit their responses to LIMIT matches.
RIPE EXTENSIONS
To use the options specified in RIPE Document 157, you need to change the format of the query slightly. If you were to search for all
entries in the RIPE database which lists the admin-c, tech-c or zone-c as CO19-RIPE, you could use the following command syntax:
jwhois -h whois.ripe.net -- -i admin-c,tech-c,zone-c CO19-RIPE
-- is used to separate the RIPE options from the jwhois options.
SEE ALSO whois(1)GNU November 2001 jwhois(1)