11-28-2008
Unable to set a data to array
Hi All,
Iam trying to set the value to the array... Still its not happening
Following is the code:
#!/usr/bin/ksh
filenames[0]="x";
filenames[1]="y";
echo $filenames[0];
echo $filenames[1];
O/P:
x[0]
x[1]
Iam expecting
x
y
Can some one help me
9 More Discussions You Might Find Interesting
1. Linux
Hi Experts,
I am a newbie like in Linux world, practising Fedora Linux on VMWare but DNS is never set up:
Below are my conf files:
1. named.conf
options {
directory "/var/named";
/*
* If there is a firewall between you and nameservers you want
* to talk... (4 Replies)
Discussion started by: vikasdh
4 Replies
2. AIX
Hi all,
I am a beginner in AIX. I am facing a problem with remote printing in AIX.
HP laser jet 1320 printer is connected to a printer server (PCI Mini - 100U3), which is configured as remote printer from AIX server.
But I am not able to print from the AIX server by using "lp -d... (0 Replies)
Discussion started by: Rainy
0 Replies
3. UNIX for Dummies Questions & Answers
I created a new user and changed their home directory to /export/home/mydir/ I verified in the passwd file that the home directory is set to the above and that owner of that directory is the new user and yet when I log in as that user I get the following message:
No directory! Logging in with... (14 Replies)
Discussion started by: some_one
14 Replies
4. Solaris
Hi,
I've read forums far and wide trying to learn how to append to my PATH in Solaris 9 and every time I think I am close I discover my system is not configured the same. Its so frustrating because this all stems from a new server I am trying to setup identical to the production machine. (Of... (5 Replies)
Discussion started by: thoraddict
5 Replies
5. Shell Programming and Scripting
Hi,
I am pretty new in writing shell script on LINUX, I tried to write the script just like KSH on HP unix but it seems nothing is working. Even assigning variables seems to be not working as KSH on HP unix. Please help in resolving the issues I am facing on LINUX. I have declared variables for... (5 Replies)
Discussion started by: smr.ryl
5 Replies
6. Shell Programming and Scripting
Hello All,
Hope you can understand my problem from the below code.
$ cat ~/.profile
PS1=`whoami`@`hostname`':$PWD
$ '
export PATH="$PATH:.:/logarchive/utility/util:/usr/sbin:"
$ echo $PATH
/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:.:/usr/sbin:
$ echo $SHELL
/usr/bin/ksh
... (6 Replies)
Discussion started by: sathyaonnuix
6 Replies
7. Shell Programming and Scripting
I'm trying to set path for the current session but it is not doing so.
It works perfectly on command line though.
#!/usr/bin/ksh
PATH=$PATH:/opt/quest/bin
Is there any specific way to set path on korn? (3 Replies)
Discussion started by: pjeedu2247
3 Replies
8. Shell Programming and Scripting
Below is my code:
count=0
if
...
...
else
...
find * -prune -type d | sort -r -n | while read d; do
count=1
if ; then
echo "Count1:$count"
...
...
break 2;
fi
...
done
...
fi
echo "Count2:$count" (9 Replies)
Discussion started by: mohtashims
9 Replies
9. Linux
Hi All,
Am using centos 7 in my vmware workstatio with the bridged network. when run the ifconfig cmd its not at all showing the ip address and pls advise how to set static ip address in my linux box. (1 Reply)
Discussion started by: sarathkumar s
1 Replies
LEARN ABOUT CENTOS
amarchiver
AMARCHIVER(8) System Administration Commands AMARCHIVER(8)
NAME
amarchiver - Create, extract or list amanda archive
SYNOPSIS
amarchiver --version|--create|--extract|--list [--verbose] [--file file] [filename]...
DESCRIPTION
Amarchiver manipulates amanda archive file. On creation, amarchiver doesn't recurse into directories. If a filename specifies a directory,
it will be ignored. If it specifies a character device, amarchiver reads the device and archives the data. If a filename specifies a named
pipe, amarchiver reads the named pipe and archives the data.
Note that this tool is more limited than the Amanda archive library, and may not be appropriate for some archive files -- particularly
those which use non-strings in their filenames.
OPTIONS
--version
print the amarchiver version
--create
Create an amanda archive. Only the supplied filenames are included. With one --verbose, lists the filenames. With two, lists the
filenames and sizes.
--list
List the filenames in an amanda archive. No additional filenames are allowed on the command line.
--extract
Extract an amanda archive. If filenames are supplied, only those files are extracted. Files are created in the current directory,
suffixed with a dot ('.') and the attribute ID.
--verbose
Give more information.
--file file
Create, list or extract from the given file instead of stdin/stdout.
SEE ALSO
amanda(8), amanda-archive-format(5)
The Amanda Wiki: : http://wiki.zmanda.com/
AUTHORS
Dustin J. Mitchell <dustin@zmanda.com>
Zmanda, Inc. (http://www.zmanda.com)
Jean-Louis Martineau <martineau@zmanda.com>
Zmanda, Inc. (http://www.zmanda.com)
Amanda 3.3.3 01/10/2013 AMARCHIVER(8)