Sponsored Content
Top Forums Shell Programming and Scripting Help me to find a solution using UNIX commands Post 302819685 by Scott on Tuesday 11th of June 2013 08:54:36 AM
Old 06-11-2013
Perl is as much of a Unix command today as AWK is. Like Paste.
Code:
$ paste -d"\0" - - - - - < file
<?xml version="1.0" encoding="UTF-8"?><Employee> <Name>XXXX</Name> <ID>1233</ID></Employee>
<?xml version="1.0" encoding="UTF-8"?><Employee> <Name>YYYY</Name> <ID>1345</ID></Employee>
<?xml version="1.0" encoding="UTF-8"?><Employee> <Name>AAAA</Name> <ID>1145</ID></Employee>


Last edited by Scott; 06-11-2013 at 11:47 AM.. Reason: Clarified intention of first sentence.
 

10 More Discussions You Might Find Interesting

1. UNIX Desktop Questions & Answers

where i can find list of UNIX commands for daily operations ?

Hi There, Can anyone help, where i can find list of UNIX commands just for regulat day ro day operations Thanx MGR (1 Reply)
Discussion started by: mgoutham
1 Replies

2. UNIX for Dummies Questions & Answers

Unix Find commands

thank you for the help (1 Reply)
Discussion started by: scooter17
1 Replies

3. Shell Programming and Scripting

find filenames like unix commands

Hi, I need to write a small script to search in some specific directories to check if any file is present with a unix command name... Means if the directory contains any files like cat, vi, grep, find etc i need to list those files into a file. Please help Thanks, D (6 Replies)
Discussion started by: deepakgang
6 Replies

4. UNIX for Advanced & Expert Users

I need help to find some unix commands

Hey everyone, I need some help for some unix commands. - List all processes in the file "ProcessUser.txt" sorted by the users and in the file "ProcessName.txt" sorted by the name of the process. - How much time does the command "ls -alR /" need and compared to that, how much time is... (2 Replies)
Discussion started by: ZOCKER3000
2 Replies

5. Shell Programming and Scripting

Expect Script - Need help to find solution

I am facing below issue with my script. below is one of the test out of 50 test from the tool which i m trying to automate. the test may show up or may not depending upon the previous results and also from the test some inputs may be asked or may not be asked depending upon previous results so you... (1 Reply)
Discussion started by: snehalb
1 Replies

6. Shell Programming and Scripting

Please can you help me find a solution in this program in unix ?

Write shell script to read 3 numbers and print them in revers and print wither they are polyndrome numbers or not ????? (2 Replies)
Discussion started by: lovelorn_mn
2 Replies

7. Programming

Where to find sources of UNIX commands???

Dear friends, I believe that all unix commands are programs which are written in c language, please correct me if I am wrong. Now suppose that I want to see the c source of common commands like echo, ls, mkdir etc, where I can I find the source, linux is open source I believe, so the source for... (2 Replies)
Discussion started by: gabam
2 Replies

8. Red Hat

alias ip problem,i canīt find out solution

hi, we have eth1; in the beginning it was proposed to create from eth1, eth1.2500 and eth1.240. It did not worked cause vlan 1.2500 was not tagged in the switch. so they decided to leave eth1 like a physical interface with eth1.2500 config (removel vlan tag) and create eth1.240 but it did... (0 Replies)
Discussion started by: pabloli150
0 Replies

9. UNIX for Dummies Questions & Answers

Need to modify a delimited file using UNIX commands. Please find description

i have a '|' delimited file having 4 fields. now i want to sort the data by combination of first three fields without changing order of 4th field. input file looks like this: 3245|G|kop|45 1329|A|uty|76 9878|K|wer|12 3245|G|kop|15 1329|A|uty|56 9878|K|wer|2 3245|G|kop|105... (4 Replies)
Discussion started by: ankurgoyal2408
4 Replies

10. UNIX for Dummies Questions & Answers

Beginner UNIX question. tail and find commands

hey guys, i'm in a unix course.. and while this is a homework question - i did put alittle effort into it. just wanted to ask before trial and error drives me nuts. question 13 has us saving the last 30 characters of a file into another file and question 14 has us saving the list of all the... (1 Reply)
Discussion started by: labelthief
1 Replies
PERLCN(1)						 Perl Programmers Reference Guide						 PERLCN(1)

XXXXXXXXXXXXXXXXXX, XXXXXXXXXXXX.  XXXXXX POD (XXXXXX) XX; XXXXXXXXXXXXXX, XXXXXX. XXXXXXXXXXX, XXX perlpod XXXX.

NAME
perlcn - XXXX Perl XX DESCRIPTION
XXXX Perl XXX! X 5.8.0 XXX, Perl XXXXXX Unicode (XXX) XX, XXXXXXXXXXXXXXXXXXX; CJK (XXX) XXXXXXXX. Unicode XXXXXXX, XXXXXXXXXXXX: XXXX, XXXX, XXXXXXXX (XXX, XXXX, XXXX, XXXX, XXX, XXXX, XX). XXXXXXXXXXXXXX (X PC XXXX). Perl XXX Unicode XXXX. XXX Perl XXXXXXXXXX Unicode XX; Perl XXXXXX (XXXXXXXXX) XXX Unicode XXXX. XXXXXXX, XXXXX Unicode XXXXXXXXXXXX, Perl XXX Encode XXXX, XXXXXXXXXXXXXXXXXXX. Encode XXXXXXXXXXXXXXXXX ('gb2312' XX 'euc-cn'): euc-cn Unix XXXXX, XXXXXXXXX gb2312-raw XXXXX (XXX) GB2312 XXX gb12345 XXXXXXXXXXXXXX iso-ir-165 GB2312 + GB6345 + GB8565 + XXXX cp936 XXX 936, XXXX 'GBK' (XXXXX) XX hz 7 XXXXX GB2312 XX XXXX, X EUC-CN XXXXXXX Unicode, XXXXXXXX: perl -Mencoding=euc-cn,STDOUT,utf8 -pe1 < file.euc-cn > file.utf8 Perl XXXX "piconv", XXXXX Perl XXXXXXXXXXX, XXXX: piconv -f euc-cn -t utf8 < file.euc-cn > file.utf8 piconv -f utf8 -t euc-cn < file.utf8 > file.euc-cn XX, XX encoding XX, XXXXXXXXXXXXXXXXX, XXXX: #!/usr/bin/env perl # XX euc-cn XXXX; XXXXXXXXXXXXX euc-cn XX use encoding 'euc-cn', STDIN => 'euc-cn', STDOUT => 'euc-cn'; print length("XX"); # 2 (XXXXXXX) print length('XX'); # 4 (XXXXXXX) print index("XXXX", "XX"); # -1 (XXXXXXXX) print index('XXXX', 'XX'); # 1 (XXXXXXXX) XXXXXXXX, "X" XXXXXXX "X" XXXXXXXXX EUC-CN XX "X"; "X" XXXXXXXX "X" XXXXXXXXX "X". XXXXXX EUC-CN XXXXXXXXXXX. XXXXXXX XXXXXXXXXXX, XXX CPAN (<http://www.cpan.org/>) XX Encode::HanExtra XX. XXXXXXXXXXX: gb18030 XXXXXXX, XXXXXX XX, Encode::HanConvert XXXXXXXXXXXXXXXX: big5-simp Big5 XXXXX Unicode XXXXXX gbk-trad GBK XXXXX Unicode XXXXXX XXX GBK X Big5 XXXX, XXXXXXXXX b2g.pl X g2b.pl XXXX, XXXXXXXXXXX: use Encode::HanConvert; $euc_cn = big5_to_gb($big5); # X Big5 XX GBK $big5 = gb_to_big5($euc_cn); # X GBK XX Big5 XXXXXX XXX Perl XXXXXXXXX (XXXXXXXXX), XXXXXXX Perl XXX, XX Unicode XXXXX. XX, XXXXXXXXX: XX Perl XXXXX <http://www.perl.com/> Perl XXX (XXXXXXXX) <http://www.cpan.org/> Perl XXXXX (Comprehensive Perl Archive Network) <http://lists.perl.org/> Perl XXXXXX XX Perl XXX <http://www.oreilly.com.cn/index.php?func=booklist&cat=68> XXXXXXXXX Perl XX Perl XXXXX <http://www.pm.org/groups/asia.html> XX Perl XXXXX Unicode XXXX <http://www.unicode.org/> Unicode XXXX (Unicode XXXXXX) <http://www.cl.cam.ac.uk/%7Emgk25/unicode.html> Unix/Linux XX UTF-8 X Unicode XXX SEE ALSO
Encode, Encode::CN, encoding, perluniintro, perlunicode AUTHORS
Jarkko Hietaniemi <jhi@iki.fi> Audrey Tang (XX) <audreyt@audreyt.org> perl v5.18.2 2013-11-04 PERLCN(1)
All times are GMT -4. The time now is 01:07 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy