01-31-2011
Thank you for your assistance! This worked perfectly for what I want to have accomplished!!!
This User Gave Thanks to jaacmmason For This Post:
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
I have 2 files with many lines.
File one example:
CN=VXX,CN=ug88888,OU=America,OU=State,OU=VXX,
File two example:
ul22222 Jon Smith
ug8888 Mildred Apple
I need a routine that will take the ug88888 portion of the first file and pull out the corresponding full line in file two. Then add the... (2 Replies)
Discussion started by: scriptarg
2 Replies
2. Shell Programming and Scripting
I need to write a perl script to execute external programs and grab the output and return code. Each program should be killed if it has not completed within X seconds.
Imagine that the script goes something like this :
@commands = &get_commands();
foreach $cmd (@commands) {
$pid =... (4 Replies)
Discussion started by: SandmanCL
4 Replies
3. Shell Programming and Scripting
Hi there,
Can someone let me know how to sort the 2 dimensional array below by column 1 then by column 2?
22 55
2222 2230
33 66
44 58
222 240
11 25
22 60
33 45
output:
11 25
22 55
22 60
33 45
33 66
44 58 (6 Replies)
Discussion started by: phoeberunner
6 Replies
4. Shell Programming and Scripting
Hi, all.
I need a shell script which gathers data from a remote XML file and then displays it according to my needs.. I need this for my job due to the fact that I need to keep track price changes of euro, usd, gold, etc.
The XML file I am talking about is located at this page: cnnturk dot... (4 Replies)
Discussion started by: canimsin
4 Replies
5. Shell Programming and Scripting
hi everyone,
i am a newbie in shell programming. and i want to simply go through a text file that contains 3 "columns", split by ';'
customerID ; link-to-contract ; save-as-filename
so an example would simply look like this
now i want to loop through every line, and save the file from... (3 Replies)
Discussion started by: Confidence
3 Replies
6. Shell Programming and Scripting
I want to sort like below
Suppose few lines in a file is like this
systemid:ABC messagedestination:batchxpr replytoqname: myca
systemid:BCD messagedestination:realtime replytoqname: myca
systemid:ABC messagedestination:realtime replytoqname: eac
systemid: BCD messagedestination:mqonline... (1 Reply)
Discussion started by: srkmish
1 Replies
7. Shell Programming and Scripting
Hi there,
I have tried using the "find" command to do this but to no avail as the "find -mtime" command I used descend to the directories from my current working directory.
Say in "directoryA" has multiple files and those files are created on a daily basis.
Under "directoryB", there are... (4 Replies)
Discussion started by: chewku
4 Replies
8. Shell Programming and Scripting
I have log files with following format -
YYYY/MM/DD HH:mm:ss.msec|field2|filed3| log message
Now the message itself can be multi line message containing new line character.
for e.g.
2013/02/05 15:33:12.234|abc|xyz| This is first single line message.
2013/02/05 15:33:12.786|abc|xyz| This... (6 Replies)
Discussion started by: gini32
6 Replies
9. UNIX for Dummies Questions & Answers
Hi all,
I wanted to save the values of a file that contains unique entries based on a specific column (column 4). my sample file looks like the following:
input file: 200006-07file.txt
145 35 10 3
147 35 12 4
146 36 11 3
145 34 12 5
143 31 15 4
146 30 14 5
desired output files:... (5 Replies)
Discussion started by: ida1215
5 Replies
10. Shell Programming and Scripting
Hi,
i need help with a file creation of an output program. I've got a program that with #find creates an output for each files in a directory.
If i give this command :
-o spec$(date -u +%Y%m%dt%H%M)
it creates just one file, overwriting all the others since it is the creation date .... (2 Replies)
Discussion started by: Board27
2 Replies
LEARN ABOUT CENTOS
libieee1284
LIBIEEE1284(3) Introduction LIBIEEE1284(3)
NAME
libieee1284 - IEEE1284 communications library
SYNOPSIS
#include <ieee1284.h>
cc files... -lieee1284
OVERVIEW
The libieee1284 library is a library for accessing parallel port devices.
The model presented to the user is fairly abstract: a list of parallel ports with arbitrary names, with functions to access them in various
ways ranging from bit operations to block data transfer in one of the IEEE 1284 sanctioned protocols.
Although the library resides in user space the speed penalty may not be as bad as you initially think, since the operating system may well
provide assistance with block data transfer operations; in fact, the operating system may even use hardware assistance to get the job done.
So, using libieee1284, ECP transfers using DMA are possible.
The normal sequence of events will be that the application
1. calls ieee1284_find_ports to get a list of available ports
2. then ieee1284_get_deviceid to look for a device on each port that it is interested in
3. and then ieee1284_open to open each port it finds a device it can control on.
4. The list of ports returned from ieee1284_find_ports can now be disposed of using ieee1284_free_ports.
5. Then when it wants to control the device, it will call ieee1284_claim to prevent other drivers from using the port
6. then perhaps do some data transfers
7. and then ieee1284_release when it is finished that that particular command. This claim-control-release sequence will be repeated each
time it wants to tell the device to do something.
8. Finally when the application is finished with the device it will call ieee1284_close.
Usually a port needs to be claimed before it can be used. This is to prevent multiple drivers from trampling on each other if they both
want to use the same port. The exception to this rule is the collection of IEEE 1284 Device IDs, which has an implicit
open-claim-release-close sequence. The reason for this is that it may be possible to collect a Device ID from the operating system, without
bothering the device with it.
CONFIGURATION
When ieee1284_find_ports is first called, the library will look for a configuration file, /etc/ieee1284.conf.
Comments begin with a '#' character and extend to the end of the line. Everything else is freely-formatted tokens. A non-quoted (or
double-quoted) backslash character '' preserves the literal value of the next character, and single and double quotes may be used for
preserving white-space. Braces and equals signs are recognised as tokens, unless quoted or escaped.
The only configuration instruction that is currently recognised is "disallow method ppdev", for preventing the use of the Linux ppdev
driver.
ENVIRONMENT
You can enable debugging output from the library by setting the environment variable LIBIEEE1284_DEBUG to any value.
FILES
/etc/ieee1284.conf
Configuration file.
SEE ALSO
parport(3), parport_list(3), ieee1284_find_ports(3), ieee1284_free_ports(3), ieee1284_get_deviceid(3), ieee1284_open(3), ieee1284_close(3),
ieee1284_claim(3), ieee1284_release(3), ieee1284_data(3), ieee1284_status(3), ieee1284_control(3), ieee1284_negotiation(3),
ieee1284_ecp_fwd_to_rev(3), ieee1284_transfer(3), ieee1284_get_irq_fd(3), ieee1284_set_timeout(3)
AUTHOR
Tim Waugh <twaugh@redhat.com>
Author.
COPYRIGHT
Copyright (C) 2001-2003 Tim Waugh
[FIXME: source] 06/17/2014 LIBIEEE1284(3)