Since the output appears to have a strict format you could also try:
But that would probably be more sensitive in case of possible future changes in the output of the command..
Last edited by Scrutinizer; 01-04-2013 at 03:49 AM..
This User Gave Thanks to Scrutinizer For This Post:
I am trying to use a line of output in an XML file as input in another new XML file for processing purposes via a shell script. Since I am a newbie though, I'm not sure how to do this since the data is different everytime. I am using this technique with static data right now:
echo -n "Running... (5 Replies)
Hi Can any one help me remove the unwanted data? I would want to remove the complete event id 4910 ( the type there is INFO), that means, I have to remove starting from 7th - 19th lines. can any one of you please help?
Thanks, (24 Replies)
Hi,
I am stuck on writing a script that reads a file, retains wanted data but discards unwanted data from a CSV file.
This is a sample of my table {not the actual data)
ID Color tel_num Name color2 color3
abcdef green 5551212 jj88 red blue
acbdfe yellow... (5 Replies)
Hi,
I am doing some data parsing for some economics research. I was recently exposed to shell script and am brand new to awk. I have a large csv file (like 10G) and I would like to make it a lot smaller with awk, but it is a bit tricky for me and I haven't been able to get it yet. I would... (5 Replies)
hi
i have my input data like this
aaa bbb ccc
asa dff nmj
mnj saa dff
oik
aax cdx saa
oik
asq sdf dssi want my output file to be like this
mnj saa dff oik
aax cdx saa oiki want to retain only those lines which will have oik just below them and i want oik to be as next column to those... (1 Reply)
Heya,
I'm currently working on a script so I can see which cron jobs, if any, on a system are executing less frequently than 15 minutes (1 - 14 minutes). This is the only data I'm interested in. So far I have the following:
#!/bin/bash
IFS=$'\n';for line in `ls -f /var/spool/cron/*`;
do... (5 Replies)
Hi folks
I have a script I wrote that basically parses a bunch of config and xml files works out were to add in the new content then spits out the data into a new file.
It all works - apart from the xml and config file format in the new file
with XML files the original XML (that ends up in... (2 Replies)
Hi!
I have a pretty complex job - at least for me!
i have two csv-files with meassurement-data:
fileA
...... (2 Replies)
Discussion started by: IMPe
2 Replies
LEARN ABOUT DEBIAN
gst-convert
GST-CONVERT(1) User Commands GST-CONVERT(1)NAME
gst-convert - Smalltalk syntax converter and beautifier
DESCRIPTION
Usage:
gst-convert [OPTION]... [INFILE [OUTFILE]] gst-convert [OPTION]... -o|--output OUTFILE INFILES
OPTIONS -q, --quiet
don't show any message
-v, --verbose
print extra information while processing
-f, --format=FORMAT
convert from given input format (supported formats are gst, gst2, sif, squeak)
-F, --output-format=FORMAT convert to given output format (supported
formats are gst, gst2, squeak)
-C, --class=REGEX
convert only classes matching REGEX
-C, --class=+REGEX
in addition, convert classes matching REGEX
-C, --class=-REGEX
do not convert classes matching REGEX
-c, --category=REGEX
convert only classes whose category matches REGEX
-c, --category=+REGEX
in addition, convert those whose category matches REGEX
-c, --category=-REGEX
do not convert classes whose category matches REGEX
-r, --rule='CODE->REPL'
look for CODE and replace it with REPL
-o, --output OUTFILE
concatenate multiple input files into a single converted output file
--help display this message and exit
--version
print version information and exit
SEE ALSO
The full documentation for gst-convert is maintained as a Texinfo manual. If the info and gst-convert programs are properly installed at
your site, the command
info gst
should give you access to the complete manual.
gst-convert version 3.2.4 December 2011 GST-CONVERT(1)