Sponsored Content
Full Discussion: Extracting and printing data
Top Forums Shell Programming and Scripting Extracting and printing data Post 302487912 by Prega on Friday 14th of January 2011 05:01:32 AM
Old 01-14-2011
Extracting and printing data

Hi

I have the following data :
Code:
           <Cell id="34A" ref="ds:/BTS:34/Cells/Cell:34A"/>
          <Cell id="34B" ref="ds:/BTS:34/Cells/Cell:34B"/>
          <Cell id="34C" ref="ds:/BTS:34/Cells/Cell:34C"/>

I would like to print this data in the following format :
Code:
BTS:34 Cell:34A.

I'm still very new and trying to learn how extract specfic data and print .
Please assist.

Last edited by Scott; 01-14-2011 at 06:06 AM.. Reason: Please use code tags
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Extracting certain data from a sentence

How do I delete text in each line from the first character up to a certain pattern, ie. 'qmuser.' and then delete from the next occurence of a dot to the end of the sentence For example: - LTSB Renewal Notice Travel Pack --- d \qmaster\spool1\qmuser.8664_LM245_20031216094308.ps.0 From this... (7 Replies)
Discussion started by: dbrundrett
7 Replies

2. Shell Programming and Scripting

Extracting Data From Sendmail

Hello, Like many Unix shops, Our systems send Email alerts whenever things break. I have been tasked with writing a shell script to get the email alerts from Sendmail, extract the Date / Time, From, Subject, and message text from the emails and punch them into a MySQL DB. This will then be... (3 Replies)
Discussion started by: calex
3 Replies

3. UNIX for Dummies Questions & Answers

Help with extracting data and plotting

I have attached a txt file, what I would like to be able to do is: 1. Extract Data from Columns labeled E/N and Ko into a new file 2. Then in the new file I would like to be able to plot E/N on the X axis and Ko on the y axis. 3. Lastly I would like to be able to extract multiple data sets and... (6 Replies)
Discussion started by: gingburg
6 Replies

4. Shell Programming and Scripting

Extracting data from tables......

HOw to extracts data from tables in database. Merges them into one output file. This output file is loaded into another tables in database. (1 Reply)
Discussion started by: nari.bommi
1 Replies

5. Shell Programming and Scripting

extracting data from a string

Hi there, I have a bunch of vlan tagged network interfaces that are named as follows e1000g111000 e1000g99001 e1000g3456000 nge2002 where the 'e1000g' and 'nge' parts of the name are the driver, the red and blue bits above define the VLAN and the last digit on the end defines the... (3 Replies)
Discussion started by: rethink
3 Replies

6. Shell Programming and Scripting

Extracting specific lines of data from a file and related lines of data based on a grep value range?

Hi, I have one file, say file 1, that has data like below where 19900107 is the date, 19900107 12 144 129 0.7380047 19900108 12 168 129 0.3149017 19900109 12 192 129 3.2766666E-02 ... (3 Replies)
Discussion started by: Wynner
3 Replies

7. Shell Programming and Scripting

extracting data

I have a txt file of the following format >ab_ qwerty >rt_ hfjkil >Ty2 hglashglkasghkf; >P2 aklhfklflkkgfgkfl >ui_ vnllkdskkkffkfkkf >we32 vksksjksj;lslsf'sk's's .... ..... I want to split this big file based on the header (>) (5 Replies)
Discussion started by: Lucky Ali
5 Replies

8. UNIX for Dummies Questions & Answers

Extracting data from file

I am trying to compare the data in lines 3 & 5 to see if they match up to the '-S570' (see first code set, all proprietary information has been removed from code set) spawn telnet Trying ... Connected to CA-LOS1234-ASE-S570.cl . Escape character is '^]'. CA-LOS1234-ASE-S570 Username: ... (1 Reply)
Discussion started by: slipshft
1 Replies

9. Shell Programming and Scripting

Q:Perl Extracting & Printing Security Token

I have a script which is supposed to log in to my vB account and print my security token, however doesn't seem to work globally. The logging in works perfectly just will not retrieve and print the security token for every forum I log in to. Code Below: #!/usr/bin/perl use LWP::UserAgent; ... (8 Replies)
Discussion started by: AndrewTwain
8 Replies

10. Shell Programming and Scripting

Help with extracting data within parentheses

This is my input file: a|b|c(ef)|g|h(km)|p My output file should look like: a|b|ef|g|km|p That is, pipe is the delimiter. The data within pipe must be displayed as it is but if it encounters any data within parentheses, then only the data within parentheses has to be displayed ( the data... (2 Replies)
Discussion started by: ksatish89
2 Replies
XmScrollBarSetValues(3X)												  XmScrollBarSetValues(3X)

NAME
XmScrollBarSetValues - A ScrollBar function that changes ScrollBar's increment values and the slider's size and position SYNOPSIS
#include <Xm/ScrollBar.h> void XmScrollBarSetValues (widget, value, slider_size, increment, page_increment, notify) Widget widget; int value; int slider_size; int increment; int page_increment; Boolean notify; DESCRIPTION
XmSetScrollBarValues changes the ScrollBar's increment values and the slider's size and position. The scroll region is overlaid with a slider bar that is adjusted in size and position using the main ScrollBar or set slider function attributes. Specifies the ScrollBar wid- get ID. Specifies the ScrollBar's slider position between XmNminimum and XmNmaximum. The resource name associated with this argument is XmNvalue. Specifies the size of the slider as a value between zero and the absolute value of XmNmaximum minus XmNminimum. The size of the slider varies, depending on how much of the slider scroll area it represents. This sets the XmNsliderSize resource associated with Scroll- Bar. Specifies the amount of button increment and decrement. If this argument is not zero, the ScrollBar widget automatically adjusts the slider when an increment or decrement action occurs. This sets the XmNincrement resource associated with ScrollBar. Specifies the amount of page increment and decrement. If this argument is not zero, the ScrollBar widget automatically adjusts the slider when an increment or decrement action occurs. This sets the XmNpageIncrement resource associated with ScrollBar. Specifies a Boolean value that when True, indicates a change in the ScrollBar value and also specifies that the ScrollBar widget automatically activates the XmNvalueChangedCallback with the recent change. If False, specifies any change that has occurred in the ScrollBar's value, but XmNvalueChangedCallback is not activated. For a complete definition of ScrollBar and its associated resources, see XmScrollBar(3X). SEE ALSO
XmScrollBar(3X) XmScrollBarSetValues(3X)
All times are GMT -4. The time now is 11:45 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy