Sponsored Content
Full Discussion: improve this?
Top Forums Shell Programming and Scripting improve this? Post 80089 by blowtorch on Wednesday 3rd of August 2005 08:31:49 AM
Old 08-03-2005
Perderabo,
I know that your script is blinding quick (literally.. over a 1000 times faster). But you seem to be using some arithmetic that fits for your date range. Can you explain what exactly you are using?
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Can I improve this script ???

Hi all, Still a newbie and learning as I go ... as you do :) Have created this script to report on disc usage and I've just included the ChkSpace function this morning. It's the first time I've read a file (line-by-bloody-line) and would like to know if I can improve this script ? FYI - I... (11 Replies)
Discussion started by: Cameron
11 Replies

2. UNIX for Dummies Questions & Answers

Improve Performance

hi someone tell me which ways i can improve disk I/O and system process performance.kindly refer some commands so i can do it on my test machine.thanks, Mazhar (2 Replies)
Discussion started by: mazhar99
2 Replies

3. IP Networking

How to improve throughput?

I have a 10Gbps network link connecting two machines A and B. I want to transfer 20GB data from A to B using TCP. With default setting, I can use 50% bandwidth. How to improve the throughput? Is there any way to make throughput as close to 10Gbps as possible? thanks~ :) (3 Replies)
Discussion started by: andrewust
3 Replies

4. AIX

improve sulog

I just wrote a very small script that improves readability on system sulog. The problem with all sulog is there is lack of clarity whether the info you are looking at is the most current. So if you just need a simple soution instead of going thru the trouble of writing a script that rotate logs and... (0 Replies)
Discussion started by: sparcguy
0 Replies

5. UNIX for Dummies Questions & Answers

How to improve the performance of this script?

Hi , i wrote a script to convert dates to the formate i want .it works fine but the conversion is tkaing lot of time . Can some one help me tweek this script #!/bin/bash file=$1 ofile=$2 cp $file $ofile mydates=$(grep -Po '+/+/+' $ofile) # gets 8/1/13 mydates=$(echo "$mydates" | sort |... (5 Replies)
Discussion started by: vikatakavi
5 Replies

6. Shell Programming and Scripting

Improve sftp script

Dear all, I have written two scripts to transfer files to another server outside the company. One is a batch script , and the other script calls the batch script, send the files and archive the file sent. The problem is, that I want to get the list of files which have been uploaded the the... (10 Replies)
Discussion started by: arrals_vl
10 Replies

7. Shell Programming and Scripting

How to improve an script?

Gents. I have 2 different scripts for the same purpose: raw2csv_1 Script raw2csv_1 finish the process in less that 1 minute raw2csv_2 Script raw2csv_2 finish the process in more that 6 minutes. Can you please check if there is any option to improve the raw2csv_2. To finish the job... (4 Replies)
Discussion started by: jiam912
4 Replies

8. Programming

Improve the performance of my C++ code

Hello, Attached is my very simple C++ code to remove any substrings (DNA sequence) of each other, i.e. any redundant sequence is removed to get unique sequences. Similar to sort | uniq command except there is reverse-complementary for DNA sequence. The program runs well with small dataset, but... (11 Replies)
Discussion started by: yifangt
11 Replies

9. Shell Programming and Scripting

Improve script

Gents, Is there the possibility to improve this script to be able to have same output information. I did this script, but I believe there is a very short code to get same output here my script awk -F, '{if($10>0 && $10<=15) print $6}' tmp1 | sort -k1n | awk '{a++} END { for (n in a )... (23 Replies)
Discussion started by: jiam912
23 Replies

10. OS X (Apple)

Noob trying to improve

Hi everyone! This is my first post here, I hope that I will not already be violating any rule! I also would like to apologize in advance as my post will definitely be a noob post... please have patience and faith :rolleyes:! Now that I have set the ground rules :D:D, my objective is trying... (39 Replies)
Discussion started by: Ardzii
39 Replies
fitscheck(1)							   PyFITS 3.0.7 						      fitscheck(1)

NAME
fitscheck - script to detect and fix FITS standards violations SYNOPSIS
fitscheck [OPTION]... [FILE]... DESCRIPTION
fitscheck is a command line script based on pyfits for verifying and updating the CHECKSUM and DATASUM keywords of FITS files. itscheck can also detect and often fix other FITS standards violations. fitscheck facilitates re-writing the non-standard checksums originally gen- erated by pyfits with standard checksums which will interoperate with cfitsio. fitscheck will refuse to write new checksums if the checksum keywords are missing or their values are bad. Use --force to write new check- sums regardless of whether or not they currently exist or pass. Use --ignore-missing to tolerate missing checksum keywords without com- ment. OPTIONS
-h, --help Display terse usage information (help). -k [standard | nonstandard | either | none], --checksum=[standard | nonstandard | either | none] Choose FITS checksum mode or none. Defaults to standard. -w, --write Write out file checksums and/or FITS compliance fixes. -f, --force Do file update even if original checksum was bad. -c, --compliance Do FITS compliance checking, fix if possible. -i, --ignore-missing Ignore missing checksums. -v, --verbose Generate extra output. EXAMPLES
% fitscheck --checksum either --write *.fits Verify and update checksums, tolerating non-standard checksums, updating to standard checksum. % fitscheck --write --force *.fits Write new checksums, even if existing checksums are bad or missing. % fitscheck --compliance *.fits Verify standard checksums and FITS compliance without changing the files. % fitscheck --checksum nonstandard *.fits Verify original nonstandard checksums only. % fitscheck --checksum none --compliance --write *.fits Only check and fix compliance problems, ignoring checksums. % fitscheck *.fits Verify standard interoperable checksums. % fitscheck --checksum none --write *.fits Delete checksum keywords. fitscheck June 2012 fitscheck(1)
All times are GMT -4. The time now is 12:05 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy