07-01-2011
Post sample input and desired output please.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hello,
I have a file which has a range of date like:
00:00 test
00:01 test2
00:02 test3
00:03 test4
00:04 test5
00:05 test6
Using input (stdin) i would like to parse the data 00:01 to 00:04. The output file should be like this:
00:01 test2
00:02 test3
00:03 test4
00:04 test5
... (5 Replies)
Discussion started by: BufferExploder
5 Replies
2. Shell Programming and Scripting
I am having a log file in which i need a range of data from specific date range.
$cat my.log
Jan 07 15:39:03 N/A _M_LocalDirectory listFiles(): listing files from dir
Jan 07 15:39:03 N/A _w_fm_log:_f_Push() _w_fm_log_export_ftppush(): Files f
Jan 07 05:58:35 N/A _w_fm_log_autoexport ... (6 Replies)
Discussion started by: posix
6 Replies
3. UNIX for Dummies Questions & Answers
I was looking at the examples that show how to fit data using gnuplot (ex: gnuplot / misc (2E)) but I can't find a place that shows what to do if I have ranges for the x and y error bars. I tried the common sense:
gnuplot> fit f(x) "data.txt" using 3:6:4:5:7:8 via a,b
... (8 Replies)
Discussion started by: cosmologist
8 Replies
4. UNIX for Dummies Questions & Answers
Hi I am trying to fit my histogram data with a gaussian model and am encountering two problems:
1. I can't seem to fit the histogram data with a model
fit y(x) 'bin.txt' using 2:xtic(1) via a,b,c (error: need 2 to 7 using specs)
2. Even when I manually guess the correct parameters for my fit and... (1 Reply)
Discussion started by: goffinj
1 Replies
5. Shell Programming and Scripting
Hi,
I have one file, say file 1, that has data like below where 19900107 is the date,
19900107 12 144 129 0.7380047
19900108 12 168 129 0.3149017
19900109 12 192 129 3.2766666E-02
... (3 Replies)
Discussion started by: Wynner
3 Replies
6. UNIX for Dummies Questions & Answers
Hi there I need to create 1 line pipe that outputs list of files whose second character is digit in reverse order (file is a directory and called /tmp)the way I did
ls /tmp | grep '^.]*' | sort -r
dunno it does not seem working. I tried to do it with another directory that I am sure contain a... (8 Replies)
Discussion started by: FUTURE_EINSTEIN
8 Replies
7. Shell Programming and Scripting
I have a data in a file called SCHED which has 5 columns: sched no, date, time, place and remarks. The image is shown below.
http://dl.dropbox.com/u/54949888/Screenshot%20from%202013-01-02%2002%3A42%3A25.png
Now, I want to display only the schedules which fall under a certain date range which... (2 Replies)
Discussion started by: angilulu
2 Replies
8. Shell Programming and Scripting
Hi All,
I have the file in following format. I need to change column 16 and column 17 for those lines which has atleast one numerical digit in column 2 , with the exception on SUPP1
Input file :
S00005615|1044|0|0.00|0|0.00| |112|-30|28.1|0|0| |20130331|220.2|2|3|... (2 Replies)
Discussion started by: nua7
2 Replies
9. Shell Programming and Scripting
Hi
I want to get all numbers if number range is given as input.
Eg:
INPUT FILE
100-105
107
108-112
OUTPUT REQUIRED:
100 101 102 103 104 105
107
108 109 110 111 112
How can I do it using shell? :confused:
Thanks in advance. (11 Replies)
Discussion started by: dashing201
11 Replies
10. Shell Programming and Scripting
Input File:
2000 3
1998 2
1997 2
1994 1
1991 1
1989 1
1987 2
1986 2
1985 1
1984 1
.
.
10 277256
9 278274
8 282507
7 284837
6 287066
5 292967 (4 Replies)
Discussion started by: perl_beginner
4 Replies
LEARN ABOUT CENTOS
afseekframe
AFSEEKFRAME(3) AFSEEKFRAME(3)
NAME
afSeekFrame, afTellFrame - update or access the current sample frame position for a track in an audio file
SYNOPSIS
#include <audiofile.h>
AFframecount afSeekFrame(AFfilehandle file, int track,
AFframecount frameOffset);
AFframecount afTellFrame(AFfilehandle file, int track);
PARAMETERS
file is a valid audio file handle created by afOpenFile(3).
track identifies an audio track within the file. track is always AF_DEFAULT_TRACK for all currently supported audio file formats.
frameOffset is a sample frame offset. Valid sample frame offsets must be greater than or equal to zero and strictly less than the number of
sample frames contained within the specified audio track. The special value -1 is also allowed.
DESCRIPTION
afSeekFrame moves the logical file position for a specified audio track to a desired sample frame location. If frameOffset is -1,
afSeekFrame will not modify the current file offset and will instead return the current file position.
afTellFrame returns current file position in sample frames.
RETURN VALUE
On success, afSeekFrame and afTellFrame will return the current file position as measured in sample frames from the start of the audio
track. On failure, afSeekFrame and afTellFrame will return the value -1.
ERRORS
The following errors can be generated by afSeekFrame or afTellFrame:
AF_BAD_FILEHANDLE
file does not represent a valid file handle.
AF_BAD_TRACK
track does not identify a valid track.
AF_BAD_LSEEK
A call to lseek failed.
AUTHOR
Michael Pruett <michael@68k.org>
Audio File Library 0.3.6 03/06/2013 AFSEEKFRAME(3)