Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

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

Posted on 2007-11-20
3
Medium Priority
?
496 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 2000 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Computer science students often experience many of the same frustrations when going through their engineering courses. This article presents seven tips I found useful when completing a bachelors and masters degree in computing which I believe may he…
We live in a world of interfaces like the one in the title picture. VBA also allows to use interfaces which offers a lot of possibilities. This article describes how to use interfaces in VBA and how to work around their bugs.
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
Six Sigma Control Plans

618 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