04-01-2008
help on script
Hi, how do i manipulate the below file to produce the following output:
Simmons - #3
Higgins - #7
Norton - #9
File contents:
Name=Dorothy Simmons. I'm 22 years of age. My favorite sport=volleyball. My favorite number=3
Name=Patty Higgins. Im 30 years of age. My favorite sport=football. My favorite number=7
Name=Timothy Norton. Im 28 years of age. My favorite sport=tennis. My favorite number=9
Thanks in advance.
5 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi guys
I have a shell script that executes sql statemets and sends the output to a file.the script takes in parameters executes sql and sends the result to an output file.
#!/bin/sh
echo " $2 $3 $4 $5 $6 $7
isql -w400 -U$2 -S$5 -P$3 << xxx
use $4
go
print"**Changes to the table... (0 Replies)
Discussion started by: magikminox
0 Replies
2. Shell Programming and Scripting
I am using blow script :--
#!/bin/bash
FIND=$(ps -elf | grep "snmp_trap.sh" | grep -v grep) #check snmp_trap.sh is running or not
if
then
# echo "process found"
exit 0;
else
echo "process not found"
exec /home/Ketan_r /snmp_trap.sh 2>&1 & disown -h ... (1 Reply)
Discussion started by: ketanraut
1 Replies
3. UNIX for Dummies Questions & Answers
I am trying to call a script(callingscript.sh) from a master script(masterscript.sh) to get string type value from calling script to master script. I have used scripts mentioned below.
#masterscript.sh
./callingscript.sh
echo $fileExist
#callingscript.sh
echo "The script is called"... (2 Replies)
Discussion started by: Raj Roy
2 Replies
4. Shell Programming and Scripting
Hello all,
I am facing a weird issue while executing a code below -
#!/bin/bash
cd /wload/baot/home/baotasa0/sandboxes_finance/ext_ukba_bde/pset
sh UKBA_publish.sh UKBA 28082015 3
if
then
echo "Param file conversion for all the areas are completed, please check in your home directory"... (2 Replies)
Discussion started by: ektubbe
2 Replies
5. Shell Programming and Scripting
I'm new to utilities like socat and netcat and I'm not clear if they will do what I need.
I have a "compileDeployStartWebServer.sh" script and a "StartBrowser.sh" script that are started by emacs/elisp at the same time in two different processes.
I'm using Cygwin bash on Windows 10.
My... (3 Replies)
Discussion started by: siegfried
3 Replies
LEARN ABOUT CENTOS
panelctl
PANELCTL(1) User Commands PANELCTL(1)
NAME
panelctl - manual page for panelctl (libavc1394) 0.1
SYNOPSIS
panelctl [OPTION] <channel|command>
DESCRIPTION
panelctl is a command line tool to send control commands via an IEEE1394 link to an AV/C Panel such as the Motorola Digital Consumer Termi-
nal (DCT) series. Or for the non-techies: panelctl lets you remote control your digital cable box via a Firewire cable.
OPTIONS
-d, --debug
Display debug information
-h, --help
Display this help and exit
-v, --version
Output version information and exit
Channels:
001 - 999
Tune directly to a specific channel
Commands:
ok Select the highlighted item
up Move up in the menu or guide
down Move down in the menu or guide
left Move left in the menu or guide
right Move right in the menu or guide
menu Enter or Exit the Main Menu
lock Bring up Parental Control screen
guide Bring up Listings By Time screen
favorite
Scan through just your favorite channels
exit Return to live TV from the menu or guide
enter Enter the digital Music menu
channelup
Change channel up
channeldown
Change channel down
last Return to the previous menu or channel
info See a description of the current show
help See helpful information
pageup Move up one page in the menu or guide
pagedown
Move down one page in the menu or guide
power Toggle the device on or off
volumeup
Change volume up
volumedown
Change volume down
mute Toggle sound on or off
play Play DVR or On-Demand content
stop Stop DVR or On-Demand content
pause Pause DVR or On-Demand content
record Record content on the DVR
rewind Rewind DVR or On-Demand content
fastforward
Fast Forward DVR or On-Demand content
soundoff
Turn sound off
soundon
Turn sound on
num0 - num9
Emulate a number key pressed
AUTHOR
Written by Stacey Son, John Woodell, and Dan Dennedy.
COPYRIGHT
Copyright (C) 2004-2006
SEE ALSO
dvcont
panelctl (libavc1394) 0.1 April 2006 PANELCTL(1)