11-19-2010
Sorry about the netspeak Corona. Will try and avoid it the best that I can
If I use "$col" no arguments are passed to the script. If I use "col", I see "col" instead of its value. I tried using double-quotes but that did not make any difference either.
Thanks
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hello all,
i have a infile.txt text file which contains such variables:
aaa 123
asds 1323
asdsd 13434
lkjlkj 324324
23432 lkjlkj
24324 ljlkj
3j4lk 234kj3
and i want to pass them to my script such as:
./myscript $1 $2
where $1 is the first value in the first row and $2 is the second... (2 Replies)
Discussion started by: Bashar
2 Replies
2. Shell Programming and Scripting
I'm writing a script to automate some post-install tasks on RHEL4 servers.
I need the following code to insert an 'A' in the middle of a string, then replace the string in a file. I know I can use sed to do this, but I'd like to use perl's in place edit so I don't have to write to a temp file,... (1 Reply)
Discussion started by: Xek
1 Replies
3. Shell Programming and Scripting
Hi..
I am passing a variable in my shell function. I need to access it for an isql comand in the shell script.
However the isql o/p gives no results if i pass a variable in the command. The isql command works perfectly fine if i hardcore the table name.
My script is :
... (0 Replies)
Discussion started by: dikki
0 Replies
4. Shell Programming and Scripting
nawk '($1 ~ "1000") && ($1 ~ "5665" ) { sub ($6,"89");flag =1;print }' old.txt >> new.txt I want to set a flag in awk , if the both conditions are met. I want to pass this flag to shell Can anyone please help me on this (1 Reply)
Discussion started by: prav076
1 Replies
5. Shell Programming and Scripting
I noticed my script is not passing the value of variable alert to the rsh command. I need some assistance, please. This is a solaris environement. Thanks! :confused:
#!/bin/sh
echo -n "Alert number:"
read alert
rsh rhost_name 'egrep $alert /opt/var/log/*.logs' (2 Replies)
Discussion started by: lopus
2 Replies
6. Shell Programming and Scripting
Hi everybody, please help me with this problem
Suppose I have a script like this to run commands of gnuplot.
#!/bin/sh
lib=$1
old="output/old/$lib.dat"
new="output/new/$lib.dat"
gnuplot << EOF
set logscale x
set logscale y
set size square
set grid
set pointsize 1
plot "< paste $old... (5 Replies)
Discussion started by: Dark2Bright
5 Replies
7. UNIX for Dummies Questions & Answers
Hello,
I have two files File1 & File2.
File1
76 135
136 200
250 345
....
File2
1 24
1 35
1 36
1 72
....
I want to get all the values form File2 corresponding to the range in File 1 and feed it to a program. Is the code below right? Can I pass shell variables to awk in this... (2 Replies)
Discussion started by: Gussifinknottle
2 Replies
8. Homework & Coursework Questions
Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!
1. The problem statement, all variables and given/known data:
This is my assignment as a whole - Use SVG to present certain dynamic (the raw data should change at least once... (5 Replies)
Discussion started by: ChedWick
5 Replies
9. Shell Programming and Scripting
Hi.
I need to parse file and assign some values to variables, right now i do like below
MYHOMEDIR=`awk '/Home/ {print $NF}' output.txt`
MYSHELL=`awk '/Shell/ {print $NF}' output.txt`
PRGRP=`awk '/Primary/ {print $NF}' output.txt`
SECGRP=`awk '/Second/ {print $NF}' output.txt`
In this... (10 Replies)
Discussion started by: urello
10 Replies
10. UNIX for Dummies Questions & Answers
Hi All,
Iam trying to pass global shell variables and is not working
Main script is like below
CYEAR=`date +"%y"`
CFYEAR=`date +"%Y"`
CMONTH=`date +"%m"`
if
then
PMONTH=12
PYEAR=`expr $CYEAR - 1`
PFYEAR=`expr $CFYEAR - 1`
else
PMONTH=`expr... (6 Replies)
Discussion started by: baanprog
6 Replies
LEARN ABOUT DEBIAN
gnome2::scores
Gnome2::Scores(3pm) User Contributed Perl Documentation Gnome2::Scores(3pm)
NAME
Gnome2::Scores - wrapper for GnomeScores
HIERARCHY
Glib::Object
+----Glib::InitiallyUnowned
+----Gtk2::Object
+----Gtk2::Widget
+----Gtk2::Container
+----Gtk2::Bin
+----Gtk2::Window
+----Gtk2::Dialog
+----Gnome2::Scores
INTERFACES
Glib::Object::_Unregistered::AtkImplementorIface
Gtk2::Buildable
METHODS
widget = Gnome2::Scores->new ($names, $scores, $times, $clear)
o $names (scalar) - reference to an array
o $scores (scalar) - reference to an array
o $times (scalar) - reference to an array
o $clear (boolean)
$gs->set_color ($n, $col)
o $n (integer)
o $col (Gtk2::Gdk::Color)
$gs->set_colors ($col)
o $col (Gtk2::Gdk::Color)
$gs->set_current_player ($i)
o $i (integer)
$gs->set_def_color ($col)
o $col (Gtk2::Gdk::Color)
widget = Gnome2::Scores->display ($title, $app_name, $level, $pos)
o $title (string)
o $app_name (string)
o $level (string)
o $pos (integer)
widget = Gnome2::Scores->display_with_pixmap ($pixmap_logo, $app_name, $level, $pos)
o $pixmap_logo (string)
o $app_name (string)
o $level (string)
o $pos (integer)
$gs->set_logo_label ($txt, $font, $col)
o $txt (string)
o $font (string)
o $col (Gtk2::Gdk::Color)
$gs->set_logo_label_title ($txt)
o $txt (string)
$gs->set_logo_pixmap ($pix_name)
o $pix_name (string)
$gs->set_logo_widget ($w)
o $w (Gtk2::Widget)
SEE ALSO
Gnome2, Glib::Object, Glib::InitiallyUnowned, Gtk2::Object, Gtk2::Widget, Gtk2::Container, Gtk2::Bin, Gtk2::Window, Gtk2::Dialog
COPYRIGHT
Copyright (C) 2003-2004 by the gtk2-perl team.
This software is licensed under the LGPL. See Gnome2 for a full notice.
perl v5.14.2 2011-11-16 Gnome2::Scores(3pm)