Say I write something like the following:
var1=1
var2=2
for int in 1 2
do
echo "\$var$int"
done
I want the output to be:
1
2
Instead I get something like:
$var1
$var2 (2 Replies)
Why I get bad replace when using eval?
$ map0=( "0" "0000" "0")
$ i=0
$ eval echo \${map$i}
0000
$ a=`eval echo \${map$i}` !!!error happens!!!
bash: ${map$i}: bad substitution
How to resolve it ?
Thanks! (5 Replies)
Dear all:
I'm system administrator.when i doing healthcheck for the SUN M5000 server i found messages as below.
Mar 19 16:38:37 sccuossw1 in.dhcpd: No more IP addresses on 192.168.1.32 network (01001E6713DA9A)
Mar 19 16:38:42 sccuossw1 last message repeated 2 times
Mar 19 16:38:46... (0 Replies)
Hi
I am looking for a unix command or a small shell script which can takes one parameter and then searches for the passed in the parameter in any or all files under say /home/dev/
Can anyone please help me on this? (3 Replies)
i am passing input parameter 'one_two' to the script , the script output should display the result as below
one_1two
one_2two
one_3two
if
then
echo " Usage : <$0> <DATABASE> "
exit 0
else
for DB in 1 2 3
do
DBname=`$DATABASE | awk -F "_" '{print $1_${DB}_$2}`
done
fi (5 Replies)
hi all,
i have a parameter file of following format, i want a method which can get the value of specific parameter.
parameter file format:
<Parameter Name="FileLocationWindows">
<Description>
The directory location of the logger file.
... (1 Reply)
Hi,
I have the following files.
->cat scr.sh
export TMP_DIR=/home/user/folder1
export TMP_DIR_2=/home/user/folder2
while read line
do
cat "$line"
done<file_list.dat
------------------------
-> cat file_list.dat
$TMP_DIR/file1.txt
$TMP_DIR_2/file2.txt
---------------------------
-> cat... (6 Replies)
Hi.
How do I achieve this
sh /EDWH-DMT02/script/MISC/exec_sql.sh "@/EDWH-DMT02/script/others/CSM_CKC/Complete_List.sql ${file_name}" Complete_List.txt
The /EDWH-DMT02/script/MISC/exec_sql.sh has two parameters and it's working fine with this
sh /EDWH-DMT02/script/MISC/exec_sql.sh... (7 Replies)
Today, I noticed some errors in our SSL cert renewal log files, mostly related to domains where the IP address had changed. Concerned about this, rebuilt out SSL cert, which normally goes well without a hiccup.
However, for today, for some reason which I cannot explain, there was a PHP error... (0 Replies)
Discussion started by: Neo
0 Replies
LEARN ABOUT DEBIAN
time-admin
time-admin(1) General Commands Manual time-admin(1)NAME
time-admin - Time Administration Tool
SYNOPSIS
time-admin [OPTION...]
DESCRIPTION
time-admin is part of the GNOME system tools, a set of tools to easily access and manage system configuration.
time-admin allows you to set the time, date and timezone of your system, as well as setting any time server to synchronize your local time
server.
OPTIONS
time-admin accepts the standard GNOME and GTK options.
AUTHORS
time-admin was written by Carlos Garnacho Parro <garnacho@tuxerver.net> and others.
This manual page was written by Sven Arvidsson <sa@whiz.se>, for the Debian project (but may be used by others).
SEE ALSO services-admin(1), shares-admin(1), network-admin(1), users-admin(1), gtk-options(7), gnome-options(7)
The online documentation available through the program's Help menu.
GNOME 2007-05-08 time-admin(1)