Sponsored Content
Top Forums Shell Programming and Scripting read in variable data from another file - grep Post 302268861 by vgersh99 on Tuesday 16th of December 2008 12:18:09 PM
Old 12-16-2008
is 'ec' the first field in all.inq?

Pls post a sample all.inq, a sample 1.lst and a desired output of 1.inq

And indicate a 'common' field between all.ina and 1.lst files
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Read data from a file into a variable

I am a FORTRAN guy and not a UNIX expert by any means so sorry if this sounds dumb, but all I want to do is have a UNIX script which reads data from a file (say 1000 lines worth, each row is a file name) and store it in an array to perform an operation on later. As maddeningly simple as this... (2 Replies)
Discussion started by: yorkdg
2 Replies

2. Shell Programming and Scripting

Read from data file

Hi, I have a data file formatted like this: Ex: Mike 3434 Jack 481 Peter 12 Alan 926 I want to get this data into 2 variables: "Names" and "Numbers" that I can using one "for" loop to get the value as Names and Numbers Like this: for i in 0 1 2 3 do echo $Names echo... (12 Replies)
Discussion started by: fongthai
12 Replies

3. Shell Programming and Scripting

Post Shell programming: Question about source a file and read data from the file

This is shell programming assignment. It needs to create a file called .std_dbrc contains STD_DBROOT=${HOME}/class/2031/Assgn3/STD_DB (which includes all my simple database files) and I am gonna use this .std_dbrc in my script file (read the data from the database files) like this: .... (3 Replies)
Discussion started by: ccwq
3 Replies

4. UNIX for Advanced & Expert Users

how to read the data from an excel sheet and use those data as variable in the unix c

I have 3 columns in an excel sheet. c1 c2 c3 EIP_ACCOUNT SMALL_TS_01 select A.* from acc; All the above 3 col shoud be passed a variable in the unix code. 1.How to read an excel file 2.How to pass these data as variable to the unic script (1 Reply)
Discussion started by: Anne Grace
1 Replies

5. Shell Programming and Scripting

Want to read data from a file name.txt and search it in another file and then matching...

Hi Frnds... I have an input file name.txt and another file named as source.. name.txt is having only one column and source is having around 25 columns...i need to read from name.txt line by line and search it in source file and then save the result in results file.. I have a rough idea about the... (15 Replies)
Discussion started by: ektubbe
15 Replies

6. Shell Programming and Scripting

Perl: How to read text from file and process $variable in that data too.

In the hello.htm have the sentenses: Hello $name How are you? The perl script: $name = "David"; open(HEADER,"hello.htm"); while(<HEADER>) { $html .= $_; } close(HEADER); print "$html";I making something about template. But it can't process the $name variable. (4 Replies)
Discussion started by: natong
4 Replies

7. Shell Programming and Scripting

How to read file and load data into a script as variable

I need to read a text file that contain columns of data, i need to read 1st column as a function to call, and others are the data i need to get into a ksh script. I am quite new to ksh scripting, i am not very sure how to read each row line by line and the data in each columns of that line, set... (3 Replies)
Discussion started by: gavin_L
3 Replies

8. Shell Programming and Scripting

Read csv file, convert the data and make one text file in UNIX shell scripting

I have input data looks like this which is a part of a csv file 7,1265,76548,"0102:04" 8,1266,76545,"0112:04" I need to make the output data should look like this and the output data will be part of text file: 7|1265000 |7654899 |A| 8|12660000 |76545999 |B| The logic behind the... (6 Replies)
Discussion started by: RJG
6 Replies

9. Shell Programming and Scripting

How to read each file grep a value from that?

Hi Team, in /tmp folder i have thousands of log files i want to read each file and grep a value called "Calling This". Each logfile name is different but it ends with .log. How can i achieve this? Please excuse if i did any mistake by not following forum standards. I will surely follow... (10 Replies)
Discussion started by: darling
10 Replies

10. Shell Programming and Scripting

In PErl script: need to read the data one file and generate multiple files based on the data

We have the data looks like below in a log file. I want to generat files based on the string between two hash(#) symbol like below Source: #ext1#test1.tale2 drop #ext1#test11.tale21 drop #ext1#test123.tale21 drop #ext2#test1.tale21 drop #ext2#test12.tale21 drop #ext3#test11.tale21 drop... (5 Replies)
Discussion started by: Sanjeev G
5 Replies
USB_QUIRK(4)						   BSD Kernel Interfaces Manual 					      USB_QUIRK(4)

NAME
usb_quirk -- USB quirks module SYNOPSIS
To compile this module into the kernel, place the following line in your kernel configuration file: device usb Alternatively, to load the module at boot time, place the following line in loader.conf(5): usb_quirk_load="YES" DESCRIPTION
The usb_quirk module provides support for dynamically adding and removing quirks for USB devices with usbconfig(8). General quirks: UQ_AUDIO_SWAP_LR swap left and right channels UQ_AU_INP_ASYNC input is async despite claim of adaptive UQ_AU_NO_FRAC do not adjust for fractional samples UQ_AU_NO_XU audio device has broken extension unit UQ_BAD_ADC bad audio spec version number UQ_BAD_AUDIO device claims audio class, but is not UQ_BROKEN_BIDIR printer has broken bidir mode UQ_BUS_POWERED device is bus powered, despite claim UQ_HID_IGNORE device should be ignored by hid class UQ_KBD_IGNORE device should be ignored by kbd class UQ_KBD_BOOTPROTO device should set the boot protocol UQ_UMS_IGNORE device should be ignored by ums class UQ_MS_BAD_CLASS does not identify properly UQ_MS_LEADING_BYTE mouse sends an unknown leading byte UQ_MS_REVZ mouse has Z-axis reversed UQ_NO_STRINGS string descriptors are broken UQ_POWER_CLAIM hub lies about power status UQ_SPUR_BUT_UP spurious mouse button up events UQ_SWAP_UNICODE has some Unicode strings swapped UQ_CFG_INDEX_1 select configuration index 1 by default UQ_CFG_INDEX_2 select configuration index 2 by default UQ_CFG_INDEX_3 select configuration index 3 by default UQ_CFG_INDEX_4 select configuration index 4 by default UQ_CFG_INDEX_0 select configuration index 0 by default UQ_ASSUME_CM_OVER_DATA assume cm over data feature USB Mass Storage quirks: UQ_MSC_NO_TEST_UNIT_READY send start/stop instead of TUR UQ_MSC_NO_RS_CLEAR_UA does not reset Unit Att. UQ_MSC_NO_START_STOP does not support start/stop UQ_MSC_NO_GETMAXLUN does not support get max LUN UQ_MSC_NO_INQUIRY fake generic inq response UQ_MSC_NO_INQUIRY_EVPD does not support inq EVPD UQ_MSC_NO_SYNC_CACHE does not support sync cache UQ_MSC_SHUTTLE_INIT requires Shuttle init sequence UQ_MSC_ALT_IFACE_1 switch to alternate interface 1 UQ_MSC_FLOPPY_SPEED does floppy speeds (20kb/s) UQ_MSC_IGNORE_RESIDUE gets residue wrong UQ_MSC_WRONG_CSWSIG uses wrong CSW signature UQ_MSC_RBC_PAD_TO_12 pad RBC requests to 12 bytes UQ_MSC_READ_CAP_OFFBY1 reports sector count, not max sec. UQ_MSC_FORCE_SHORT_INQ does not support full inq. UQ_MSC_FORCE_WIRE_BBB force BBB wire protocol UQ_MSC_FORCE_WIRE_CBI force CBI wire protocol UQ_MSC_FORCE_WIRE_CBI_I force CBI with int. wire protocol UQ_MSC_FORCE_PROTO_SCSI force SCSI command protocol UQ_MSC_FORCE_PROTO_ATAPI force ATAPI command protocol UQ_MSC_FORCE_PROTO_UFI force UFI command protocol UQ_MSC_FORCE_PROTO_RBC force RBC command protocol 3G Datacard (u3g) quirks: UQ_MSC_EJECT_HUAWEI ejects after Huawei USB command UQ_MSC_EJECT_SIERRA ejects after Sierra USB command UQ_MSC_EJECT_SCSIEJECT ejects after SCSI eject command 0x1b0000000200 UQ_MSC_EJECT_REZERO ejects after SCSI rezero command 0x010000000000 UQ_MSC_EJECT_ZTESTOR ejects after ZTE SCSI command 0x850101011801010101010000 UQ_MSC_EJECT_CMOTECH ejects after C-motech SCSI command 0xff52444556434847 UQ_MSC_EJECT_WAIT wait for the device to eject UQ_MSC_EJECT_SAEL_M460 ejects after Sael USB commands UQ_MSC_EJECT_HUAWEISCSI ejects after Huawei SCSI command 0x11060000000000000000000000000000 UQ_MSC_EJECT_TCT ejects after TCT SCSI command 0x06f504025270 See /sys/dev/usb/quirk/usb_quirk.h for the complete list of supported quirks. EXAMPLES
After attaching a u3g device which appears as a USB device on ugen0.3: usbconfig -d ugen0.3 add_quirk UQ_MSC_EJECT_WAIT SEE ALSO
usbconfig(8) HISTORY
The usb_quirk module appeared in FreeBSD 8.0, and was written by Hans Petter Selasky <hselasky@FreeBSD.org>. This manual page was written by Nick Hibma <n_hibma@FreeBSD.org>. BSD
April 21, 2013 BSD
All times are GMT -4. The time now is 08:41 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy