05-06-2010
Convert perl qw list to text file list?
Does anyone have a good example? I am having trouble looping..
Thanks
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Dear Yogesh..."Convert XML file into TEXT file using PERL seript"... can u help me regarding this issue...plz
Thanks
Rudro (0 Replies)
Discussion started by: Rudro
0 Replies
2. Shell Programming and Scripting
Hello, I am trying to take a simple list (from echo, not a file) and turn it into a list with HTML codes.
List item one.
List item two.
List item three.
to
<ol>
<li>List item one.</li>
<li>List item two.</li>
<li>List item three.</li>
</ol>
The list is coming in via echo on... (4 Replies)
Discussion started by: QuestunAthority
4 Replies
3. Shell Programming and Scripting
Hi.
I am actually doing all of this on OSX, but using unix apps and script.
I have built my own transparent rsync/open directory/mobility/etc set of scripts for the firm I work at, and it is all almost complete except for ONE THING.
I have the classic problem with rsync where if a user... (0 Replies)
Discussion started by: Ashtefere
0 Replies
4. Shell Programming and Scripting
Hi,
I have a text file say file1 having data like
ABC c:/hm/new1 Dir
DEF d:/ner/d sd
......
So i want to make a table from this text file, is it possible to do it using perl.
Thanks in advance
Sarbjit (1 Reply)
Discussion started by: sarbjit
1 Replies
5. Programming
hi all,
i need a c++ function which converts a linear list to circular.
presently i am working with two files. i.e., one linear list file. and one circular list file to do some operations. i thought it will be helpful if there is a function that converts a linear list to circular n undo the... (1 Reply)
Discussion started by: vidyaj
1 Replies
6. Shell Programming and Scripting
I have an xml file with IP addresses all over the show. I want to print only the IP addresses and cut off any text before or after the IP address.
Example:
Note: The IP addresses (x.x.x.x) do not consistently appear in the xml file as per the pattern below. Sometimes there are text before... (8 Replies)
Discussion started by: lewk
8 Replies
7. Programming
Hi all
I am looking for a way to list files in a directoy using perl but then exlude some of the results
i've got this to list the files, but how can exclude some of the results
#!/usr/bin/perl
$d = "/data";
opendir(DIR, $d);
foreach my $file (readdir(DIR))
{
print "Version:... (5 Replies)
Discussion started by: ab52
5 Replies
8. Homework & Coursework Questions
Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!
1. The problem statement, all variables and given/known data:
A) Write a script, which will take input from a file and convert the number from Centigrade to Fahrenheit... (5 Replies)
Discussion started by: AliTheSnake
5 Replies
9. Shell Programming and Scripting
Hi,
I'd like to take a list of numbers (with a prefix) and convert to a range, for example:
cn001
cn004
cn016
cn017
cn018
cn019
cn020
cn021
cn031
cn032
cn038
cn042
cn043
cn044
cn045 (5 Replies)
Discussion started by: chrissycc
5 Replies
10. Shell Programming and Scripting
Hello,
I have a list of words separated by spaces I am trying to delete from a text file, and I could not figure out what is the best way to do this.
what I tried (does not work) :
delete="password key number verify"
arr=($delete)
for i in arr
{
sed "s/\<${arr}\>]*//g" in.txt
}
>... (5 Replies)
Discussion started by: Hawk4520
5 Replies
LEARN ABOUT DEBIAN
ujconv
UJCONV(1p) User Contributed Perl Documentation UJCONV(1p)
NAME
ujconv -- reinvented iconv(1) using Unicode::Japanese
SYNOPSIS
ujconv [-f from_encoding] [-t to_encoding] [-s string] [files...]
ujconv -l
ujconv -h
ujconv -V
VERSION
ujconv 0.02
DESCRIPTION
ujconv is an iconv-like tool which is written in perl using Unicode::Japanese.
ujconv reads text from STDIN or files, convert them, and print them to STDOUT.
Available options are as follows. Each options can be in short form (-f) or long form (--from):
-f,--from from_encoding
Convert characters from from_encoding. Unlike iconv this option can be omitted. In that case, the encoding of the input is guessed by
ujconv.
-t,--to to_encoding
Convert characters to to_encoding.
-s,--string string
Input from the argument string instead of file or STDIN.
-l,--list
List all available encodings, one name per each lines.
-h,--help
Print a short help message.
-V,--version
Print the version of ujconv.
SEE ALSO
Unicode::Japanese, piconv(1), iconv(1), ujguess
perl v5.14.2 2008-08-05 UJCONV(1p)