Sponsored Content
Top Forums Shell Programming and Scripting Multiple command execution inside awk command during xml parsing Post 302768473 by DGPickett on Friday 8th of February 2013 03:46:55 PM
Old 02-08-2013
JAVA, PERL and C++ have true XML parsers. Awk can handle some xml layouts but might get tangled in others just as valid. Tools like XPath, XQuery, XSLT and JAX can script XML solutions. XQuery - Wikipedia, the free encyclopedia Java XML - Wikipedia, the free encyclopedia
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Execution of awk command in a variable

Hi All, I have a awk command that is stored in a variable. the value of the variable cmd is: (mean output of echo $cmd is: ) awk -F";" '{print $1}' Now I want to execute this command. How can I do that???? Quick Reply will be appreciated. Regards, Amit (2 Replies)
Discussion started by: patelamit009
2 Replies

2. Shell Programming and Scripting

Execution problems using awk command.

Hi All, I have the following requirement. In a directory i get files from external source. I at regular intervals check that directory for any incoming files. The file name is underscore delimited. Such as: aaa_bbb_ccc_ddd_eee_fff.dat I am using awk and and splitting the file name. ... (4 Replies)
Discussion started by: satishpv_2002
4 Replies

3. Shell Programming and Scripting

Multiple command execution

I want to open more than 2 files(f1,f2). commands for opening those files are stored in one file (f3). command to execute the file (f3). (3 Replies)
Discussion started by: Mahendravarma
3 Replies

4. Shell Programming and Scripting

Parallel execution of command inside file

Hi all, I have the requirement to generate the file containing following command eval /path/ dsjob -logdetail projectname JOBNAME /path/ 1. The file contains the above command say about 150 times i,e only the JOBNAME changes in every command 2. The commands must be written in such a way... (2 Replies)
Discussion started by: sanjay mn
2 Replies

5. Shell Programming and Scripting

Help in using date command inside awk

Hi All, bash-3.2$ autorep -J BOX_NAME% -l0 | grep BOX_NAME| awk -f awkScript.awk sh: -c: line 0: unexpected EOF while looking for matching `"' sh: -c: line 1: syntax error: unexpected end of file BOX_NAME SU 06/21/2013 03:44:03 06/21/2013 07:46:37 0 #My awkfile { ... (3 Replies)
Discussion started by: ddspark
3 Replies

6. Shell Programming and Scripting

Grep command inside awk

Hi, I would like to use grep command inside awk. Here is my requirement below : file.txt col1 col2 col3 col 4 col 5 wrxwrx 124 jun 3 Sensex.EMEA wrxwrx 120 jun 4 Emex.US wrxwrx 130 feb 3 passion.AUS wrxwrx 145 feb 9 lession.AUS wrxwrx 130 feb 5 pass.US wrxwrx 130 feb 8... (5 Replies)
Discussion started by: Balasankar
5 Replies

7. Shell Programming and Scripting

Execution Problem with awk command

Hi All, I am trying to find a word from a file in loop. while read i; do DB_Name=$i awk '{for(i=1;i<=NF;i++)if($i~/$DB_Name/)print $(i)}' $BTEQ_NAME > $DB_Name_TableList.txt done <Param.txt here Param.txt contents data as ODS_TARGT_RECV FIN_TARGT... (7 Replies)
Discussion started by: Shilpi Gupta
7 Replies

8. Shell Programming and Scripting

Parsing XML using command line

Hi Experts, How do I parse a XML with below contents <saw:user name="mbussey@xyz.com" /> <saw:user name="kimmy.chan@pqr.com" /> <saw:user name="chudgins@gmail.com" /> and retrieve below output ? mbussey@xyz.com kimmy.chan@pqr.com chudgins@gmail.com ... (17 Replies)
Discussion started by: pauldx
17 Replies

9. Shell Programming and Scripting

Parsing OSX UNIX command results which print in multiple lines

from the CLI on a Mac, if you type networksetup -listallnetworkservices then you get results in a multi-line paragraph that look something like this: networksetup -listallnetworkservices An asterisk (*) denotes that a network service is disabled. Wi-Fi Display Ethernet Bluetooth DUN... (7 Replies)
Discussion started by: hungryd
7 Replies

10. UNIX for Advanced & Expert Users

awk trouble inside another command

I tried running this. dsh -w server1 'lsof /audit | awk '{ print $2 }'' It did not like above so I tried to escape the single parenthesis at the end. dsh -w server1 'lsof /audit | awk '{ print $2 }\'' It then hung so I changed up the parenthesis to this. This worked. dsh -w server1... (6 Replies)
Discussion started by: cokedude
6 Replies
WIKIPEDIA2TEXT(1)					      General Commands Manual						 WIKIPEDIA2TEXT(1)

NAME
wikipedia2text -- displays Wikipedia entries on the command line SYNOPSIS
wikipedia2text [-BCnNoOpPsSuU] [-b prog] [ {-c | -i | -I } patt] [-l lang] [-W base-url] Query wikipedia2text -o [-b prog] [-l lang] Query wikipedia2text [-h] wikipedia2text -v wikipedia2text -r DESCRIPTION
This manual page documents briefly the wikipedia2text command. wikipedia2text fetches and renders Wikipedia articles using a text-mode web-browser (currently recognises elinks, links2, links, lynx and w3m) and display the text of the article on STDOUT respectively in a pager. OPTIONS
The program recognizes the following command line options: -b prog Use program prog as browser. -B Do not use browser configured via configuration file or environment. -c patt, -I patt Colorize case-sensitive pattern patt in output. -C, -N Colorize output. -h Show help and a summary of options. -i patt Colorize case-insensitive pattern patt in output. -l lang use Wikipedia in language lang. See the Wikipedia Languages entry elsewhere in this document. -n Do not colorize output. -o Open the Wikipedia page in the browser. -O Do not open the Wikipedia page in the browser. -p Use a pager (set by default). -P Don't use a pager. -r Display a random Wikipedia article. -s Display only the summary of the Wikipedia article. -S Display the full content of the Wikipedia article and not only the summary. -u Just print the URL of the Wikipedia page and exit. -U Display the full content of the Wikipedia article and not only print the URL of the page. -v Show version number. -W base-url use base-url as base URL for wikipedia (e.g. use a different wiki), querying this URL will happen by appending the search term. ENVIRONMENT
The following environment variables are recognized: ABROWSER Browser to use as default instead of to found or configured web browser. IGNCASE Default value for case-sensitivity of colorizing the output. Can be set to "true" or "false". LOCAL Default value for language in which Wikipedia should be used. See the Wikipedia Languages entry elsewhere in this document. OUTPUTURL Determines, if wikipedia2text should display only the URL of the Wikipedia article by default. Can be set to "true" or "false". PAGER Default value for pager to use. Can also be set to "true", in which case, wikipedia2text tries to figure out the appropriate pager, or "false", which means not to use a pager at all. SHORT Determines, if wikipedia2text should display only the summary of the Wikipedia article by default. Can be set to "true" or "false". USEBROWSER Determines, if wikipedia2text should open the Wikipedia page via openurl in the globally set default browser, i.e. Firefox or Konqueror, by default. Can be set to "true" or "false". FILES
$HOME/.wikipedia2textrc Will be sourced from wikipedia2text on startup. Should contain variable assignments. The same variables as for the environment are recognised. WIKIPEDIA LANGUAGES
wikipedia2text currently supports the following Wikipedia languages: af Cape Dutch (Afrikaans) als Alemannic ca Catalan cs Czech da Danish de German en English eo Esperanto es Spanish fi Finnish fr French hu Hungarian ia Interlingua is Islandic it Italian la Latin lb Luxembourgian nds Low German nl Dutch nn, no Norwegian (Nynorsk and Bokmal) pl Polish pt Portuguese rm Rhaeto-Romanic ro Romanian simple Simple English sk Slovak sl Slovenian sv Swedish tr Turkish SEE ALSO
elinks(1), links(1), links2(1), lynx(1), w3m(1) AUTHOR
wikipedia2text was written by Christian Brabandt <cb@256bit.org>. Patches also from Axel Beckert <abe@deuxchevaux.org>. This manual page was written by Axel Beckert <abe@deuxchevaux.org> for the Debian system (but may be used by others). Permission is granted to copy, distribute and/or modify this document under the terms of the GNU General Public License (GPL), Version 2 any later ver- sion published by the Free Software Foundation. On Debian systems, the complete text of the GNU General Public License can be found in /usr/share/common-licenses/GPL. HISTORY
wikipedia2text was first released by Christian Brabandt on in his blog (link to URL http://blog.256bit.org/archives/126-Wikipedia-in-der- Shell.html) with as script named wiki. Some users may find it useful to create an alias with that name for speeding up the typing of a wikipedia2text command if no other command of that name is present. OTHER INFO
The current version of wikipedia2text should be available at on Christian Brabandt's website (link to URL http://www.256bit.org/~chris- bra/wiki) . WIKIPEDIA2TEXT(1)
All times are GMT -4. The time now is 02:02 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy