08-28-2015
but the field in the CFA FILE1 it's positioned at bytes 88(for 12 byte)
and in this way it is not identified, for this I used grep.
I can do a substring (awk)?
thanks a lot
Last edited by Don Cragun; 08-28-2015 at 03:53 PM..
Reason: Add ICODE tags.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Need a script that manipulates a fixed length file that will compare 2 fields in that file and if they are equal write that line to a new file.
i.e. If fields 87-93 = fields 119-125, then write the entire line to a new file. Do this for every line in the file. After we get only the fields... (1 Reply)
Discussion started by: Muga801
1 Replies
2. Shell Programming and Scripting
I have a file name version.properties with the following data:
major.version=14
minor.version=234
I'm trying to write a grep expression to only put "14" to stdout. The following is not working.
grep "major.version=(+)" version.properties
What am I doing wrong? (6 Replies)
Discussion started by: obfunkhouser
6 Replies
3. Shell Programming and Scripting
#!/bin/bash
i=0
cat 1.csv | while read fileline
do
echo "$fileline"
IFS="#" flds=( $fileline )
nrofflds=${#flds}
echo "noof fields$nrofflds"
fld=0
while
do
echo "noof counter$fld"
echo "$nrofflds"
#fld1="${flds}" trying to store the content of line to fields but i... (4 Replies)
Discussion started by: barani75
4 Replies
4. Shell Programming and Scripting
Hi,
I want to split/parse certain bits of the hex data into another field.
Example:
Input data is
Word1: 4f72abfd
Output:
Parse bits (5 to 0) into field word1data1=0x00cd=205 decimal
Parse bits (7 to 6) into field word1data2=0x000c=12 decimal
etc.
Word2: efff3d02
Parse bits (13 to... (1 Reply)
Discussion started by: morrbie
1 Replies
5. Shell Programming and Scripting
Hi Folks,
I have a file with 22 columns. In which, I need to remove nulls if found at $2, $4, $14 & $16. Then, needs to compare the fields such as $2 == $14 && $4 == $16. The final output will print all the fields where the above conditions are satisfied.
Could you please anyone help me... (6 Replies)
Discussion started by: Jerald
6 Replies
6. Shell Programming and Scripting
I have two files
File 1 in reading directory is of following format
Read 1 A T
Read 3 T C
Read 5 G T
Read 7 A G
Read 10 A G
Read 12 C G
File 2 in directory contains
Read 5 A G
Read 6 T C
Read 7 G A
Read 8 G A
Read 20 A T
File2 contains (1 Reply)
Discussion started by: empyrean
1 Replies
7. UNIX for Advanced & Expert Users
I have a file. We can call file1. It has these contents.
STOPLOSS Control_file 0000000010.000 STOPLOSS Audit_file_Signoff +0000000010.00
nawk '{ fmt="%3s %15s %15s %15s %21s\n";
if ($3==$6) {
tpy="Successful Match"; jnme=$1;... (4 Replies)
Discussion started by: wawa
4 Replies
8. Shell Programming and Scripting
The below awk parser works for most data inputs, but I am having trouble with the last one. The problem is in the below rules steps 1 and 2 come from $2 (NC_000013.10:g.20763686_20763687delinsA) and steps 3 and 4 come from $1 (NM_004004.5:c.34_35delGGinsT).
Parse Rules:
The header is... (0 Replies)
Discussion started by: cmccabe
0 Replies
9. Shell Programming and Scripting
I have a file of ~500,000 entries in the following:
file.txt
chr1 11868 12227 ENSG00000223972.5 . + HAVANA exon . gene_id "ENSG00000223972.5"; transcript_id "ENST00000456328.2"; gene_type "transcribed_unprocessed_pseudogene"; gene_status "KNOWN"; gene_name "DDX11L1"; transcript_type... (17 Replies)
Discussion started by: cmccabe
17 Replies
10. UNIX for Beginners Questions & Answers
Hi,
Below are the sample files. x.txt is from an Excel file that is a list of users from Windows and y.txt is a list of database account.
$ head -500 x.txt y.txt
==> x.txt <==
TEST01 APP_USER_PROFILE
USER03 APP_USER_PROFILE
TEST02 APP_USER_EXP_PROFILE
TEST04 APP_USER_PROFILE
USER01 ... (3 Replies)
Discussion started by: newbie_01
3 Replies
UFTDI(4) BSD Kernel Interfaces Manual UFTDI(4)
NAME
uftdi -- USB support for serial adapters based on the FT8U100AX and FT8U232AM
SYNOPSIS
uftdi* at uhub?
ucom* at uftdi?
DESCRIPTION
The uftdi driver provides support for various serial adapters based on the FTDI USB UART IC family. Supported chip models are FT8U100AX,
FT8U232AM, FT232BM, FT232R, dual channel FT2232D, dual channel FT2232H, and quad channel FT4232H.
The device is accessed through the ucom(4) driver which makes it behave like a tty(4).
HARDWARE
The uftdi driver supports the following adapters:
B&B Electronics uLinks RS-422/485
Coastal ChipWorks TNC-X
Crystalfontz CFA-631 LCD
Crystalfontz CFA-632 LCD
Crystalfontz CFA-633 LCD
Crystalfontz CFA-634 LCD
Crystalfontz CFA-635 LCD
CTI USB-485-Mini and and USB-Nano-485
Falcom Samba 55/56 GSM/GPRS modem
Falcom Twist GSM/GPRS modem
Future Technology Devices DB9
Future Technology Devices IC
Future Technology Devices KW
Future Technology Devices RS232
Future Technology Devices Y6
Future Technology Devices Y8
Future Technology Devices Y9
Future Technology Devices YS
GlobalScale Technogogies SheevaPlug and OpenRD
HP USB-Serial adapter shipped with some HP laptops
Inland UAS111
Interpid Control Systems NeoVI Blue
Interpid Control Systems ValueCAN
Matrix Orbital LK/VK/PK202-24 LCD
Matrix Orbital LK/VK204-24 LCD
Matrix Orbital MX2/MX3/MX6 Series
Matrix Orbital MX4/MX5 Series LCD
QVS USC-1000
RATOC Systems REX-USB60F
Robot Electronics USB to I2C Communications Module
Sealevel Systems USB-Serial adapter
SIIG US2308 Serial
Telldus Tellstick and Tellstick Duo
VScom USB-COM Mini
SEE ALSO
tty(4), ucom(4), usb(4)
HISTORY
The uftdi driver appeared in NetBSD 1.5.
BSD
October 18, 2012 BSD