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
flipbook(1)						      General Commands Manual						       flipbook(1)

NAME
flipbook - multi-frame editor and viewer derived from drawtool SYNOPSIS
flipbook [-bookgeom] [-slideshow sec] ['X-params'] [file] DESCRIPTION
flipbook is a program derived from idraw/drawtool that supports multi-frame graphic display. The zeroth frame is always visible as the background frame, and in front of it is displayed the current frame (1 thru n). The Frame menu controls the frame display mechanism. The operations are: Menu Item Keyboard Description -------------- -------- ----------- Move Forward ^F move forward one frame Move Backward ^B move backward one frame Goto First Frame move to the first frame Goto Last Frame move to the last frame New Forward F create new frame in front of the current frame and make it the current frame New Backward B create new frame in back of the current frame and make it the current frame Copy Forward X copy current frame in front of itself Copy Backward Y copy current frame in back of itself Delete D delete current frame (the zeroth frame can never be deleted) By default a flipbook document is positioned on the first frame when opened (if one exists). "Move Backward" can be used to move to the background frame when positioned on the first frame. "Move Forward" then returns to the first frame. The New command creates a document with only a background frame. The "New After" command can then be used to initialize the first frame ("New Before" does not work when the current frame is the background frame). flipbook save/restores its documents with a document format specific to flipbook (and possibly programs derived from flipbook). Idraw for- mat drawings can be imported via the "Import Graphic" command (under the File menu). The rest of the flexibile import mechanism of draw- tool is supported as well. "Export Graphic" exports currently selected graphics in idraw or drawtool format. The Print command (under the File menu) generates a multi-page Postscript document, one page per frame except for the zeroth frame which is always the background. OPTIONS
"-bookgeom" brings up the flipbook in landscape mode, with a 906 by 700 pixel page size. Useful for viewing illustrated books prepared in this mode. "-slideshow sec" continuously plays the contents of a flipbook file with "sec" delay between frames (currently only available when built with ACE). Also see "-help" for more options, and the comdraw, drawtool, and idraw man pages. SEE ALSO
drawtool, idraw WEB PAGE
http://www.ivtools.org/ivtools/flipbook.html flipbook(1)
All times are GMT -4. The time now is 04:32 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy