11-01-2016
Thankz buddy! its working
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
- I m retreving values from database and wish to use those values later in my shell script. I m placing these values in an array da_data but outside loop array is empty.Problem is its treating array as local inside loop hence array is empty outside loop.
Plz go through the script and suggest how... (1 Reply)
Discussion started by: Devesh5683
1 Replies
2. Shell Programming and Scripting
I need to do something like this:
for i in 1 2 3 4 5; do
arr=$(awk 'NR="$i" { print $2 }' file_with_5_records)
done
That is, parse a file and assign values to an array in an ascending order relative to the number of record in the file that is being processed on each loop.
Is my... (2 Replies)
Discussion started by: fiori_musicali
2 Replies
3. Shell Programming and Scripting
Hi all.
Well, I have the next code:
I need to make an array with the values I have in the bucle, but just don't get it...
Question is, how can I store in an array that values, and how can I display them with echo? (8 Replies)
Discussion started by: crcbad
8 Replies
4. Shell Programming and Scripting
Hi All,
I'm writing a nagios check that will see if our ldap servers are in sync...
I got the status data into a nested array, I would like to search key of each array and if "OK" is NOT present, echo other key=>values in the current array to a variable
so...eg...let take the single array... (1 Reply)
Discussion started by: zeekblack
1 Replies
5. Shell Programming and Scripting
Hello All,
Maybe I'm Missing something here but I have NOOO idea what the heck is going on with this....?
I have a Variable that contains a PATTERN of what I'm considering "Illegal Characters". So what I'm doing is looping
through a string containing some of these "Illegal Characters". Now... (5 Replies)
Discussion started by: mrm5102
5 Replies
6. Red Hat
hey,i stored the value of an sql query in an array and then tried to use that
value in while loop. actually my array will have two or more values, then according to the values i have to display result.
#!/bin/bash -xv
val_1=$( sqlplus -s rte/rted1@rel75d1 << EOF
set heading off
select... (1 Reply)
Discussion started by: ramsavi
1 Replies
7. Shell Programming and Scripting
Here's my code:
awk -F '' 'NR==FNR {
if (/time/ && $5>10)
A=$2" "$3":"$4":"($5-01)
else if (/time/ && $5<01)
A=$2" "$3":"$4-01":"(59-$5)
else if (/time/ && $5<=10)
A=$2" "$3":"$4":0"($5-01)
else if (/close/) {
B=0
n1=n2;
... (2 Replies)
Discussion started by: klane
2 Replies
8. Shell Programming and Scripting
#!/bin/bash
pwd1=`cat 1.ini | grep -w PWD | cut -d'=' -f2` //value is /home/java/Desktop/sh_h
echo the value is `pwd`
pwd2=`cat 2.ini | grep -w PWD | cut -d'=' -f2` //value is /home/unix/Desktop/sh_h
echo the value is $pwd2
if ]
then
echo both are same
else
pwd2=$pwd /* here i want to... (6 Replies)
Discussion started by: anandpasunoori
6 Replies
9. Shell Programming and Scripting
I have a headerless array of 1000 columns x 100000 rows. The array only contains 4 values; 0/0, 0/1, 1/1, ./.
Here I am showing the 1st 3 rows and columns of the input array
0/0 0/0 1/1
0/1 0/1 0/1
0/0 ./. 0/0
0/0 0/0 0/0
I would like to convert the values in... (9 Replies)
Discussion started by: Geneanalyst
9 Replies
10. Shell Programming and Scripting
Hello!
I'm making an English to Morse Code translator and I was able to mostly get it all working by looking through older posts here; however, I have one small problem.
When I run it it's just printing spaces for where the characters should be. It runs the right amount of times, and if I try... (3 Replies)
Discussion started by: arcoleman10
3 Replies
LEARN ABOUT REDHAT
gnome-wm
GNOME(1) General Commands Manual GNOME(1)
gnome-wm - Launches the user selected window manager for the GNOME session
SYNOPSIS
gnome-wm [--default-wm windowmanager] [--sm-client-id id]
DESCRIPTION
The gnome-wm script invokes the user selected window manager. If the user has not chosen a window manager it will try to launch a GNOME
compliant window manager.
The user can overwrite the selection of a window manager by setting the WINDOW_MANAGER environment variable. If a --default-wm option is
given the script uses that window manager in case WINDOW_MANAGER is not set. If gnome-wm is given as the argument to --default-wm then it
is the same as if no default was given.
The script takes the --sm-client-id argument and translates the id to an appropriate option depending on which window manager was selected.
ENVIRONMENT
The gnome-wm program uses the value of the WINDOW_MANAGER environment variable to let the user override the configured window manager.
PERSISTENT SETTINGS
The program stores the current selection of a window manager in the gconf key /desktop/gnome/applications/window_manager/default
SEE ALSO
gnome-session(1),default.session(5)
BUGS
If you find bugs in the gnome-wm program, please report these using bug-buddy or the gnome-bug script included with the GNOME libraries
distribution.
GNOME 1.0 GNOME(1)