grep help on xml
location: ubuntuforums.com - date: October 21, 2013
<component type="label" id="label1" displayname="Label">
<attributes datatype="boolean" value="true" name="isVisible" platform ="general" buckettype="basic"/>
<attributes datatype="ref" value="kony.i18n.getLocalizedString("a"" name="text" platform ="general" buckettype="basic"/>
<attributes datatype="ref" value="constants.WIDGET_ALIGN_MIDDLE_RIGHT" name="widgetAlignment" platform ="general" buckettype="layout"/>
<attributes datatype="boolean" value="false" name="vExpand" platform ="general" buckettype="layout"/>
<attributes datatype="boolean" value="true" name="hExpand" platform ="general" buckettype="layout"/>
<attributes datatype="ref" value=&q
[SOLVED] Help using wc and grep with regular expressions
location: linuxquestions.com - date: April 16, 2010
I'm writing a program that works with text files, and I'm trying to create some filters with grep. I have various questions here, so I'll number them for clarity.
1) First of all, I'd like to know what wc -w is actually returning. The word count is less than what gedit is counting in Document Statistics, so obviously gedit is counting something (like newlines) that wc -w is not
2) Secondly, I was wondering if there was a way to grep x number of words. I'm looking for something like the -m option, but returning a certain number of words instead of lines. For example, to find the first 2000 words, do something like grep -someoption 2000 ".*" or using \{1,2000\}.
3) Finally, I'm trying to filter out headers and footers of a text file but having no luck. The text files are Project Gutenberg files, so they have standardized headers and footers. Here's an example: http://www.gutenberg.org/files/97/97.txt
The header starts with "The Project Gutenberg EBook of"
Grep Command Help
location: ubuntuforums.com - date: April 25, 2011
Greetings,
I am Kevinesh. A new user to LINUX & Ubuntu. I don't understand about grep, awk, & sed command. Would prefer if anybody could help me out. Cause i am a Windows user previously migrating to LINUX as my future job needs to be supported in LINUX platform.
A step by step guidance would be much appreciated.
Thanks in advance.
Kevinesh
Grep Terminal Command Help
location: ubuntuforums.com - date: June 5, 2013
Hey this will be my first post to Ubuntu forms so i hope i am in the right place anyway here i go.
I am wanting to use the "grep" command to search and return the amount of times "G" occurs in the .txt file. (example below)
Name|Name_2|Address_1|Address_2|Address_3|Postcode |Phone_number
what i am trying to do is just search the column where all the postcodes are in (eg column 6).
grep 'G' filename.txt -c
i understand that the command above will display every single "G" in the text file which is useless. What i am looking for is something like what is below
grep 'G' column6 separated by | filename.txt -c
would really appreciate if someone could help.
[SOLVED] XML find and replace tags with grep or sed
location: linuxquestions.com - date: May 28, 2013
Hi,
I have an xml file with sample data such so:
<column name="itemid">21</column>
<column name="field_29">Sale</column>
<column name="field_30">Egypt</column>
I need it to look like this:
<itemid>21</itemid>
<type>Sale</type>
<country>Egypt</country>
Dose any one have any idea on how to do this.
I am new here so i apologize if I am not so clear.
Thank you all.
ePlease help> XML, XSLT James Clarkes XT software
location: linuxquestions.com - date: April 21, 2003
Im setting up James Clarkes xt software (http://www.blnz.com/xt/index.html) on REDHAT 8 so I can transform xml file using xtsl templates (it's uni work). I know that xt is a java based program and I haven't learned much java but I have successfully installed it (j2sdk-1_4_1_01-linux-i586.bin), and set the path in my .bashrc file to point to the java programs (java javac etc).
However I cant seem to get XT working, It wont run from the xt-20020426a-src/demo directory. My main concerns are A) how to set the java classpath (so I can put xt.jar there) or how to find out where this classpath points to, and b) which is also related to a, what does this following instructions meen (the instructions are from the xt readme notes http://www.blnz.com/xt/xt-20020426a-src/index.html)
ps. i have a perl module XML::SAX installed which I have been using for other similar work.
---- from http://www.blnz.com/xt/xt-20020426a-...tml-----------
o use XT, you need:
the XT distribution
an XML pars
[Grep,Awk,Sed]Parsing text between XML tags.
location: linuxquestions.com - date: February 11, 2007
Hello, I have a little problem with my bash script, I need to get all text between those blue XML tags with awk,sed or grep.
Code:
[SOLVED] grep or egrep help
location: linuxquestions.com - date: December 18, 2012
Hi All,
I want to search particular date logs from /var/log/httpd/access.log file. For example log file having entries as below
Code:
Need help to strip XML & XSL tags from multiple files
location: linuxquestions.com - date: October 9, 2005
Hello,
I want to write a BASH file to automatically merge multiple XSLT files together for faster upload to the client side.
Here is the logic I want to use:
1. Merge 2 or more .xsl files together using 'cat'.
2. Strip all occurrences of the following lines (they appear at the top and bottom of every .xsl file):
Code:
Help with awk, grep or sed command to print info from text file ???
location: ubuntuforums.com - date: September 22, 2010
Hi, i have a txt file containing weather info such as:
Code:
<dnam>Norwich, United Kingdom</dnam>
<tm>7:26 PM</tm>
<lat>52.63</lat>
<lon>1.30</lon>
<sunr>6:33 AM</sunr>
<suns>7:03 PM</suns>
<t>Partly Cloudy</t>
and im after a command that will print the "Partly Cloudy" from inbetween <t>........</t>, or the "7:26" from between <tm>.........</tm> etc. i have been playing with sed, awk and grep, im geting there, but the closest i have came to is printing all numbers in the file rather than just the ones i specify, i cant seem to get the command right, and now my head and eyes are starting to ache from reading man pages, examples and staring at the terminal lol, so im giving in and asking for help, anyone know of a solution?
Thanks, any help appreciated!
please wait...
Page: 1 2 3 4 5 6 7 8 9 10