Sponsored Content
Top Forums Shell Programming and Scripting bash extract all occurences delimited from <name> and </name> tags from an xml file Post 302483572 by m.d.ludwig on Monday 27th of December 2010 05:28:27 PM
Old 12-27-2010
I am also a ksh guy ... since when it was first released (it's been a long strange trip...). But filtering text files, PERL just rocks. Put the two together, and we "try to take over the world!".

As a recommendation, O'Reilly's Mastering Regular Expressions is seriously meaty when it comes to regexes.
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

how to extract a tilde delimited file in unix

i have a file in unix in which datas are like this 07 01 abc data entry Z3 data entry ASSISTANT Z3 39 08 01 POD peadiatrist Z4 POD PeDIATRY Z4 67 01 operator specialist 00 operator UNSPECIFIED A0 00 ... (12 Replies)
Discussion started by: trichyselva
12 Replies

2. UNIX for Dummies Questions & Answers

How to count the occurences of a specific word in a file in bash shell

Hello, I want to count the occurences of a specific word in a .txt file in bash shell. Can somebody help me pleaze?? Thanks!!! (2 Replies)
Discussion started by: mskart
2 Replies

3. UNIX for Dummies Questions & Answers

Extract a specific number from an XML file based on the start and end tags

Hello People, I have the following contents in an XML file ........... ........... .......... ........... <Details = "Sample Details"> <Name>Bob</Name> <Age>34</Age> <Address>CA</Address> <ContactNumber>1234</ContactNumber> </Details> ........... ............. .............. (4 Replies)
Discussion started by: sushant172
4 Replies

4. UNIX for Dummies Questions & Answers

Extract records by column value - file non-delimited

the data in my file is has no delimiters. it looks like this: H52082320024740010PH333200612290000930 0.0020080131 D5208232002474000120070306200703060580T1502 TT 1.00 H52082320029180003PH333200702150001 30 100.0020080205 D5208232002918000120070726200707260580T1502 ... (3 Replies)
Discussion started by: jclanc8
3 Replies

5. Shell Programming and Scripting

Extract second column tab delimited file

I have a file which looks like this: 73450 articles and news developmental psychology 2006-03-30 16:22:40 1 http://www.usnews.com 73450 articles and news developmental psychology 2006-03-30 16:22:40 2 http://www.apa.org 73450 articles and news developmental psychology 2006-03-30... (1 Reply)
Discussion started by: shoaibjameel123
1 Replies

6. Shell Programming and Scripting

Extract a nth field from a comma delimited file

Hi, In my file (which is "," delimited and text qualifier is "), I have to extract a particualr field. file1: 1,"aa,b",4 expected is the 2nd field: aa,b I tried the basic cut -d "," -f 2 file 1, this gave me aa alone instead aa,b. A small hint ot help on this will be very... (5 Replies)
Discussion started by: machomaddy
5 Replies

7. Shell Programming and Scripting

Shell script to extract data in repeating tags from xml

Hi, I am new to shell scripting. I need to extract data between repeating tags from an xml file and store the data in an array to process it further. <ns1:root xmlns:ns1="http://example.com/config"> <ns1:interface>in1</ns1:interface> <ns1:operation attribute1="true" attribute2="abd"... (2 Replies)
Discussion started by: sailendra
2 Replies

8. UNIX for Dummies Questions & Answers

awk - Extract 4 lines in Column to Rows Tab Delimited between tags

I have tried the following to no avail. xargs -n8 < test.txt awk '{if(NR%6!=0){p=""}else{p="\n"};printf $0" "p}' Mod_Alm_log.txt > test.txt I have tried different variations of the above, the problem is mixes lines together. And it includes the tags "%a and %A" I need them to be all tab... (16 Replies)
Discussion started by: mytouchsr
16 Replies

9. Shell Programming and Scripting

Extract a particular xml only from an xml jar file

Hi..need help on how to extract a particular xml file only from an xml jar file... thanks! (2 Replies)
Discussion started by: qwerty000
2 Replies

10. Shell Programming and Scripting

Extract the specific tags in a XML file

Hello Shell Gurus, I have a requirement to get the specific tags from a XML file. Here is my code snippet <jdbc-system-resource> <name>SDPData Source</name> <target>AdminServer,osb_server1,soa_server1</target> ... (30 Replies)
Discussion started by: Siv51427882
30 Replies
rocks(6x)							XScreenSaver manual							 rocks(6x)

NAME
rocks - animation of flying through an asteroid field SYNOPSIS
rocks [-display host:display.screen] [-foreground color] [-background color] [-window] [-root] [-mono] [-ncolors n] [-install] [-visual visual] [-count integer] [-delay usecs] [-speed integer] [-norotate] [-nomove] [-3d] [-fps] DESCRIPTION
The rocks program draws an animation of an asteroid field moving past the observer (or vice versa). Sometimes the observer picks up spin on Z axis. OPTIONS
rocks accepts the following options: -window Draw on a newly-created window. This is the default. -root Draw on the root window. -mono Make all the rocks the same color. -ncolors colors How many different colors to use. Default 5. Colors are chosen randomly. -install Install a private colormap for the window. -visual visual Specify which visual to use. Legal values are the name of a visual class, or the id number (decimal or hex) of a specific visual. -count integer Maximum number of rocks to draw on the screen at once. Default 100. -speed integer A measure of the speed with which the observer and the rocks pass each other, from 1 to 100. Default 100, meaning ``very fast.'' If you're on a slow display connection (the animation looks jerky) then try making this number smaller, and/or decreasing the num- ber of rocks. -delay microseconds Number of microseconds to delay between each frame. Default 50000, meaning about 1/20th second. Compare and contrast with -speed, above. -norotate Don't rotate the observer; just fly through the field on the level. -nomove Don't turn the observer; just fly straight ahead through the field. -3d Do red/blue 3d separations: if you look at the screen with 3d glasses, the rocks will be jumping right out at you. Oooooh, scaaary! -fps Display the current frame rate and CPU load. ENVIRONMENT
DISPLAY to get the default host and display number. XENVIRONMENT to get the name of a resource file that overrides the global resources stored in the RESOURCE_MANAGER property. SEE ALSO
X(1), xscreensaver(1) BUGS
There should be an option to display doppler shift (a gravity rainbow.) Speed of rotation should be settable. Default speed of rotation should be relative to forward velocity. COPYRIGHT
Copyright (C) 1992 by Jamie Zawinski. Permission to use, copy, modify, distribute, and sell this software and its documentation for any purpose is hereby granted without fee, provided that the above copyright notice appear in all copies and that both that copyright notice and this permission notice appear in supporting documentation. No representations are made about the suitability of this software for any purpose. It is provided "as is" without express or implied warranty. AUTHOR
Based on Lisp Machine code copyright 1988 John Nguyen <johnn@hx.lcs.mit.edu>. Ported to C and X by Jamie Zawinski <jwz@jwz.org>, 13-aug-92. Steering code by Jeremie Petit; 3D code by theiling@coli.uni-sb.de. X Version 11 5.15 (28-Sep-2011) rocks(6x)
All times are GMT -4. The time now is 05:05 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy