Sponsored Content
Top Forums Shell Programming and Scripting Zipping files by numeric name range Post 302844218 by enwood on Saturday 17th of August 2013 09:43:40 AM
Old 08-17-2013
Yes, Steve, it does the job I needed, allowing me to pull specific ranges of files.

It also has the added benefit of reporting which files in the range are missing, because it will complain when one is missing:

Code:
cp: cannot stat `instruments/132479.pdf': No such file or directory
cp: cannot stat `instruments/132480.pdf': No such file or directory
cp: cannot stat `instruments/132481.pdf': No such file or directory
cp: cannot stat `instruments/132482.pdf': No such file or directory
cp: cannot stat `instruments/132483.pdf': No such file or directory

This has also been very helpful to know.

I really appreciate your time,
Tim

Last edited by Scott; 08-17-2013 at 11:12 AM.. Reason: Code tags
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

numeric range comparisons

I have two files.And a sort of matrix analysis. Both files have a string followed by two numbers: File 1: A 2 7 B 3 11 C 5 10 ...... File 2: X 1 10 Y 3 5 Z 5 9 What I'd like to do is for each set of numbers in the second file indicate if the first or second number (or both) in... (7 Replies)
Discussion started by: dcfargo
7 Replies

2. UNIX for Dummies Questions & Answers

Zipping files?

how would i zip a file? what does zip mean? (4 Replies)
Discussion started by: trob
4 Replies

3. Shell Programming and Scripting

zipping files

Hi, Is there any difference if files are individually zipped and archived in a directory or if files are moved into archiving directory and zipping that directory. (3 Replies)
Discussion started by: swathich
3 Replies

4. Shell Programming and Scripting

awk to match a numeric range specified by two columns

Hi Everyone, Here's a snippet of my data: File 1 = testRef2: A1BG - 13208 13284 AAA1 - 34758475 34873943 AAAS - 53701240 53715412File 2 = 42MLN.3.bedS2: 13208 13208 13360 13363 13484 13518 13518My awk script: awk 'NR == FNR{a=$1;next} {$1>=a}{$1<=a}{print... (5 Replies)
Discussion started by: heecha
5 Replies

5. Shell Programming and Scripting

Help with zipping files

Hi, I have come across a requirement in which I need to zip files. This is fine but the requriement has one conditions like below: One .z file can not have more than 10,000 files Now in the directory I have several files liek below: aaa_file_10_00001.txt aaa_file_10_00002.txt... (6 Replies)
Discussion started by: angshuman
6 Replies

6. Shell Programming and Scripting

Count occurences of a numeric string falling in a range

Dear all, I have numerous dat files (1.dat, 2.dat...) containing 500 numeric values each. I would like to count them, based on their range and obtain a histogram or a counter. INPUT: 1.dat 1.3 2.16 0.34 ...... 2.dat 1.54 0.94 3.13 ..... ... (3 Replies)
Discussion started by: chen.xiao.po
3 Replies

7. Programming

Perl : Numeric Range Pattern Matching

hi Experts just wondering if you can help me check a number between a specific range if i have an ip address , how can i say the valid number for ip between 1 to 254 something like this if ($ip ) =~ /.../ { } what the pattern i need to type thanks (3 Replies)
Discussion started by: doubando
3 Replies

8. Shell Programming and Scripting

Awk numeric range match only one digit?

Hello, I have a text file with lines that look like this: 1974 12 27 -0.72743 -1.0169 2 1.25029 1974 12 28 -0.4958 -0.72926 2 0.881839 1974 12 29 -0.26331 -0.53426 2 0.595623 1974 12 30 7.71432E-02 -0.71887 3 0.723001 1974 12 31 0.187789 -1.07114 3 1.08748 1975 1 1 0.349933 -1.02217... (2 Replies)
Discussion started by: meridionaljet
2 Replies

9. Shell Programming and Scripting

Generate Regex numeric range with specific sub-ranges

hi all, Say i have a range like 0 - 1000 and i need to split into diffrent files the lines which are within a specific fixed sub-range. I can achieve this manually but is not scalable if the range increase. E.g cat file1.txt Response time 2 ms Response time 15 ms Response time 101... (12 Replies)
Discussion started by: varu0612
12 Replies

10. UNIX for Beginners Questions & Answers

Find and removing the old files and zipping the files using shell script

Hi, I am trying to removing the old files which were older than 10 days and same g zipping the files using the shell script. script was return as follows. find /jboss7_homes/JBOSS7/SKYLIV??/SKYLIV??_CRM/jboss-eap-7.0/standalone/log -mtime +10 -type f | xargs rm -f find /cer_skyliv??/log... (6 Replies)
Discussion started by: venkat918
6 Replies
open_jtalk(1)						      General Commands Manual						     open_jtalk(1)

NAME
open_jtalk -- Japanese TTS system SYNOPSIS
open_jtalk [options] [infile] DESCRIPTION
This manual page documents briefly the open_jtalk command. This manual page was written for the Debian distribution because the original program does not have a manual page. Instead, it has docu- mentation in the GNU Info format; see below. open_jtalk is a program that synthesize speech waveform from Japanese texts. It uses HMMs trained by the HMM-based speech synthesis system (HTS). OPTIONS
A summary of options is included below. -x dir dictionary directory -td tree decision tree files for state duration -tm tree Show version of program. -tf tree decision tree files for Log F0 -tl tree decision tree files for low-pass filter -md pdf model files for state duration -mm pdf model files for spectrum -mf pdf model files for Log F0 -ml pdf model files for low-pass filter -dm win window files for calculation delta of spectrum -df win window files for calculation delta of Log F0 -dl win window files for calculation delta of low-pass filter -ow s filename of output wav audio (generated speech) -ot s filename of output trace information -s i sampling frequency [16000][1--48000] -p i frame period (point) [80][1--] -a f all-pass constant [0.42][0.0--1.0] -g i gamma = -1 / i (if i=0 then gamma=0) [0][0--] -b f postfiltering coefficient [0.0][-0.8--8.0] -l regard input as log gain and output linear one (LSP) -u f voiced/unvoiced threshold[0.5][0.0--1.0] -em tree decision tree files for GV of spectrum -ef tree decision tree files for GV of Log F0 -el tree decision tree files for GV of low-pass filter -cm pdf filenames of GV for spectrum -cf pdf filenames of GV for Log F0 -cl pdf filenames of GV for low-pass filter -jm f weight of GV for spectrum [1.0][0.0--2.0] -jf f weight of GV for Log F0 [1.0][0.0--2.0] -jl f weight of GV for low-pass filter [1.0][0.0--2.0] -k tree GV switch -z i audio buffer size [1600][0--48000] infile text file option '-d' may be repeated to use multiple delta parameters. generated spectrum, log F0, and low-pass filter coefficient sequences are saved in natural endian, binary (float) format. EXAMPLE
If you installed hts-voice-nitech-jp-atr503-m001 in the current directory, the following command let you make a voice file from input.txt: % open_jtalk -s 48000 -p 240 -a 0.55 -td tree-dur.inf -tm tree-mgc.inf -tf tree-lf0.inf -tl tree-lpf.inf -md dur.pdf -mm mgc.pdf -mf lf0.pdf -ml lpf.pdf -dm mgc.win1 -dm mgc.win2 -dm mgc.win3 -df lf0.win1 -df lf0.win2 -df lf0.win3 -dl lpf.win1 -em tree-gv-mgc.inf -ef tree-gv-lf0.inf -cm gv-mgc.pdf -cf gv-lf0.pdf -k gv-switch.inf -ow output.wav -x dic_dir input.txt AUTHOR
This manual page was written by Koichi Akabe vbkaisetsu@gmail.com for the Debian system (and may be used by others). Permission is granted to copy, distribute and/or modify this document under the terms of the GNU General Public License, Version 2 any later version published by the Free Software Foundation. On Debian systems, the complete text of the GNU General Public License can be found in /usr/share/common-licenses/GPL. open_jtalk(1)
All times are GMT -4. The time now is 01:17 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy