Not to good with data extraction . I have some output that looks like this
I would need to extract the highlighted data out and put it like this
Thanks
Moderator's Comments:
edit by bakunin: P-L-E-A-S-E have mercy! i actually deleted ~3/4 of your posts text just by removing to (absolutely unnecessary) formatting and replaced that by simple "CODE"-tags. Please use these instead of whatever you did to format your post - it is easier to do, better to read and it is a lot simpler than a dozen of FONT- and SIZE-tags in every line.
Look at it this way: the less time i spend to edit your posts the more time i have to actually answer them.
Hello All,
I am starting with UNIX. Any help is highly appreciated.
How to extract data using UNIX shell script? And how do you export data using UNIX shell scripts into Microsoft Excel format?
Thank you. (3 Replies)
Hi,
This is the xml file that i have.
- <front-servlet platform="WAS4.0" request-retriever="SiteMinder-aware" configuration-rescan-interval="60000">
<concurrency-throttle maximum-concurrency="50" redirect-page="/jsp/defaulterror.jsp" />
- <loggers>
<instrumentation... (5 Replies)
Hi All, Prepare a perl script for extracting data from xml file. The xml data look like as
AC StartTime="1227858839" ID="88" ETime="1227858837" DSTFlag="false" Type="2" Duration="303" />
<AS StartTime="1227858849" SigPairs="119 40 98 15 100 32 128 18 131 23 70 39 123 20 120 27 100 17 136 12... (3 Replies)
If I have a log like :
Mon Jul 19 05:07:34 2010; TCP; eth3; 52 bytes; from abc to def
Mon Jul 19 05:07:35 2010; UDP; eth3; 46 bytes; from aaa to bbb
Mon Jul 19 05:07:35 2010; TCP; eth3; 52 bytes; from def to ghi
I will need an output like this :
Time abc to def... (1 Reply)
Hi,
Pleae find the attached files. I want to extract all the table names that has got * mark within its last column data. The doc file will give you a clear picture of what I am trying to do. Tables names in oval should be extracted in other file because it has got * mark in its last column data (5 Replies)
hi,
i'am trying to write a script which takes a data element from one file and searches in a certain file path and after it finds it it redirects the file names to a new file...Now i have to pick the up the last modified file's Timestamp(MMDDYY) from the files collected for each data element.
... (2 Replies)
hi,
i'am trying to write a shell program which takes a data element
from one file(var/tmp/usr1/pools)and search that data element
in a zipped file in archive location/usr01/archive/PSta*.Z).
cat var/tmp/usr1/pools
FC5173
FI5178
BE5221
FE5229
ST1604
ls /usr01/archive/PSta*.Z... (14 Replies)
Hi everyone,
I have a csv file which has data with different heading and column names as below.
Static Data Ingested
,,,,,,,,,,,,Known Explained Rejections
Column_1,column_2,Column_3,Column_4,,Column_6,Column_7,,% Column_8,,Column_9 ,Column_10 ,... (14 Replies)
I have this 5GB file, and i want to extract from the file particulars pattern.
this is my script:
//
count=`grep -wc "MSISDN" file_name`
k=1
>OUTPUT
>OUTPUT_Final
while
do
cat file_name | awk -F":" -v var="$k" '$1=="MSISDN" {m++}m==var{print; exit}' >> OUTPUT
cat file_name |awk -F":"... (33 Replies)
Discussion started by: gillesi
33 Replies
LEARN ABOUT DEBIAN
gd_alter_protection
gd_alter_protection(3) GETDATA gd_alter_protection(3)NAME
gd_alter_protection -- modify the protection level of a dirfile fragment
SYNOPSIS
#include <getdata.h>
int gd_alter_protection(DIRFILE *dirfile, int protection_level, int fragment_index);
DESCRIPTION
The gd_alter_protection() function sets the advisory protection level of the format specification fragment given by fragment_index to pro-
tection_level in the dirfile(5) database specified by dirfile.
The protection_level argument should be one of the following:
GD_PROTECT_NONE
Indicating that the fragment should not be protected at all.
GD_PROTECT_FORMAT
Indicating that the fragment's metadata should be protected.
GD_PROTECT_DATA
Indicating that the fragment's binary data should be protected.
GD_PROTECT_ALL
Indicating that both the fragment's metadata and its binary data should be protected. This symbol is equivalent to the bitwise or
of GD_PROTECT_FORMAT and GD_PROTECT_DATA.
In addition to being simply a valid fragment index, fragment_index may also be the special value GD_ALL_FRAGMENTS, which indicates that the
protection level of all fragments in the database should be changed.
RETURN VALUE
Upon successful completion, gd_alter_protection() returns zero. On error, it returns -1 and sets the dirfile error to a non-zero error
value. Possible error values are:
GD_E_ACCMODE
The specified dirfile was opened read-only.
GD_E_BAD_DIRFILE
The supplied dirfile was invalid.
GD_E_BAD_INDEX
The supplied index was out of range.
GD_E_BAD_PROTECTION
The supplied protection level was invalid.
The dirfile error may be retrieved by calling gd_error(3). A descriptive error string for the last error encountered can be obtained from
a call to gd_error_string(3).
NOTES
This is the only GetData function which ignores the (existing) protection level of a format specification fragment.
SEE ALSO gd_open(3), gd_error(3), gd_error_string(3), gd_protection(3), dirfile(5), dirfile-format(5)Version 0.7.0 21 July 2010 gd_alter_protection(3)