Sponsored Content
Full Discussion: Find x and print its record
Top Forums Shell Programming and Scripting Find x and print its record Post 302553105 by StudentServitor on Tuesday 6th of September 2011 07:52:10 PM
Old 09-06-2011
Hi Danmero,

Thanks for your solution, it's is really close to what I need, but...I actually need the line number that the value 0 falls on, in my example it was line #27, the value 0 is is just the criterion if you will.

This list represent points in time (in total 154) within fMRI data, the values in field $1 represent deviations from baseline within those points in time, basically head movement by the subject. The value 0 is significant because it represents no such deviations from baseline. The line number that that 0 falls on is important because it represents a specific point within the temporal sequence of the fMRI scan in which the subject wasn't moving. I take that value (the line number) and input it into another program so that it can properly register the entire fMRI dataset. To further complicat things, this 0 value will be different for every subject and every fMRI scan.

Does that help to clarify my problem a bit?
 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Print Full record and substring in that record

I have i got a requirement like below. I have input file which contains following fixed width records. 00000000000088500232007112007111 I need the full record and concatenated with ~ and characters from 1to 5 and concatenated with ~ and charactes from 10 to 15 The out put will be like... (1 Reply)
Discussion started by: ukatru
1 Replies

2. Shell Programming and Scripting

awk - print record with both string1 and string2

How do I use awk to find the records in a file that contains two specific strings? I have tried piping and using awk two times, but I don't know how to do it in one action. (2 Replies)
Discussion started by: locoroco
2 Replies

3. Shell Programming and Scripting

Print all the fields of record using awk

Hi, i want to generate print statement using awk. i have 20+ and 30+ fields in each line Now its priting only first eight fields print statement as output not all. my record is as shown below filename ... (2 Replies)
Discussion started by: raghavendra.nsn
2 Replies

4. UNIX for Dummies Questions & Answers

Print first, second, every nth, and last record

does anyone have an awk one-liner to: print the first line, the second line, then every Nth line, and the last line of a file. Thanks, Kenny. (5 Replies)
Discussion started by: kenneth.mcbride
5 Replies

5. Shell Programming and Scripting

Print first and last line from multiline record

Hi - I'm new to working with multiline records and I'm going nuts trying to do something that seems simple. Input: Tue May 1 14:00 Header Record 1 is valid. Tue May 1 14:00 processing data to 25-Mar-2012 09:00:23.15 Tue May 1 14:03 Header Record 1 is valid. Tue May 1 14:03 processing data... (4 Replies)
Discussion started by: Catullus
4 Replies

6. Shell Programming and Scripting

AWK print initial record and double

I have an initial record 0.018 I would like a script that would for i=0;i<200;i++ print 0.018*1 0.018*2 0.018*3 0.018*4 ... 0.018*200 using newline. (7 Replies)
Discussion started by: chrisjorg
7 Replies

7. Shell Programming and Scripting

Find and remove duplicate record and print list

Gents, I needs to delete duplicate values and only get uniq values based in columns 2-27 Always we should keep the last record found... I need to store one clean file and other with the duplicate values removed. Input : S3033.0 7305.01 0 420123.8... (18 Replies)
Discussion started by: jiam912
18 Replies

8. Shell Programming and Scripting

Help with print out line that have different record in specific column

Input file 1: - 7367 8198 - 8225 9383 + 9570 10353 Input file 2: - 2917 3667 - 3851 4250 + 4517 6302 + 6302 6740 + 6768 7524 + 7648 8170 + 8272 8896 + 8908 9915 - 10010 ... (18 Replies)
Discussion started by: perl_beginner
18 Replies

9. Shell Programming and Scripting

Find key pattern and print selected lines for each record

Hi, I need help on a complicated file that I am working on. I wanted to extract important info from a very huge file. It is space delimited file. I have hundred thousands of records in this file. An example content of the inputfile as below:- ## ID Ser402 Old; 23... (2 Replies)
Discussion started by: redse171
2 Replies

10. Shell Programming and Scripting

Modifying text file records, find data in one place in the record and print it elsewhere

Hello, I have some text data that is in the form of multi-line records. Each record ends with the string $$$$ and the next record starts on the next line. RDKit 2D 15 14 0 0 0 0 0 0 0 0999 V2000 5.4596 2.1267 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 ... (5 Replies)
Discussion started by: LMHmedchem
5 Replies
voxbo(7)							 The VoxBo Manual							  voxbo(7)

NAME
voxbo - general information about the VoxBo toolbox DESCRIPTION
VoxBo is a suite of tools for brain image analysis, especially fMRI analysis and lesion-behavior mapping. VoxBo includes over 100 tools, including many for general-purpose image munging (e.g., vbim(1)), many that implement specific statistical procedures (e.g., vbtmap(1)), and some that would likely be just as useful for non-imaging applications (vbbatch(1)). VoxBo has supported cluster parallel processing since 1998. Although cluster installation is a little tricky, it's worth the effort if you'd like to speed up your analyses by an order of magnitude or two. As of 2010, VoxBo also supports desktop parallel processing on multi-core systems. We do not yet support GPU parallel processing. All VoxBo tools support a common set of file formats. See voxbo-fileformats(7) for more information. AVAILABILITY
Pre-built VoxBo binaries are available for Linux, OSX, and Cygwin, and via the NeuroDebian project (neuro.debian.net) for Debian deriva- tives. CAVEATS
VoxBo is provided with no warranty whatsoever. AUTHOR
For an historical roster of the VoxBo development team, visit www.voxbo.org. SEE ALSO
For detailed help on any VoxBo command-line program, run it with no arguments. For graphical programs, use the -h flag. For more help with VoxBo, for information about the mailing list, or to report bugs, visit the web site at www.voxbo.org. For information about VoxBo file formats, see voxbo-fileformats(7). VoxBo January, 2011 (v1.8.5) voxbo(7)
All times are GMT -4. The time now is 04:14 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy