10-31-2008
do you mean something like this?
x=(d u m p)
unset res
for i in "${x[@]}" ; do
res=${res}$i
done
echo $res
Or simply but much more expensive bcs shell has to be forked an tr has to be executed
#echo ${x[@]} | tr -d " "
9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi All,
I have a ',' delimited file and i would like concatenate a new value at a specific column.
Example :-
xXXX,XYZ,20071005,ABC,DEF,123
xXXX,XYZ,20071005,ABC,DEF,123
xXXX,XYZ,20071005,ABC,DEF,123
The output that i want is
xXXX,XYZ,20071005001,ABC,DEF,123... (7 Replies)
Discussion started by: amitkhiare
7 Replies
2. Shell Programming and Scripting
Friends,
I have to execute a command and store its contents into an array using shell. this is what i have tried
#!/bin/bash
disk_names = ($(`iostat -xtc | egrep -v "device|nfs" | awk '{print $1}'| tr '\n' ' ' `))
But its throwing an error message as
./test-script
./test-script:... (6 Replies)
Discussion started by: achak01
6 Replies
3. UNIX for Advanced & Expert Users
I need help to create a csv file with Unix command.
In csv file, i need to put two values in the same cell.
Rite now, whts happening is, if i put 2 values in the same cell, its comming as " asd, zxc" but i want it in different line but in same cell.
asd
zxc
Please reply me ASAP. (1 Reply)
Discussion started by: Prashant Jain
1 Replies
4. Shell Programming and Scripting
I have the following script in a shell
# The start of a filename
file=$(ls -tr $EMT*.dat | tail -1) # Select the latest file echo $file
file_seq=$( < /u02/sct/banner/bandev2/xxxxxx/misc/EFTSQL.dat)
echo $file_seq
file2 = '$file_seq + 1'
echo $file2
It is reading a file EFTSQL.dat... (3 Replies)
Discussion started by: rechever
3 Replies
5. Shell Programming and Scripting
sample content of file1:
SSTY1 2145228348 652011011715140100000002419005432092074 008801726143662 VDZX01 MIO2 008801726143662
SSRTY 2145228349 ... (3 Replies)
Discussion started by: vsachan
3 Replies
6. Shell Programming and Scripting
hi
My script as below
#!/bin/ksh
for i in `seq 1 7`
do
a=$(awk '{print $i}' /home/rama/expenese.txt)
done
for i in `seq 1 7`
do
echo "${a}"
done
content of expense.txt is as below
5032 210179 3110 132813874 53488966 11459221 5300794
I want output as... (6 Replies)
Discussion started by: Ramakrishna V
6 Replies
7. UNIX for Dummies Questions & Answers
:wall:
Hi
I am a newbie with Shell Scripting who stuck while creating a shell script for Pythagoras theorem.I need to know how to add the squares for the value in shell scripting(for eg: b2 =a2 +c2).
Thanks
VR (4 Replies)
Discussion started by: VoraciousReader
4 Replies
8. Shell Programming and Scripting
Hi
After lot of trial and error I am really bowled out with the requirement in hand and honestly you are my last hope
Here is what I want to achieve
Values
*IF *VALUE MS_SQL_Statistics_Summary.Client_Count_Percent_Used *GT 70.00 *AND *VALUE... (20 Replies)
Discussion started by: radioactive9
20 Replies
9. Shell Programming and Scripting
I have two files:
file-1 is a list of number of interfaces in the switch and file-2 have VLAN-ID , VLAN-NAME , Interface belong to that VLAN like this:
file-1:
1/1
1/2
1/3
1/4
1/5
.
.
file-2:
1,"vlan-wifi",1/1,1/7,1/8 (9 Replies)
Discussion started by: SULTAN01
9 Replies
LEARN ABOUT DEBIAN
fs_getcellstatus
FS_GETCELLSTATUS(1) AFS Command Reference FS_GETCELLSTATUS(1)
NAME
fs_getcellstatus - Reports whether setuid programs are honored in a cell
SYNOPSIS
fs getcellstatus -cell <cell name>+ [-help]
fs getce -c <cell name>+ [-h]
DESCRIPTION
The fs getcellstatus command reports whether the Cache Manager allows programs fetched from each specified cell to run with setuid
permission. To set a cell's setuid status, use the fs setcell command; fs_setcell(1) fully describes how AFS treats setuid programs.
OPTIONS
-cell <cell name>+
Names each cell for which to report setuid status. Provide the fully qualified domain name, or a shortened form that disambiguates it
from the other cells listed in the local /etc/openafs/CellServDB file.
-help
Prints the online help for this command. All other valid options are ignored.
OUTPUT
The output reports one of the following two values as appropriate:
Cell <cell> status: setuid allowed
Cell <cell> status: no setuid allowed
EXAMPLES
The following example indicates that programs from the cell "abc.com" are not allowed to run with setuid permission.
% fs getcellstatus abc.com
Cell abc.com status: no setuid allowed
PRIVILEGE REQUIRED
None
SEE ALSO
CellServDB(5), fs_setcell(1)
COPYRIGHT
IBM Corporation 2000. <http://www.ibm.com/> All Rights Reserved.
This documentation is covered by the IBM Public License Version 1.0. It was converted from HTML to POD by software written by Chas
Williams and Russ Allbery, based on work by Alf Wachsmann and Elizabeth Cassell.
OpenAFS 2012-03-26 FS_GETCELLSTATUS(1)