Solved

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

Posted on 2007-11-20
3
467 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
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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

A short article about problems I had with the new location API and permissions in Marshmallow
Whether you’re a college noob or a soon-to-be pro, these tips are sure to help you in your journey to becoming a programming ninja and stand out from the crowd.
An introduction to basic programming syntax in Java by creating a simple program. Viewers can follow the tutorial as they create their first class in Java. Definitions and explanations about each element are given to help prepare viewers for future …
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…

758 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now