02-24-2009
I mean how I can use the commands list in an array, or even aliases I created...
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I am trying to set a command into a variable in a csh script using command substituion with ``. I am having a problem with ps command combined with grep. The command is as follows (shows processes running with the word gpts in them).
/usr/ucb/ps axwww | grep gpts
this works fine at the... (2 Replies)
Discussion started by: voodoo31
2 Replies
2. Shell Programming and Scripting
hi,
i have 3 fields in a file and linked them through 2 associative arrays.. the problem is one of the associative array is working while the other is not.. the code part is:
awk ' BEGIN {
FS="|"
rc = getline < "ICX_RULES"
while ( rc == 1 )
{
rule_id=$1
rule_parameter=$2... (2 Replies)
Discussion started by: aami_sayan
2 Replies
3. Shell Programming and Scripting
Dear friends...
Kindly if any one can help me to know the differences in definning & retreiving data from arrays in the sh,csh & ksh.
I always facing problems in this issue.
thanks...:)
BR (3 Replies)
Discussion started by: ahmad.diab
3 Replies
4. Shell Programming and Scripting
Hello Guys,
I was trying to obtain the information from the /etc/passwd file, here was my script:
38 echo -n "What's your login name? "
39 set logname=$<
40 echo "Your login name is $logname, your user's ID is `grep $logname /etc/passwd|awk -F: '{print $3}'`"
41 echo " Your home dir is... (1 Reply)
Discussion started by: tpltp
1 Replies
5. Shell Programming and Scripting
I'm trying call the first item in the array then put it in a loop to call the next items in order.
set $p = (port-1, port-2, port-3, port-4, exit)
<sourcePort>daughtercard:$P</sourcePort>
if ($p == "exit") then
break
else ($p >> 1)
I know the above code isn't correct. I'm... (1 Reply)
Discussion started by: drkelly76
1 Replies
6. Shell Programming and Scripting
Hi Perl folks,
I am having problems printing elements from an array at runtime.
I wish to push elements into array at runtime and the print it later.
Now I wish to print this matrix using colors.
So I do something like this to enter the runtime values in array:
... (1 Reply)
Discussion started by: som.nitk
1 Replies
7. Shell Programming and Scripting
I'm having a problem with this bit of my script. '/tmp/data' contains the output of 'ls -l', and I'm assigning a couple of the columns to an array. The problem is that it line starts on the third line of 'ls -l' rather than the first one.
@ count = 7
set line = `cat /tmp/data`
while ($count... (1 Reply)
Discussion started by: tkirk
1 Replies
8. Shell Programming and Scripting
I am trying to code a 4 by 4 array. However the naming convention is diffrent.
Please refer the image below
https://lh5.googleusercontent.com/-Dl0vdjfXtU0/Tnh02_ORJpI/AAAAAAAAAKU/4c2zyFP9IB0/array.JPG
I want to name them in order :
from 0 to 3 --> (0,0) cell to (0,3)
from 4 to 7 --> (1,0)... (0 Replies)
Discussion started by: animesharma
0 Replies
9. Shell Programming and Scripting
set -A allfiles `find $usrhtml -type f`
i am trying to populate this array with the find command. It works fine when find is looking through a single directory but when i add a new subdirectory the files in the subdirectory get duplicated. Can anyone help me and fix this so each files in... (1 Reply)
Discussion started by: bjhum33
1 Replies
10. UNIX for Dummies Questions & Answers
i have a list of apps that i need to forcequit and, from time to time, that list changes. perfect excuse to manage a single array! however, my strings with spaces aren't passing as i'd like them to. here's the simple script:
#!/bin/sh
#-----Array
apps=( firefox-bin firefox... (6 Replies)
Discussion started by: hungryd
6 Replies
LEARN ABOUT DEBIAN
fs_listaliases
FS_LISTALIASES(1) AFS Command Reference FS_LISTALIASES(1)
NAME
fs_listaliases - Displays the current list of aliases for AFS cells
SYNOPSIS
fs listaliases [-help]
DESCRIPTION
The fs listaliases command shows the list of cell aliases currently in effect, both from CellAlias and created using fs newalias. Cell
aliases can only be used when the using a Dynamic Root (the -dynroot option to afsd).
OPTIONS
-help
Prints the online help for this command. All other valid options are ignored.
OUTPUT
If an alias "openafs" exists for the cell "openafs.org", the output include the following line:
Alias openafs for cell openafs.org
EXAMPLES
There is only one way to invoke fs listaliases:
% fs listaliases
PRIVILEGE REQUIRED
No special privileges are required for this command.
SEE ALSO
afsd(8), CellAlias(5), fs_newalias(1)
COPYRIGHT
Copyright 2007 Jason Edgecombe <jason@rampaginggeek.com>
This documentation is covered by the BSD License as written in the doc/LICENSE file. This man page was written by Jason Edgecombe for
OpenAFS.
OpenAFS 2012-03-26 FS_LISTALIASES(1)