Sponsored Content
Top Forums Shell Programming and Scripting script to add numbers is slow Post 302300303 by macsurveyr on Monday 23rd of March 2009 07:57:37 PM
Old 03-23-2009
if we make the WIDTH = 5 and the HEIGHT = 5
then the output is
4 0 1 6 5
4 1 2 7 6
4 2 3 8 7
4 3 4 9 8
4 5 6 11 10
4 6 7 12 11
4 7 8 13 12
4 8 9 14 13
4 10 11 16 15
4 11 12 17 16
4 12 13 18 17
4 13 14 19 18
4 15 16 21 20
4 16 17 22 21
4 17 18 23 22
4 18 19 24 23

which is correct but if the WIDTH = 5000 and the HEIGHT = 5000 then it can take hours to create the output file, and yes, a large output file
 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

My script runs too slow :-(...

Hello experts, I have a series issue in script that result with bad peformence and I wonder if you can assist me. For example I have two files: File-New, size 15Mb. File-Old, size 1Mb. File-New content: a b c k File-Old content: d f a b (0 Replies)
Discussion started by: roybe
0 Replies

2. Shell Programming and Scripting

add numbers in shell script

cat dailyreports | grep "Important list" | awk -F":" '{print $2}' | awk -F" " '{print $1}' hey guys, after running the above combination of cat and awk, i get the below output: 3 4 2 9 now, i need to add these numbers up all in one line. i dont know what to add to that cat and awk one... (2 Replies)
Discussion started by: Terrible
2 Replies

3. Shell Programming and Scripting

Bash script too slow

I have a bash script that will take approx. 130 days to complete. I am trying to grep a list of 1,144 user ID's out of 41 (1 GB each) files. The 41 files were originally one 41 G file, but that was horrendously too slow.:eek: This is my current file: #!/bin/bash for i in `cat... (11 Replies)
Discussion started by: tigta09
11 Replies

4. Shell Programming and Scripting

Slow Perl script: how to speed up?

I had written a perl script to compare two files: new and master and get the output of the first file i.e. the first file: words that are not in the master file STRUCTURE OF THE TWO FILES The first file is a series of names ramesh sushil jonga sudesh lugdi whereas the second file (could be... (4 Replies)
Discussion started by: gimley
4 Replies

5. UNIX for Dummies Questions & Answers

Help with slow KSH script

My script builds a lot of these array lists, then compares their sizes which solves my problem, but runs very slow. :( set -A comboSorted -- $( for x in ${IDs} do nawk -v s=$x ' BEGIN { testPattern="^" s "$" } { if ( $2 ~ testPattern ) { getline;getline; if ($1 == "IMAGE_SIZE") print... (1 Reply)
Discussion started by: nerdcurious
1 Replies

6. Shell Programming and Scripting

Slow Script Execution.

Basically my requirement is to know the total number of free anonymous ports. anonymous port range is 32768- 65535. i wrote a script for that ********************************************** for i in {32768..65535} do netstat -an | grep $i > /dev/null if ... (21 Replies)
Discussion started by: mohtashims
21 Replies

7. Shell Programming and Scripting

Slow down output from dhclient-script to screen

Hi I know the basic about script and sleep processes. However this is more tricky: I would like to run sh -x /sbin/dhclient-script and slow down the output of the script as a whole. How would you do it? I would like to delay output on the screen with 1 second for every line for the output... (3 Replies)
Discussion started by: medium_linux
3 Replies

8. Shell Programming and Scripting

Script to alert about a slow link on the website

Hello all, Currently I am using a script with "curl" to get the an alert if 200 ok would not be grepped.and the link is down. is it possible to get an alert mail if a particular link on a website is not completely down but SLOW?? (0 Replies)
Discussion started by: chirag991
0 Replies

9. Shell Programming and Scripting

Shell script reading file slow

I have shell program as below #!/bin/sh echo ======= LogManageri start ========== #This directory is getting the raw data from remote server Raw_data=/opt/ftplogs # This directory is ready for process the data Processing_dir=/opt/processing_dir # This directory is prcoessed files and... (4 Replies)
Discussion started by: Chenchireddy
4 Replies

10. Shell Programming and Scripting

Improve script - slow process with big files

Gents, Please can u help me to improve this script to be more faster, it works perfectly but for big files take a lot time to end the job.. I see the problem is in the step (while) and in this part the script takes a lot time.. Please if you can find a best way to do will be great. ... (13 Replies)
Discussion started by: jiam912
13 Replies
SPLASHY_CONFIG(1)					 Splashy POSIX boot splash system					 SPLASHY_CONFIG(1)

NAME
Splashy - a user-mode, POSIX and LSB compliant, boot splashing system for UNIX. SYNOPSIS
splashy_config [-h, --help] [-s, --set-theme THEME] [-i, --install-theme THEME.tar.gz] [-r, --remove-theme THEME][--info] [-c, --create-theme [args...]] DESCRIPTION
Splashy displays an image and a progress bar at boot time. splashy_config is used to change Splashy configuration options. OPTIONS
-h, --help Print helps and exits -s, --set-theme THEME Changes current theme to THEME -i, --install-theme THEME.tar.gz Adds THEME to Splashy theme directory -r, --remove-theme THEME Removes THEME from theme directory --info Prints all relevant information from the main Splashy config file -c, --create-theme [args...] Create a theme in an interactive mode if no arguments, else see the extra arguments section below Extra arguments --name NAME Set the NAME of the new Splashy theme --version VERSION Set the VERSION of the new Splashy theme --description DESC Set the DESC of the new Splashy theme --urls URLs Set the related URLs for this theme --author AUTHOR Set the AUTHOR(s) of the new Splashy theme --boot-image PATH Upload the boot image located at the specified PATH --shutdown-image PATH Upload the shutdown image located at the specified PATH --error-image PATH Upload the error image located at the specified PATH --resume-image PATH Upload the resume image located at the specified PATH --suspend-image PATH Upload the suspend image located at the specified PATH --background-width WIDTH Set the WIDTH of the background --background-height HEIGHT Set the HEIGHT of the background --progressbar-x X-POSITION Set the X-POSITION of the progress bar (percentage if the background height and width are not set, else pixel units) --progressbar-y Y-POSITION Set the Y-POSITION of the progress bar (percentage if the background height and width are not set, else pixel units) --progressbar-width WIDTH Set the WIDTH of the progress bar (percentage if the background height and width are not set, else pixel units) --progressbar-height HEIGHT Set the HEIGHT of the progress bar (percentage if the background height and width are not set, else pixel units) --progressbar-red RED Set the RED channel of the progress bar (0->255) --progressbar-green GREEN Set the GREEN channel of the progress bar (0->255) --progressbar-blue BLUE Set the BLUE channel of the progress bar (0->255) --progressbar-alpha ALPHA Set the ALPHA channel of the progress bar (0->255) --progressbar-border-show yes|no Set a border around the progressbar --progressbar-border-red RED Set the RED channel of the border around the progressbar (0->255) --progressbar-border-green GREEN Set the GREEN channel of the border around the progressbar (0->255) --progressbar-border-blue BLUE Set the BLUE channel of the border around the progressbar (0->255) --progressbar-border-alpha ALPHA Set the ALPHA channel of the border around the progressbar (0->255) --progressbar-background-red RED Set the RED channel of the background of the progressbar (0->255) --progressbar-background-green GREEN Set the GREEN channel of the background of the progressbar (0->255) --progressbar-background-blue BLUE Set the BLUE channel of the background of the progressbar (0->255) --progressbar-background-alpha ALPHA Set the ALPHA channel of the background of the progressbar (0->255) --textbox-show yes|no Set a text box --textbox-x X-POS Set the X-POS of the text box (percentage if the background height and width are not set, else pixel units) --textbox-y Y-POS Set the Y-POS of the text box (percentage if the background height and width are not set, else pixel units) --textbox-width WIDTH Set the WIDTH of the text box (percentage if the background height and width are not set, else pixel units) --textbox-height HEIGHT Set the HEIGHT of the text area (percentage if the background height and width are not set, else pixel units) --textbox-red RED Set the RED channel of the text area (0->255) --textbox-green GREEN Set the GREEN channel of the text area (0->255) --textbox-blue BLUE Set the BLUE channel of the text area (0->255) --textbox-alpha ALPHA Set the ALPHA channel of the text area (0->255) --textbox-border-show yes|no Set a border around the text area --textbox-border-red RED Set the RED channel of the border of the text area (0->255) --textbox-border-green GREEN Set the GREEN channel of the border of the text area (0->255) --textbox-border-blue BLUE Set the BLUE channel of the border of the text area (0->255) --textbox-border-alpha ALPHA Set the ALPHA channel of the border of the text area (0->255) --text-font-file FILE Upload the FONT file --text-font-height HEIGHT Set the HEIGHT of the text area font --text-font-red RED Set the RED channel of the text area font (0->255) --text-font-green GREEN Set the GREEN channel of the text area font (0->255) --text-font-blue BLUE Set the BLUE channel of the text area font (0->255) --text-font-alpha ALPHA Set the ALPHA channel of the text area font (0->255) --autoverbose yes|no Set if Splashy turn into verbose mode when an error appears at boot --progressbar-visibility-boot yes|no Set if Splashy shows a progress bar on boot --progressbar-visibility-shutdown yes|no Set if Splashy shows a progress bar on shutdown --progressbar-visibility-resume yes|no Set if Splashy shows a progress bar on resume --progressbar-visibility-suspend yes|no Set if Splashy shows a progress bar on suspend --progressbar-direction-boot forward|backward Set if the progress bar goes forward or backward on boot --progressbar-direction-shutdown forward|backward Set if the progress bar goes forward or backward on shutdown --progressbar-direction-resume forward|backward Set if the progress bar goes forward or backward on resume --progressbar-direction-suspend forward|backward Set if the progress bar goes forward or backward on suspend --fadein yes|no Set if Splashy appears smoothly --fadeout yes|no Set if Splashy disappears smoothly EXAMPLES
"/usr/bin/splashy_config --info" Shows all the themes currently installed. FILES
/etc/splashy/config.xml Main configuration. defines how splashy should be setup. /etc/splashy/themes/default/theme.xml Default theme. defines how the images displayed by splashy should be setup, their location and other theme-related variables. SEE ALSO
splashy(1), splashy_update(1), splashy-config.xml(5), splashy-theme.xml(5) AUTHORS
Vincent Amouret <vincent.amouret@gmail.com> Luis Mondesi <lemsx1@gmail.com> perl v5.12.1 2010-07-05 SPLASHY_CONFIG(1)
All times are GMT -4. The time now is 03:07 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy