Solved

To read a csv file and passing the arguments to an application running in Unix

Posted on 2007-11-20
3
479 Views
Last Modified: 2013-12-26
I need to use HummingBird Macros to read a csv file and passing the values to an application running in Unix.
Also, I have to copy the screen from Host Explorer, launch Microsoft Word and paste it on to Word.

More Details:

I have Humming bird Exceed to login into Unix box.

 CSV file will looks as follows: (csv file is inside unix server)
------------------------------------------------
X1,Y1,Z1
X2,Y2,Z2
-------------------------------------------------
I want read line by line at once.

(eg) in the first loop, X, Y, Z variable values should like
      X="X1" and Y=”Y1” and Z=”Z1”

in the second loop, X, Y, Z variable values should like
     X="X2" and Y=”Y2” and Z=”Z2”

like.. etc.
These variable values to be passed to the required fields in the application.
Then, I have to capture screen, launch Microsoft word and paste it onto word. And whatever screen copied should be appended onto the same word document.

I am new to Hummingbird emulator. Is it possible? If yes, How can I acheive this?
Please help me.
0
Comment
Question by:manik_mani
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 6

Accepted Solution

by:
Talmash earned 500 total points
ID: 20390844
csv file is an excel format with spaces as delimiters.

you need regular expression to fetch out x,y,z:

perl -ne '/(\w+),.{5}(\w+).*,.{5}(\w+)/&&print"$1\t$2\t$3\n"' file.csv

you need to play a little with the .{5} until it's "catch" Y2/Z2.

.{5} means skip 5 chars.

tal
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Capture logon name 13 105
Output in PHP throwing alignment of data off issue 12 57
programming a polycom voip phone 3 56
Where to download python requests library 6 65
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
If you’re thinking to yourself “That description sounds a lot like two people doing the work that one could accomplish,” you’re not alone.
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…

733 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question