11-15-2013
Thank you guys!
I've only implemented Scrutinizers suggestion, and it works well for me.
For CarloM: (I'm not an awk expert, but ...) can you please tell me where should I state in your second code what file should be processed? Thank you!
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I'm hoping someone can help me on this. I have a data file that greatly simplified might look like this:
sec;src;dst;proto
421;10.10.10.1;10.10.10.2;tcp
426;10.10.10.3;10.10.10.4;udp
442;10.10.10.5;10.10.10.6;tcp
sec;src;fac;dst;proto
521;10.10.10.1;ab;10.10.10.2;tcp... (3 Replies)
Discussion started by: eric4
3 Replies
2. Shell Programming and Scripting
I have a situation where I am reading a text file line-by-line. Those lines of data contain comma separated fields of data. However, each line can vary in the number of fields it can contain. What I need to do is parse apart each line and write each field of data found (left to right) into a file.... (7 Replies)
Discussion started by: 2reperry
7 Replies
3. Shell Programming and Scripting
I'm working on formatting some attendance data to meet a vendors requirements to upload to their system. With some help on the forums here, I have the data close. But they've since changed what they want.
The vendor wants me to submit three fields to them. Field 1 is the studentid field,... (4 Replies)
Discussion started by: axo959
4 Replies
4. Shell Programming and Scripting
I have a file, first 5 columns are very normal, like "1107",106027,71400,"Y","BIOLOGY",,
however, the 6th columns, the user can put comments, anything, just any characters, like new line, double quote, single quote, whatever from the keyboard, like"Please load my previous SOM597G course content in... (3 Replies)
Discussion started by: freelong
3 Replies
5. Shell Programming and Scripting
I am looking for perl code to get following o/p. If a line has more than 7 fields then value in field 7 onwards is BHA_GRP1, BHA_GRP2, BHA_GRP3, BHA_GRP4 etc.
Here is example of what I am trying to achieve.
INPUT File:
VAH NIC_TYPE CONFIG SIZE_GB PILO KOM BHA_GRP1 BHA_GRP2 BHA_GRP3......
2... (1 Reply)
Discussion started by: dynamax
1 Replies
6. Shell Programming and Scripting
I need to take 2 input files and create 1 output based on matches from each file. I am looking to match field #1 in both files (Userid) and create an output file that will be a combination of fields from
both file1 and file2 if there are any differences in the fields 2,3,4,5,or 6.
Below is an... (5 Replies)
Discussion started by: ambroze
5 Replies
7. Shell Programming and Scripting
Hello,
I have some bitrate data in a csv which is in an odd format and is difficult to process in Excel when I have thousands of rows. Therefore, I was thinking of doing this in bash and using awk as the primary application except that due to its complication, I'm a little stuck.
... (24 Replies)
Discussion started by: shadyuk
24 Replies
8. Shell Programming and Scripting
Hi,
With:
# VALUES="one~two~~~"
# echo $VALUES | awk 'BEGIN {FS="~"} {print NF}'
5
I can determine the number of fields.
How to determine the number of fields with a value ?
In this case 2.
Thanks in advance,
ejdv (6 Replies)
Discussion started by: ejdv
6 Replies
9. Programming
Hello,
I extracted a list of files in a directory with the command ls . However this is not my computer, so the ls functionality has been revamped so that it gives the filesizes in front like this :
This is the output of ls command : I stored the output in a file filelist
1.1M... (5 Replies)
Discussion started by: ajayram
5 Replies
10. Shell Programming and Scripting
Hi Guys,
I've obviously had a senior moment here, what I'm trying to do is set the number of fields to 35 in a csv these should be appended to the end of the line. But what I'm getting is:-
Source Data
$ head out_file_01.txt
N1000,024,2809003,,,3,DYNAMIC AVLEASE INC,PO BOX... (10 Replies)
Discussion started by: gull04
10 Replies
LEARN ABOUT CENTOS
report-gtk
REPORT-GTK(1) LIBREPORT MANUAL REPORT-GTK(1)
NAME
report-gtk - GUI tool to analyze and report ABRT problems
SYNOPSIS
report-gtk [-vpdx] [-e EVENT] [-g GUI_FILE] PROBLEM_DIR
DESCRIPTION
report-gtk is a graphical tool that reports application crashes and other problems caught by abrtd daemon, or created by other programs
using libreport. report-gtk works with a single problem saved in specified PROBLEM_DIR. In the expert mode it enables access to and
manipulation of problem data.
OPTIONS
-d, --delete
Remove PROBLEM_DIR after reporting
-e EVENT
Run only theset EVENTs on PROBLEM_DIR
-g FILE
Alternate GUI file
-p
Add program names to log
-v, --verbose
Be verbose
-V, --version
Display version and exit
-x, --expert
Enabled advanced features
CONFIGURATION
Reporting work flow configuration
These configuration files are placed in /usr/share/libreport/workflows.
Each file has XML formatting with the following DTD:
<!ELEMENT workflow (name+,description+,events*)>
<!ELEMENT name (#PCDATA)>
<!ATTLIST name xml:lang CDATA #IMPLIED>
<!ELEMENT description (#PCDATA)>
<!ATTLIST description xml:lang CDATA #IMPLIED>
<!ELEMENT events = (event)+>
<!ELEMENT event = (#PCDATA)>
name
User visible name
description
User visible description
events
List of executed events
event
Name of event. If event is not applicable on the problem data or if it is not defined then process continues with next event sibling.
EXAMPLES
Simple reporting work flow
<workflow>
<name xml:lang="en">Example</name>
<name xml:lang="cs">Piklad</name>
<description xml:lang="en">Example description</description>
<description xml:lang="cs">Piklad popisu</description>
<evetns>
<event>analyze_example</event>
<event>collect_example</event>
<event>report_example</event>
</events>
</workflow>
AUTHORS
o ABRT team
LIBREPORT 2.1.11 06/18/2014 REPORT-GTK(1)