Greetings All!!
I have a very peculiar problem where I have to parse a big text file and extract useful data out of it with starting and ending block pattern matching.
e.g. I have a input file like this:
sample data
block1
sample data
start
useful data
end
sample data
block2
sample... (5 Replies)
If a zip file contains several zip files, but if the file names of the files needed are known, is there a variation of the unzip command that will allow those few (individual) files to be extracted?
---
Example:
Zip file name: zip.zip
unzip -l zip.zip will display file01, file02, file03, etc.... (1 Reply)
Hi all,
I am stuck with a ruby script that extracts detials from yaml file and processes accordingly.
the yaml file
confivnic:
device:
vnic1:
policy:
- L2
mode: active
vnic2:
policy:
- L3
- L4
mode: active
type: aggr
... (1 Reply)
Dear All,
I have to extract a a few lines from a log file and I know the starting String and end string(WHich is same ). Is there any simplere way using sed - awk.
e.g. from the following file
--------------------------------------
Some text
Date: 21 Oct 2008
Text to be extracted... (8 Replies)
GNU sed version 4.1.4 on Windows XP SP3 from GnuWin32
I think that I've come across a seemingly simple text file change problem on a INI formatted file that I can't do with SED without side effects edge cases biting me. I've tried to think of various ways of doing this elegantly and quickly... (5 Replies)
hi all,
i searched in unix.com and accquired the following commands for extracting specific lines from a file ..
sed -n '16482,16482p' in.sql > out.sql
awk 'NR>=10&&NR<=20' in.sql > out.sql....
these commands are working fine if i give the line numbers as such .. but if i pass a... (2 Replies)
Hi All,
I have the file in this format
**** Results Data ****
Time or Step
1
2
20
0.000000000e+00 0s 0s 0s
1.024000000e+00 Us 0s 0s
1.100000000e+00 1s 0s 0s
1.100000001e+00 1s 0s 1s
2.024000000e+00 Us Us 1s
2.024000001e+00 ... (7 Replies)
Hi,
I need some advise on how to print 'sections' of the attached file. I am searching for some that says Marked Corrupt and print some lines after it.
At the moment I am running the command below:
sed -n -e '/Marked Corrupt/{N;N;p;}' rman_list_validate.txtThis gives me the following... (1 Reply)
Discussion started by: newbie_01
1 Replies
LEARN ABOUT DEBIAN
kwalify
KWALIFY(1) User Commands KWALIFY(1)NAME
kwalify - Tiny schema validator for YAML and JSON
SYNOPSIS
kwalify [-h | --help | -v]
kwalify [-s] [-t] [-l] [-E] -f schema.yaml doc.yaml [doc2.yaml ...]
kwalify [-s] [-t] [-l] [-E] -m schema.yaml [schema2.yaml ...]
kwalify [-s] [-t] [-l] [-E] {-a action | -ha action} -f schema.yaml [schema2.yaml ...]
DESCRIPTION
kwalify validates schema file, or YAML / JSON file against a schema.
OPTIONS -h --help
Show summary of options.
-v
Display version information.
-s
Be silent.
-t
Expand tab characters.
-l
Show linenumber when errored (experimental).
-E
Show errors in emacs-style (implies '-l').
-m schema.yaml
Meta-validation mode: validate schema.yaml.
-f schema.yaml
Schema definition file: validate file against schema.yaml.
-a action
Generate code (depending on action: 'genclass-ruby' or 'genclass-java').
-ha action
Generate code (depending on action: 'genclass-ruby' or 'genclass-java') with properties.
doc.yaml
File to validate.
AUTHOR
Marc `Duck` Dequenes <Duck@DuckCorp.org>
Original author.
COPYRIGHT
Copyright (C) 2007-2011 Marc Dequenes (Duck)
This manual page was written for the Debian system (but may be used by others). Permission is granted to copy, distribute and/or modify
this document under the terms of the GNU General Public License, Version 3 or any later version published by the Free Software Foundation.
On Debian systems, the complete text of the GNU General Public License version 3 can be found in /usr/share/common-licenses/GPL-3.
Kwalify 2011-09-16 KWALIFY(1)