Sponsored Content
Top Forums Shell Programming and Scripting Write with a look for timestamps Post 302919961 by Board27 on Monday 6th of October 2014 05:07:15 AM
Old 10-06-2014
Write with a look for timestamps

hello

i'm using SOX to generate a spectrogram from a wave file with the command :

Code:
#sox file.wav -n spectrogram

is there a way to create a spectrogram using the same command but reading file timestamps instead of the namefile.wav , since name is changing every 4 hours? (it's saved with cron at /direxample/test-$(date -v +\%H\%M).wav

Thanks for help!

Regards
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Unix timestamps

Can someone help me with a Unix or perl script to convert the unix timestamps to human readable format? Any help will be highly appreciated... (3 Replies)
Discussion started by: hamsasal
3 Replies

2. Solaris

Difference between two timestamps

I'm writting a script to find the difference between two timestamp. One field i get on delivery time of the file like 07:17 AM and other is my SLA time 06:30 AM I need to find the difference between these two time (time exceeded to meet SLA). Need some suggestions. (8 Replies)
Discussion started by: raman1605
8 Replies

3. Shell Programming and Scripting

timestamps

Hello! I have the following problem. I read a file using perl, each line of this file has the fllowing format. 14/4/2008 8:42:03 πμ|10800|306973223399|4917622951117|1||1259|1|126|492|433||19774859454$ Th first field is the timestamp and the second field is the offset in seconds. How can... (1 Reply)
Discussion started by: chriss_58
1 Replies

4. Shell Programming and Scripting

Arithmetic on timestamps

Hi Friends, please advise on shell script to add two time stamps for example : a=12:32 b=12:00 c=a+b=00:32 please help me to find shell script to add to two time stamps, as i need to convert time from EST to GMT or SST to prepare status of jobs in unix and to specify estimated time to... (3 Replies)
Discussion started by: balireddy_77
3 Replies

5. IP Networking

read/write,write/write lock with smbclient fails

Hi, We have smb client running on two of the linux boxes and smb server on another linux system. During a backup operation which uses smb, read of a file was allowed while write to the same file was going on.Also simultaneous writes to the same file were allowed.Following are the settings in the... (1 Reply)
Discussion started by: swatidas11
1 Replies

6. Shell Programming and Scripting

Compare Timestamps

Hi! Long time reader first time registered user and poster. I've picked up some times and tricks and I'm at a dead end... I've parsed a log file for duplicates and printed only the two fields I need (duplicate entry and time stamp). My question is, with this output, how would I script... (2 Replies)
Discussion started by: rexpokinghorn
2 Replies

7. UNIX for Dummies Questions & Answers

Compare 2 timestamps

Hi, i have current timestamp, lets say "12:02:45" in an variable (var1) and another timestamp "08:30:00" fetched from table in another variable2 (var2). How do i compare 2 timestamps in unix shell scripting. if var 1 > var 2 then echo message. Thanks in advance. (3 Replies)
Discussion started by: prasannarajesh
3 Replies

8. Shell Programming and Scripting

Help with touch and timestamps

Hello fellow Unix geeks, I have been given a very urgent assignment in my office on writing a particular Shell script but I'm very much new to it.I would appreciate any help from you on solving this problem--which might seem very trivial to you. The Unix flavour is a Sun Solaris one..(not... (6 Replies)
Discussion started by: Digjoy83
6 Replies

9. Shell Programming and Scripting

Comparing two timestamps

Hi all!!, I'm using Ksh and working on Linux. I want to compare two timestamps, timestamp1 and timestamp2. Until, timestamp1 is lesser than timestamp2, i want to do something, lets say print something. The code i have written is: a=`date +%H:%M:%S` b=`date +%H:%M:%S -d" 1... (1 Reply)
Discussion started by: Jayaraman
1 Replies

10. Shell Programming and Scripting

Write Linux script to convert timestamps older than 1.1.1970 to 1.1.1980

I am having problems because some of my files have timestamps that are earlier that 1.1.1970, the Unix start of time convention. So I would like to write a script that finds all files in home folder and subfolders with timestamps earlier than 1.1.1970 and converts them to 1.1.1980. I... (3 Replies)
Discussion started by: francus
3 Replies
Bio::Graphics::Glyph::spectrogram(3pm)			User Contributed Perl Documentation		    Bio::Graphics::Glyph::spectrogram(3pm)

NAME
Bio::Graphics::Glyph::spectrogram - The "spectrogram" glyph SYNOPSIS
See L<Bio::Graphics::Panel>, L<Bio::Graphics::Glyph> and L<Bio::Graphics::Browser::Plugin::Spectrogram> DESCRIPTION
This glyph is designed to draw DNA spectrograms for the Spectrogram plugin. It is not meant to be used as a standalone glyph and has few public options. Most of the glyph's behavior is controlled via the spectrogram plugin. The glyph expects unaggregated 1D spectrogram features, each of which is a vertical column, with one row for each integer frequency. The number of frequencies is controlled by the window size and/or the Spectrogram plugin. The width of the feature corresponds to the size of the overlap between adjacent windows. The values for each frequency are in four channels, one for each base. The color of each row ("spot") represents the dominant base(s) and the intensity represents the magnitude of the signal at that frequency The entire 2D spectrogram is a series of unaggregated, unbumped 1D spectrogram features. The spectrogram glyph assigns colors using the HSV color space, where an angular coordinate for hue is assigned to each base (G yellow [60]; A blue [240]; C green [120]; T red[0/360]). The saturation value is fixed at the maximum of 100 and the brightness value is scaled according to the magnitude for each frequency, ranging from black to the pure hue. The hue is determined in one of two ways: If the signal for one base is dominant (> 50% of total for the four channels) the angular coordinate for that base is used. The brightness is calculated using the total signal from all four channels. If no base has a dominant signal, the weighted average angular coordinate is calculated using the relative contribution from each channel. The brightness is calculated from the total signal from all four channels. The y-axis labels require at least 40 pixels of left-padding. They will be truncated if less than 40 of padding is specified in the configuration file. OPTIONS The following standard options are accepted: Option Description Default ------ ----------- ------- -height Height of glyph calculated -bump Whether to bump features off The following glyph-specific options are also used: -win window size used to calculate calculated the spectrogram values BUGS
Please report them. AUTHOR
Sheldon McKay <mckays@cshl.org>. Copyright (c) 2006 Cold Spring Harbor Laboratory This package and its accompanying libraries is free software; you can redistribute it and/or modify it under the terms of the GPL (either version 1, or at your option, any later version) or the Artistic License 2.0. Refer to LICENSE for the full license text. In addition, please see DISCLAIMER.txt for disclaimers of warranty. perl v5.14.2 2012-02-20 Bio::Graphics::Glyph::spectrogram(3pm)
All times are GMT -4. The time now is 09:37 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy