Solved

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

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

This article will show, step by step, how to integrate R code into a R Sweave document
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
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…

895 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

17 Experts available now in Live!

Get 1:1 Help Now