Sponsored Content
Top Forums Shell Programming and Scripting Help me streamline this counting part of my script. Post 302170471 by joeyg on Monday 25th of February 2008 05:05:03 PM
Old 02-25-2008
Tools you could use a case statement

Code:
case $number
   in
      1) ;;
      2) alphabet="02";;
      3) alphabet="02 03";;
      4) alphabet="02 03 04";;
      5) alphabet="02 03 04 05";;
      6) alphabet="02 03 04 05 06";;
      7) alphabet="02 03 04 05 06 07";;
      8) alphabet="02 03 04 05 06 07 08";;
esac

 

2 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

counting in shell script

hi i am writing a korn shell script to compile all programs there are arount 2000+ files now i have a script that can compile programs but i want to show status of compilation because to compile all programs it takes around 10-15 mins so how can i display status like it should print no of files... (3 Replies)
Discussion started by: zedex
3 Replies

2. Shell Programming and Scripting

Streamline script to search for numbers in a certain range

Hello all, I need help making a script run faster since I have a huge file to sift through. The file I am running my script on looks like this: 1 -1.9E+001 -1.8E-001 1.5E+001 3.32E+001 2 -1.7E+001 -1.0E-002 1.2E+001 6.37E+001 3 -1.5E+001 -3.8E-006 6.7E+001 4.81E+001 The... (12 Replies)
Discussion started by: butson
12 Replies
BASE64(1)							   User Commands							 BASE64(1)

NAME
base64 - base64 encode/decode data and print to standard output SYNOPSIS
base64 [OPTION]... [FILE] DESCRIPTION
Base64 encode or decode FILE, or standard input, to standard output. Mandatory arguments to long options are mandatory for short options too. -d, --decode decode data -i, --ignore-garbage when decoding, ignore non-alphabet characters -w, --wrap=COLS wrap encoded lines after COLS character (default 76). Use 0 to disable line wrapping --help display this help and exit --version output version information and exit With no FILE, or when FILE is -, read standard input. The data are encoded as described for the base64 alphabet in RFC 3548. When decoding, the input may contain newlines in addition to the bytes of the formal base64 alphabet. Use --ignore-garbage to attempt to recover from any other non-alphabet bytes in the encoded stream. GNU coreutils online help: <http://www.gnu.org/software/coreutils/> Report base64 translation bugs to <http://translationproject.org/team/> AUTHOR
Written by Simon Josefsson. COPYRIGHT
Copyright (C) 2013 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>. This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. SEE ALSO
The full documentation for base64 is maintained as a Texinfo manual. If the info and base64 programs are properly installed at your site, the command info coreutils 'base64 invocation' should give you access to the complete manual. GNU coreutils 8.22 June 2014 BASE64(1)
All times are GMT -4. The time now is 05:31 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy