Please answer Scrutinzer's question: Is this homework?
If it isn't there are a few other questions that need to be answered:
What shell are you using?
Note that in your sample data, you have two items that have the same "highest quantity" sold and two other items that have the "highest number of sales transactions". How do you determine which should be given the "highest" label? (Or, more to the point, why don't you report all items with the same statistics when there is a tie?)
You said you wanted your script to print three values. Are all of the files your script creates used for later processing? Or, are they just artifacts left over after your script completes?
Could you please explain why you believe that the following code is needed in your script?:
This User Gave Thanks to Don Cragun For This Post:
Hi All,
I have an issue in writing the shell script to install a webserver on UNIX system. My shell script look something like this.
------------------------------------------------------------
echo "start of the script"
#! /bin/sh
cd /home/path
echo | setup.hp -is:javaconsole -console... (4 Replies)
Hi,
I created the following shell script file :
bash-3.00$ more Unlock_Statistics1.sh
#!/usr/bin/ksh
ORACLE_SID=prsal02; export ORACLE_SID
NLS_LANG=AMERICAN_AMERICA.AL32UTF8; export NLS_LANG
sqlplus -s /nolog << EOF
connect / as sysdba ;
set serveroutput on size 1000000;
execute... (1 Reply)
hi , this script was devloped by somebody whome I dont know way back
# cat run_ucid.sh
#!/bin/csh
# run_ucid.sh
#
# This is a simple shell script that will start an application in
# the background and restart the application if it stops. Upon
# termination an email message is sent and the... (2 Replies)
Hi Folks,
I am looking for a script where that should show the progress bar while running a process
Ex: while copying a file of size say 2 GB it should start the process as (0 %) and at the end it should show (100%)
Thanks in Advance
Phani. (4 Replies)
I have a script in TC shell, for some reason its not working.
I'm trying to kick off a script if there are any files in a particular directory "/sample/test3"
Can anyone point out the issue in the same
#!/usr/bin/tcsh
while true
do
if ls /sample/test3 >& /dev/null ; then... (2 Replies)
I found a post from a user requesting help rounding numbers. The script provided by Scrutinizer works fine most of the time but it errors out when trying to round these numbers:
30224939
50872456
20753012
They have in common, a zero in the second digit from left to right. Can someone help... (1 Reply)
Hi,
I have a file at $HOME/t.txt, below is file content
cat $HOME/t.txt
CUSTOMER_${REGION}.out
Am using this file content in one script $HOME/samp.sh, below is the script
#!/bin/bash
REGION=USA
x=`cat ${HOME}/t.txt`
echo $x
Am getting following output.. CUSTOMER_${REGION}.out
... (3 Replies)
Below is my script. However when i run it, i get the below error
./dummy.sh: line 27: syntax error: unexpected end of file
#!/bin/bash
while :
do
read -r INPUT_STRING
case $INPUT_STRING in
test)
echo "Please enter id no : "
read... (4 Replies)
Hi,
I am beginner in shell scripting. I have written a script to parse file(s) having large number of lines each having multiple comma separated strings.
But it seems like script is very slow. It took more than 30mins to parse a file with size 120MB (523564 lines), below is the script code
... (4 Replies)
Discussion started by: imrandec85
4 Replies
LEARN ABOUT OSX
systemstarter
SystemStarter(8) BSD System Manager's Manual SystemStarter(8)NAME
SystemStarter -- Start, stop, and restart system services
SYNOPSIS
SystemStarter [-gvxdDqn] [action [service]]
DESCRIPTION
The SystemStarter utility is deprecated. System services should instead be described by a launchd.plist(5). See launchd(8) for more
details. The launchd utility is available on Mac OS X 10.4 and later.
In earlier versions of Mac OS X, the SystemStarter utility is used to start, stop, and restart the system services which are described in the
/Library/StartupItems/ and /System/Library/StartupItems/ paths.
The optional action argument specifies which action SystemStarter performs on the startup items. The optional service argument specifies
which startup items to perform the action on. If no service is specified, all startup items will be acted on; otherwise, only the item pro-
viding the service, any items it requires, or any items that depend on it will be acted on.
During boot SystemStarter is invoked by launchd(8) and is responsible for starting all startup items in an order that satisfies each item's
requirements.
ACTIONS
start start all items, or start the item that provides the specified service and all items providing services it requires.
stop stop all items, or stop the item that provides the specified service and all items that depend on it.
restart restart all items, or restart the item providing the specified service.
OPTIONS -g (ignored)
-v verbose (text mode) startup
-x (ignored)
-r (ignored)
-d print debugging output
-D print debugging output and dependencies
-q be quiet (disable debugging output)
-n don't actually perform action on items (no-run mode)
NOTES
Unless an explicit call to ConsoleMessage is made, SystemStarter examines the exit status of the startup item scripts to determine the suc-
cess or failure of the services provided by that script.
FILES
/Library/StartupItems/ User-installed startup items.
/System/Library/StartupItems/ System-provided startup items.
SEE ALSO ConsoleMessage(8), launchd(8), launchd.plist(5), rc(8)HISTORY
The SystemStarter utility appeared in Darwin 1.0 and was extended in Darwin 6.0 to support partial startup and interprocess communication.
SystemStarter was deprecated by launchd(8) in Darwin 8.0.
Darwin April 12, 2002 Darwin