I'm having a bit of trouble getting this to work using either sed or grep. It's possible awk might be the ticket I need as well, but my regulat expression skills aren't quite up to the task for doing this.
I'm looking to grep for the string ERROR from the following log up until any instance of a space.
Here's an example of the log.
If the grep was successful, my output would basically look like this:
I have this file (below) and need to get out specific data that appears after OSE1_1.FIX, but before OSE1_2.FIX.
Specifically I need to get all of the data after "ROW80_20:", "ROW80_21:", "ROW80_22:" & "ROW80_23:" then I need to do the same for data the appears after OSE1_2.FIX, but before... (2 Replies)
Hi,
I am trying to grep a string which has two words separated by space.
I used a script to grep the string by reading the string in to a variable
command i used in the script is
echo "enter your string"
read str
grep $str <file>
it is working fine when the entered string is a single... (3 Replies)
hi!
i'm trying to get grep to do an exact match for the following pattern but..it's not quite working. I'm not too sure where did I get it wrong. any input is appreciated.
echo "$VAR" | grep -q '^test:]name'
if ; then
printf "test name is not found \n"
fi
on... (4 Replies)
I need to be able to search for a beginning line header, then use grep or something else to get the very next instance of a particular string, which will ALWAYS be in "Line5". What I have is some data that appears like this:
Line1
Line2
Line3
Line4
Line5
Line6
Line7
Line1
Line2
...... (4 Replies)
Hi all, i am new to unix scripting in ksh or any shell for that matter. I have downloaded a xml file from a website and saved on my local harddrive. inside the xml, the same tag is listed multiple times.
<title>Tonight</title>
<title>Thursday</title>
<title>Friday</title>... (6 Replies)
I want to grep some information out of the dmidecode but when I type
dmidecode | grep Memory
I get several instances of the word. Is there a way I can just choose which instance I want to display? (8 Replies)
I want to write the syntax so does not count line with no space.
So currerntly it is showing lines as 5, but i want to show 4.
# cat /tmp/mediacheck | sort -u | grep -vi " " | awk '{print $1}' | wc -l
BA7552
BAA002
BAA003
BAA004 (6 Replies)
Hi,
I want to get the only application name from the server.
Ex:
if i give $ ps -ef | grep bw.
It will show all BW process with entire path. It will little confuse to list out the process. Can anyone have syntax to get only the instance name. I need this for be, hawk,ems also.
Please... (2 Replies)
Hi.
In thread https://www.unix.com/shell-programming-and-scripting/267833-grouping-counting.html rovf and I had a mini-discussion on grep and awk.
Here is a demo script that compares the awk and grep approaches for this single problem:
#!/usr/bin/env bash
# @(#) s2 Demonstrate group... (1 Reply)
I have a file xyz with the following content
PPPL 0123
PPPL 0006
POFT 0923
POFT 1111
WENT 2323
SEND 2345
I also have another file named MasterFile where it contains the above mentioned data million times with different digits at the end for example some times it contains SEND 9999 or WENT... (4 Replies)
Discussion started by: knijjar
4 Replies
LEARN ABOUT DEBIAN
dumpasn1
dumpasn1(1) General Commands Manual dumpasn1(1)NAME
dumpasn1 - ASN.1 object dump/syntax check program
SYNOPSIS
dumpasn1 [options] file
DESCRIPTION
An ASN.1 object dump program which will dump data encoded using any of the ASN.1 encoding rules in a variety of user-specified formats.
OPTIONS
- Take input from stdin (some options may not work properly).
-number
Start number bytes into the file.
-- End of arg list.
-a Print all data in long data blocks, not just the first 128 bytes.
-c file
Read Object Identifier info from alternate config file (values will override equivalents in global config file)
-d Print dots to show column alignment.
-e Don't print encapsulated data inside OCTET/BIT STRINGs.
-f file
Dump object at offset -number to file (allows data to be extracted from encapsulating objects)
-h Hex dump object header (tag+length) before the decoded output
-hh Same as -h but display more of the object as hex data.
-l Long format, display extra info about Object Identifiers.
-o Don't check validity of character strings hidden in octet strings.
-p Pure ASN.1 output without encoding information.
-r Print bits in BIT STRING as encoded in reverse order
-s Syntax check only, don't dump ASN.1 structures.
-t Display text values next to hex dump of data.
-u Don't format UTCTime/GeneralizedTime string data.
-w Set output width (default 80).
-x Display size and offset in hex not decimal.
FILES
./dumpasn1.cfg, $HOME/.dumpasn1.cfg, /etc/dumpasn1/dumpasn1.cfg: This is the configuration file, it will be searched in this order. It con-
tains OIDs commonly used.
AUTHORS
quote from Peter Gutmann:
ASN.1 object dumping code, copyright Peter Gutmann <pgut001@cs.auckland.ac.nz>, based on ASN.1 dump program by David Kemp
<dpkemp@missi.ncsc.mil>, with contributions from various people including Matthew Hamrick <hamrick@rsa.com>, Bruno Couillard <bcouil-
lard@chrysalis-its.com>, Hallvard Furuseth <h.b.furuseth@usit.uio.no>, Geoff Thorpe <geoff@raas.co.nz>, David Boyce <d.boyce@isode.com>,
John Hughes <john.hughes@entegrity.com>, Life is hard, and then you die <ronald@trustpoint.com>, Hans-Olof Hermansson <hans-olof.hermans-
son@postnet.se>, Tor Rustad <Tor.Rustad@bbs.no>, Kjetil Barvik <kjetil.barvik@bbs.no>, James Sweeny <jsweeny@us.ibm.com>, and several other
people whose names I've misplaced.
dumpasn1 is available at http://www.cs.auckland.ac.nz/~pgut001/
COMMENTS
This man page was written using xmltoman(1) by Oliver Kurth for Debian.
Manuals User dumpasn1(1)