07-04-2012
The problem, really, is that you have a huge amount of data, not a slow program. How big are your records, really?
I haven't heard perl suggested to increase speed before. I don't think using an awk regex instead of a simple = is going to make it faster, either...
The egrep solution might be worth a shot.
This User Gave Thanks to Corona688 For This Post:
9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
If I just wanted to get andred08 from the following ldap dn
would I be best to use AWK or CUT?
uid=andred08,ou=People,o=example,dc=com
It doesn't make a difference if it's just one ldap search I am getting it from but when there's a couple of hundred people in the group that retruns all... (10 Replies)
Discussion started by: dopple
10 Replies
2. UNIX for Advanced & Expert Users
I am processing some terabytes of information on a computer having 8 processors (each with 4 cores) with a 16GB RAM and 5TB hard drive implemented as a RAID. The processing doesn't seem to be blazingly fast perhaps because of the IO limitation.
I am basically running a perl script to read some... (13 Replies)
Discussion started by: Legend986
13 Replies
3. UNIX for Dummies Questions & Answers
i)wc -c/etc/passwd|awk'{print $1}'
ii)ls -al/etc/passwd|awk'{print $5}' (4 Replies)
Discussion started by: karthi_g
4 Replies
4. UNIX and Linux Applications
Hi -- I have the following SQL query in my UNIX shell script -- but the subquery in the second section is very slow. I know there must be a way to do this with a union or something which would be better. Can anyone offer an alternative to this query? Thanks.
select
count(*)
from
... (2 Replies)
Discussion started by: whoknows
2 Replies
5. Shell Programming and Scripting
Hi,
I have a script below for extracting xml from a file.
for i in *.txt
do
echo $i
awk '/<.*/ , /.*<\/.*>/' "$i" | tr -d '\n'
echo -ne '\n'
done
.
I read about using multi threading to speed up the script.
I do not know much about it but read it on this forum.
Is it a... (21 Replies)
Discussion started by: chetan.c
21 Replies
6. Shell Programming and Scripting
Can someone help me edit the below script to make it run faster?
Shell: bash
OS: Linux Red Hat
The point of the script is to grab entire chunks of information that concerns the service "MEMORY_CHECK".
For each chunk, the beginning starts with "service {", and ends with "}".
I should... (15 Replies)
Discussion started by: SkySmart
15 Replies
7. Shell Programming and Scripting
awk "/May 23, 2012 /,0" /var/tmp/datafile
the above command pulls out information in the datafile. the information it pulls is from the date specified to the end of the file.
now, how can i make this faster if the datafile is huge? even if it wasn't huge, i feel there's a better/faster way to... (8 Replies)
Discussion started by: SkySmart
8 Replies
8. Shell Programming and Scripting
I have the below command which is referring a large file and it is taking 3 hours to run. Can something be done to make this command faster.
awk -F ',' '{OFS=","}{ if ($13 == "9999") print $1,$2,$3,$4,$5,$6,$7,$8,$9,$10,$11,$12 }' ${NLAP_TEMP}/hist1.out|sort -T ${NLAP_TEMP} |uniq>... (13 Replies)
Discussion started by: Peu Mukherjee
13 Replies
9. Shell Programming and Scripting
I have nginx web server logs with all requests that were made and I'm filtering them by date and time.
Each line has the following structure:
127.0.0.1 - xyz.com GET 123.ts HTTP/1.1 (200) 0.000 s 3182 CoreMedia/1.0.0.15F79 (iPhone; U; CPU OS 11_4 like Mac OS X; pt_br)
These text files are... (21 Replies)
Discussion started by: brenoasrm
21 Replies
SONIC(1) General Commands Manual SONIC(1)
NAME
sonic - Speech speed manipulator
SYNOPSIS
sonic [OPTION]... inFile outFile
DESCRIPTION
Sonic is used to make wav files of speech faster or slower. The primary advance in sonic is the ability to speed speech up by much more
than 2X, with minimal distortion. However, sonic can be used for both speeding up and slowing down speech files. Additionally, sonic can
change the pitch and volume.
OPTIONS
-c Modify pitch by emulating vocal chords vibrating faster or slower. This causes more distortion than the default pitch scaling, but
sounds more like the same person trying to talk higher or lower. The default pitch changes makes the voice sound like a larger or
smaller person, but introduces little distortion.
-p pitch
Set pitch scaling factor. 1.3 means 30%% higher.
-q Disable all speed-up heuristics, possibly improving the quality slightly. This is mainly used for debugging the speed-up heuris-
tics.
-r rate
Adjust the speed of playback. This sales both the pitch and speed equally.
-s speed
Set speed up factor. 1.0 means no change, 2.0 means 2X faster.
-v scaleFactor
Scale volume by scaleFactor. 1.5 increases by 50%. Clips if the maximum range is exceeded.
EXAMPLES
sonic -s 3.2 book.wav book_fast.wav
The above command would increase the speed of an audio book called book.wav by a factor of 3.2, and write the result in book_fast.wav.
sonic -s 0.5 -v 1.5 spanish.wav spanish_slow.wav
This would slow down the file spanish.wav by a factor of 2, make the volume 50% louder, and write the result to spanish_slow.wav.
sonic -p 2.0 low.wav high.wav
This would make a low voice sound very high pitched.
AUTHOR
Bill Cox waywardgeek@gmail.com Sonic Version 0.1, Copyright 2010, Bill Cox, GPL license
SONIC(1)