11-10-2008
Hi Summer Cherry,
Thanks for the Perl Code..
Do you have any idea how to write it in Awk?
FYI, my Input Data range is displayed line by line.
Thanks
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi Friends,
Can any of you explain me about the below line of code?
mn_code=`env|grep "..mn"|awk -F"=" '{print $2}'`
Im not able to understand, what exactly it is doing :confused:
Any help would be useful for me.
Lokesha (4 Replies)
Discussion started by: Lokesha
4 Replies
2. Shell Programming and Scripting
hi,
i have a file having datas like that
./a.txt
12344
12345
12346
12347
.....
.....
...
i want to save this datas to another file like that
./b.txt
12344 12345 12346 12347 ... ... ...
i think awk can make this but how? :) waiting for ur help. (3 Replies)
Discussion started by: mercury
3 Replies
3. Shell Programming and Scripting
hi all,
i have a file that contains the following kind of data
codeexpert_package_module1.html
codeexpert_package_module2.html
codeexpert_package_module3_revision2.html
and it goes on ..
i need to get the following data from it
package_module1
package_module2
i know basename... (4 Replies)
Discussion started by: sais
4 Replies
4. Shell Programming and Scripting
hi All,
cat file_name | awk /^~/'{print $1","$2","$3","$4}' | sed -e 's/~//g'
Can this be done by using sed or awk alone (4 Replies)
Discussion started by: harshakusam
4 Replies
5. Shell Programming and Scripting
Hi,
I have line in input file as below:
3G_CENTRAL;INDONESIA_(M)_TELKOMSEL;SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL
My expected output for line in the file must be :
"1-Radon1-cMOC_deg"|"LDIndex"|"3G_CENTRAL|INDONESIA_(M)_TELKOMSEL"|LAST|"SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL"
Can someone... (7 Replies)
Discussion started by: shis100
7 Replies
6. Shell Programming and Scripting
logs:
"/home/abc/public_html/index.php"
"/home/abc/public_html/index.php"
"/home/xyz/public_html/index.php"
"/home/xyz/public_html/index.php"
"/home/xyz/public_html/index.php"
how to use "cut" or "awk" or "sed" to get the following result:
abc
abc
xyz
xyz
xyz (8 Replies)
Discussion started by: timmywong
8 Replies
7. Linux
Please help me, wasted hrs:wall:, to find this soulution:-
I need a command that will work on file (xml) and replace multiple occurrence (more than 2 times)
Examples
1. '==='
2. '===='
3. '======='
should be replaced by just '=='
Note :- single character should be replaced. (=... (13 Replies)
Discussion started by: RedRocks!!
13 Replies
8. Post Here to Contact Site Administrators and Moderators
Majority of the questions are pertaining file/string parsing w.r.t
sed
or
awk
It would be nice to have these two as their own sub category under shell-programming-scripting which can avoid lot of duplicate posts. (1 Reply)
Discussion started by: jville
1 Replies
9. Shell Programming and Scripting
Hi Experts ,
file:
EST 2013::.................................................................................................................................................................................................................................................cmihx021:/home/data1/
... (11 Replies)
Discussion started by: rveri
11 Replies
10. Shell Programming and Scripting
Hello.
System : opensuse leap 42.3
I have a bash script that build a text file.
I would like the last command doing :
print_cmd -o page-left=43 -o page-right=22 -o page-top=28 -o page-bottom=43 -o font=LatinModernMono12:regular:9 some_file.txt
where :
print_cmd ::= some printing... (1 Reply)
Discussion started by: jcdole
1 Replies
LEARN ABOUT DEBIAN
xacobeo
Xacobeo(3pm) User Contributed Perl Documentation Xacobeo(3pm)
NAME
Xacobeo - XPath (XML Path Language) visualizer.
SYNOPSIS
xacobeo file [xpath]
DESCRIPTION
This program provides a simple graphical user interface (GUI) for executing XPath queries and seeing their results.
The GUI tries to provide all the elements that are needed in order to write, test and execute XPath queries without too many troubles. It
displays the Document Object Model (DOM) and the namespaces used. The program registers the namespaces automatically and each element is
displayed with its associated namespaces. All is performed with the idea of being able of running an XPath query as soon as possible
without having to fight with the document's namespaces and by seeing automatically under which namespace each element is.
RATIONALE
The main idea behind this application is to provide a simple way for building XPath queries that will be latter integrated in to a program
or XSLT transformation paths. Therefore, this program goal is to load an XML document and to display it as an XML parser sees it. Thus each
node element is prefixed with its namespace.
IMPLEMENTATION
This program uses XML::LibXML (libxml2) for all XML manipulations and Gtk2 for the graphical interface.
LIMITATIONS
For the moment, the program focuses only on XPath and doesn't allow the XML document to be edited.
PROJECT
The project is hosted on Google Code (http://xacobeo.googlecode.com/) which provides the latest source code (SVN trunk) and a simple bug
tracking.
Although Google Code provides a download facility, the project's source code bundles will always be published through CPAN. It's easier
this way for the project and after all this is a Perl project!
BUGS
Please when possible try to submit the bugs through the Google Code Issue Tracker (http://code.google.com/p/xacobeo/issues/list) otherwise
simply create a ticket through RT.
AUTHORS
Emmanuel Rodriguez <potyl@cpan.org>.
COPYRIGHT AND LICENSE
Copyright (C) 2008 by Emmanuel Rodriguez.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.8 or,
at your option, any later version of Perl 5 you may have available.
perl v5.14.2 2011-11-16 Xacobeo(3pm)