MSYSというLinaxを環境windowsで行うアプリケーションで実行しているのですが、エラーが出ます
$ sh wav2raw.sh wav2raw.sh: line 48: onintr: command not found wav2raw.sh: line 50: syntax error near unexpected token `(' wav2raw.sh: line 50: `set path = ( /usr/local/SPTK/bin $path )'
宜しくお願い致します。
wav2raw.shの中身です。
wav2raw
147行コメント文省略 2#!csh -f 3onintr clean 4 5set path = ( /usr/local/SPTK/bin $path ) 6set sptkver = '3.5' 7set cvsid = '$Id: wav2raw.in,v 1.10 2011/12/19 06:00:35 mataki Exp $' 8 9 10set cmnd = $0 11set cmnd = $cmnd:t 12 13set file 14set flagfile = 0 15 16set directory 17set flagdirectory = 0 18 19 20set swab = 0 21set normalization = 0 22set normalization_all = 0 23set OutputType = s 24set OutMaxVal = 32767 25set data_position 26set READfmt = 0 27set ENTERdatachunk = 0 28 29@ i = 0 30while ($i < $#argv) 31 @ i++ 32 switch ($argv[$i]) 33 case -swab: 34 set swab = 1 35 breaksw 36 case +c: 37 set OutputType = c 38 set OutMaxVal = 127 39 breaksw 40 case +s: 41 set OutputType = s 42 set OutMaxVal = 32767 43 breaksw 44 case +i3: 45 set OutputType = i3 46 set OutMaxVal = 8388067 47 breaksw 48 case +i: 49 set OutputType = i 50 set OutMaxVal = 2147483647 51 breaksw 52 case +l: 53 set OutputType = l 54 set OutMaxVal = 2147483647 55 breaksw 56 case +C: 57 set OutputType = C 58 set OutMaxVal = 255 59 breaksw 60 case +S: 61 set OutputType = S 62 set OutMaxVal = 65535 63 breaksw 64 case +I3: 65 set OutputType = I3 66 set OutMaxVal = 16776135 67 breaksw 68 case +I: 69 set OutputType = I 70 set OutMaxVal = 4294967296 71 breaksw 72 case +L: 73 set OutputType = L 74 set OutMaxVal = 4294967296 75 breaksw 76 case +f: 77 set OutputType = f 78 set OutMaxVal = 1 79 breaksw 80 case +d: 81 set OutputType = d 82 set OutMaxVal = 1 83 breaksw 84 case +a: 85 set OutputType = a 86 breaksw 87 case -d: 88 @ i++ 89 set directory = $argv[$i] 90 set flagdirectory = 1 91 if ( ! -d $argv[$i] ) then 92 echo2 "${cmnd}: Can't find directory "'"'"$directory"'"'" \!" 93 set exit_status = 1 94 goto usage 95 endif 96 breaksw 97 case -n: 98 set normalization = 1 99 breaksw 100 case -N: 101 set normalization = 1 102 set normalization_all = 1 103 breaksw 104 case -h: 105 set exit_status = 0 106 goto usage 107 breaksw 108 default: 109 set file = ( $file $argv[$i] ) 110 set flagfile = 1 111 if ( ! -f $argv[$i] ) then 112 echo2 "${cmnd}: Can't open file "'"'"$file"'"'" \!" 113 set exit_status = 1 114 goto usage 115 endif 116 breaksw 117 endsw 118end 119 120goto main
以下文字数の都合により省略、申しわけございません。
wav2raw.shの中身も提示してもらえませんか。

回答2件
あなたの回答
tips
プレビュー