Sponsored Content
Top Forums Shell Programming and Scripting awk script processing data from 2 files Post 302460567 by radoulov on Thursday 7th of October 2010 04:45:20 AM
Old 10-07-2010
Quote:
So, for example I would do for the first measurement (that is on the second line in samples.txt, since the 1st line only tells me when measurements start):
a=18.4*(906.43-903.0-0)
b=(906.43-903.0-0)

Then for the second:
a+=17.5*(912.7-906.43-2)
b+=(912.7-906.43-2)
Where the 2 in 912.7-906.43-2 comes from?
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

single output of awk script processing multiple files

Helllo UNIX Forum :) Since I am posting on this board, yes, I am new to UNIX! I read a copy of "UNIX made easy" from 1990, which felt like a making a "computer-science time jump" backwards ;) So, basically I have some sort of understanding what the basic concept is. Problem Description:... (6 Replies)
Discussion started by: Kasimir
6 Replies

2. Shell Programming and Scripting

Help with data processing, maybe awk

I have a file, first 5 columns are very normal, like "1107",106027,71400,"Y","BIOLOGY",, however, the 6th columns, the user can put comments, anything, just any characters, like new line, double quote, single quote, whatever from the keyboard, like"Please load my previous SOM597G course content in... (3 Replies)
Discussion started by: freelong
3 Replies

3. Shell Programming and Scripting

Processing files using awk

Hi I have files in our UNIX directory like the below -rw-r--r-- 1 devinfo devsupp 872 Sep 14 02:09 IMGBTREE27309_12272_11_1_0_FK.idx0 -rw-r--r-- 1 devinfo devsupp 872 Sep 14 02:09 IMGBTREE27309_12272_11_0_0_PK.idx0 -rw-r--r-- 1 devinfo devsupp 432 Sep 14... (7 Replies)
Discussion started by: rbmuruga
7 Replies

4. Shell Programming and Scripting

Perl script required for processing the data

I have following result.log file (always has 2 lines) which I need to process, cat result.log name.cmd.method,"result","abc","xyz"; name="hello,mine.12345,"&"tree"&" xyz "&" tree "&" xyz", data="way,"&" 1"&"rate-me"&"1"&"rate-me",str="",ret=""; now I need to extract the strings/data as... (4 Replies)
Discussion started by: perlDiva
4 Replies

5. Shell Programming and Scripting

Data processing using awk

Hello, I have some bitrate data in a csv which is in an odd format and is difficult to process in Excel when I have thousands of rows. Therefore, I was thinking of doing this in bash and using awk as the primary application except that due to its complication, I'm a little stuck. ... (24 Replies)
Discussion started by: shadyuk
24 Replies

6. Programming

awk processing / Shell Script Processing to remove columns text file

Hello, I extracted a list of files in a directory with the command ls . However this is not my computer, so the ls functionality has been revamped so that it gives the filesizes in front like this : This is the output of ls command : I stored the output in a file filelist 1.1M... (5 Replies)
Discussion started by: ajayram
5 Replies

7. Shell Programming and Scripting

awk processing of variable number of fields data file

Hy! I need to post-process some data files which have variable (and periodic) number of fields. For example, I need to square (data -> data*data) the folowing data file: -5.34281E-28 -3.69822E-29 8.19128E-29 9.55444E-29 8.16494E-29 6.23125E-29 4.42106E-29 2.94592E-29 1.84841E-29 ... (5 Replies)
Discussion started by: radudownload
5 Replies

8. Shell Programming and Scripting

Converting text files to xls through awk script for specific data format

Dear Friends, I am in urgent need for awk/sed/sh script for converting a specific data format (.txt) to .xls. The input is as follows: >gi|1234|ref| Query = 1 - 65, Target = 1677 - 1733 Score = 8.38, E = 0.6529, P = 0.0001513, GC = 46 fd sdfsdfsdfsdf fsdfdsfdfdfdfdfdf... (6 Replies)
Discussion started by: Amit1
6 Replies

9. Shell Programming and Scripting

Passing multiple files to awk for processing in bash script

Hi, I'm using awk command in bash script. I'm able to pass multiple files to awk for processing.The code i can use is as below(sample code) #!/bin/bash awk -F "," 'BEGIN { ... ... ... }' file1 file2 file3 In the above code i'm passing the file names manually and it is fine till my... (7 Replies)
Discussion started by: shree11
7 Replies

10. UNIX for Beginners Questions & Answers

Processing files one by one using data from pipe

Hi guys, I receive a list from pipe (with fixed number of lines) like this: name1 name2 name3 And in my ./ folder I have three files: 01-oldname.test 02-someoldname.test 03-evenoldername.test How to rename files one by one using while read? Desired result: 01-name1.test 02-name2.test... (3 Replies)
Discussion started by: useretail
3 Replies
comet(7)						 Miscellaneous Information Manual						  comet(7)

NAME
comet - PowerStorm 4D10T, Elsa GLoria, IntraServer Combo device driver SYNOPSIS
config_driver comet pseudo-device ws config_driver pci callout after_c "../bin/mkdata pci" DESCRIPTION
The PowerStorm 4D10T, Elsa GLoria, and IntraServer Combo cards are inexpensive graphics accelerators based on 3DLabs' Permedia2 graphics chip. Supported cards offer up to 8MB of video memory and a large range of video formats. Hardware Variants The following three configurations are supported: 8 MB of video memory. PCI Vend_ID: 0x104c, Dev_ID: 0x3d07, Sub_Vend_ID: 0x1011, Sub_Dev_ID: 0x4d10. 8 MB of video memory. PCI Vend_ID: 0x104c, Dev_ID: 0x3d07, Sub_Vend_ID: 0x1048. Combination card with PCI-PCI bridge chip, P2 graphics device, and one or two ethernet controllers. The graphics component has 4MB of video memory. PCI Vend_ID: 0x3d3d, Dev_ID: 0x0009. Display Resolution The following table details the display resolutions that are supported by these cards. Setting the resolution is a task performed by the X Server and the associated documentation should be read for the particulars of the mechanisms used. Before setting a video mode, consult the documentation for the monitor attached to the graphics adapter to verify compatibility with the desired refresh rate and resolution. Monitors can be damaged to the point of doing physical damage to the monitor, other objects, and humans. Hvis Vvis Fv Fh Fp Htot Hfp Hsyn Hbp Vtot Vfp Vsyn Vbp 640 480 60 29.82 23.86 800 16 64 80 497 1 3 13 640 480 65 32.31 25.84 800 16 64 80 497 1 3 13 640 480 70 34.79 27.83 800 16 64 80 497 1 3 13 640 480 75 37.65 30.72 816 24 64 88 502 1 3 18 640 480 85 42.92 35.71 832 32 64 96 505 1 3 21 800 600 60 37.68 39.79 1056 40 128 88 628 1 4 23 800 600 65 40.82 43.11 1056 40 128 88 628 1 4 23 800 600 70 43.96 46.42 1056 40 128 88 628 1 4 23 800 600 75 46.88 49.50 1056 16 80 160 625 1 3 21 800 600 85 53.64 56.21 1048 32 64 152 631 1 3 27 1024 768 60 48.36 65.00 1344 24 136 160 806 4 6 28 1024 768 65 52.39 70.41 1344 24 136 160 806 4 6 28 1024 768 70 56.42 75.83 1344 24 136 160 806 4 6 28 1024 768 75 60.00 78.72 1312 16 96 176 800 1 3 28 1024 768 85 68.68 94.50 1376 48 96 208 808 1 3 36 1152 870 60 54.36 86.98 1600 64 128 256 906 1 3 32 1152 870 65 58.59 94.22 1600 64 128 256 906 1 3 32 1152 870 70 63.42 101.47 1600 64 128 256 906 1 3 32 1152 870 75 67.95 108.72 1600 64 128 256 906 1 3 32 1152 870 85 77.61 122.31 1576 64 128 232 913 1 3 39 1152 900 60 56.58 85.10 1504 32 128 192 943 2 8 33 1152 900 65 61.30 92.19 1504 32 128 192 943 2 8 33 1152 900 70 66.01 99.28 1504 32 128 192 943 2 8 33 1152 900 75 70.73 106.37 1504 32 128 192 943 2 8 33 1152 900 85 80.16 120.55 1504 32 128 192 943 2 8 33 1280 1024 60 63.96 107.96 1688 48 112 248 1066 1 3 38 1280 1024 65 69.10 117.19 1696 32 112 224 1063 3 3 33 1280 1024 70 74.41 126.20 1696 32 160 224 1063 3 3 33 1280 1024 75 79.95 134.96 1688 16 144 248 1066 1 3 38 1280 1024 85 91.12 157.46 1728 48 160 240 1072 1 3 44 1600 1200 60 75.00 162.00 2160 64 192 304 1250 1 3 46 1600 1200 65 81.25 175.50 2160 64 192 304 1250 1 3 46 1600 1200 70 87.50 189.00 2160 64 192 304 1250 1 3 46 1600 1200 75 93.75 202.50 2160 64 192 304 1250 1 3 46 1600 1280 60 80.28 173.40 2160 64 192 304 1338 1 3 54 1600 1280 65 86.97 187.86 2160 64 192 304 1338 1 3 54 1600 1280 70 93.66 202.21 2160 64 192 304 1338 1 3 54 1600 1280 75 100.35 216.76 2160 64 192 304 1338 1 3 54 1920 1080 60 67.50 159.84 2368 32 144 272 1125 3 3 39 1920 1080 65 73.13 173.16 2368 32 144 272 1125 3 3 39 1920 1080 70 78.75 186.48 2368 32 144 272 1125 3 3 39 1920 1080 75 84.38 199.80 2368 32 144 272 1125 3 3 39 1920 1200 60 75.00 193.80 2584 72 256 336 1250 3 3 44 1920 1200 65 81.25 209.95 2584 72 256 336 1250 3 3 44 1920 1200 70 87.50 226.10 2584 72 256 336 1250 3 3 44 1920 1200 75 93.75 242.25 2584 72 256 336 1250 3 3 44 Table Legend: Hvis - Visible pixels in a line (e.g. width). Vvis - Visible lines in a field (e.g. height). Fv - Vertical refresh rate in Hz. Fh - Horizontal sync pulse frequency in KHz. Fp - Pixel clock frequency in MHz. Htot - Pixel-equivalent duration of the full horizontal scanning period. Hfp - Pixel-equivalent duration of the horizontal front porch. Hsyn - Pixel-equivalent duration of the horizontal sync pulse. Hbp - Pixel-equivalent duration of the horizontal back porch. Vtot - Line-equivalent duration of the full vertical scan- ning period. Vfp - Line-equivalent duration of the vertical front porch. Vsyn - Line-equivalent duration of the vertical sync pulse. Vbp - Line-equivalent duration of the vertical back porch. Device Configuration The comet driver supports up to 15 devices in a single system. Prior releases of the system software supported seven or fewer devices. Other software, such as the X Server or base operating system, may put additional restrictions on the number of units supported. Device Description In PCI-based systems, no more than one VGA device can be configured into the system. The comet cards typically have a jumper or miniature switch to enable and disable VGA operations. MESSAGES
Device driver messages are typically logged to /var/adm/ messages on UNIX systems. Should problems arise, this file should be checked for informational messages. Some messages of interest are: "comet0: %dx%d cursor glyph truncated to hardware limits" The X Server attempted to use a cursor larger than the 64x64 limits of the hardware. Cursor glyph will be displayed incorrectly. Applica- tion should be brought into conformance with X11 expectations. "comet0: Video pixel fifo underflowed during previous video format" The flow of pixel data from video memory to the video DACs was exhausted possibly causing visual artifacts on the display. It is permissi- ble and expected that this may occur once shortly after booting when the device hasn't been configured. But otherwise, this should be reported to your technical support organization, including in the description the video format currently in use as well as the application running at the time. FILES
The driver module, built into a kernel with the doconfig command. RELATED INFORMATION
Xdec(1X) delim off comet(7)
All times are GMT -4. The time now is 04:34 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy