Sponsored Content
Top Forums Shell Programming and Scripting Concatenating Different # of Variables Post 302216421 by yunccll on Friday 18th of July 2008 10:31:36 PM
Old 07-18-2008
Code:
Output=""
for(( i = 0; i< ${#HBA_WWN[@]}; i++))
do
  Output=$Output"HBA at ${HBA_WWN[$i]} is ${HBA_STA[$i]} ;;"
done
echo $Output

.Aaron
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Concatenating Variables

FILE_DATE=$(date +"%Y%m%d_%H%M")_ FILE_PREFIX=${FILE_DATE} echo $FILE_PREFIX JS_LOG_DIR="E:\DecisionStream Jobs\Invoice Balance Fact Jobs" echo $JS_LOG_DIR --This is where the problem surfaces. The last line of this script does a rsh to an NT machine and one of the parameters is the... (2 Replies)
Discussion started by: photh
2 Replies

2. Shell Programming and Scripting

concatenating strings..

hey guys.. probably a simple question but i cant seem to find any info on it. i have a small array of strings, and i want to concatenate the contents of the array into one big string. any ideas on how i can do this? cheers. (2 Replies)
Discussion started by: jt_csv
2 Replies

3. Shell Programming and Scripting

Concatenating two files

HI I need to concatenate two files which are having headers. the result file should contain only the header from first file only and the header in second file have to be skipped. file1: name age sriram 23 file2 name age prabu 25 result file should be name age sriram 23 prabu ... (6 Replies)
Discussion started by: Sriramprabu
6 Replies

4. Red Hat

Concatenating variables

Hi all, I'm trying to do a very simple script, as you can see as follow: #!/bin/bash #Valorizzazione Token presenti nel file di properties var_path_weblogic="`cat weblogic.properties | grep "dir_wl" | /usr/xpg4/bin/awk '{print $3}'`" var_ip_address="`cat... (5 Replies)
Discussion started by: idro
5 Replies

5. Shell Programming and Scripting

need help in concatenating

Hi All , i`m writing a script , i stucked in middle . Script echo "Please Enter the INSTANCE name" read iName echo "The INSTANCE name is $iName" more /opt/IBMIHS*/conf/httpd.conf_"$iName" script end here i`m getting error as : Error /opt/IBMIHS*/conf/httpd.conf_w101:... (7 Replies)
Discussion started by: radha254
7 Replies

6. Shell Programming and Scripting

bash -- concatenating values from variables

Hi This is a simple one but I got a lost in translation when doing. What I want to do, given both variables in the example below, to get one value at the time from both variables, for example: 1:a 2:b etc... I need to get this in bash scripting code: varas="1 2 3 4" varbs="a b c d"... (4 Replies)
Discussion started by: ranmanh
4 Replies

7. Shell Programming and Scripting

Problem while concatenating variables in shell script

Hi folks, I am facing problem when I concat variables with the string. Value for 'JDBC_CLASSES' variable looks malformed (/classes12.zip2.0KAGES) But, my expected result for 'JDBC_CLASSES' is /opt/API-R111/PACKAGES/jdbc/ORACLE9.2.0/classes12.zip Am I missing anything here? My... (10 Replies)
Discussion started by: Adhil
10 Replies

8. UNIX for Dummies Questions & Answers

Concatenating

Hi, I have file called "3rdparty.dat" I want to concatenate current YYYYMMDD to it. Snd result should be like 3rdParty20111110.dat. How can i do this? Thanks in advance. (3 Replies)
Discussion started by: raj.shah.0609
3 Replies

9. Shell Programming and Scripting

Concatenating Output

Hello all The following line : df -h | awk '{print $5}'| head -2 |tail -1 gives me an output of '2.2G' How can I remove the 'G' so that I can use the 2.2 for further calculations ? (8 Replies)
Discussion started by: Junaid Subhani
8 Replies

10. UNIX for Beginners Questions & Answers

Concatenating two mutiline variables in a bash

Hi All, I am having a situation where am capturing results in two variables from an xml file. However, I am looking to print those two variables with pipe in between them and these variable are multi-line. This is how my 1st variable looks like: 20181225010 20190224010 20190224010... (8 Replies)
Discussion started by: svks1985
8 Replies
WCSREMAP(1)							   User Commands						       WCSREMAP(1)

NAME
wcsremap - AME SYNOPSIS
remap [-vf][-a rot][[-b][-j] ra dec][-i bits][-l num] file1.fit file2.fit ... filen.fit DESCRIPTION
Remap FITS or IRAF images into single FITS image using WCS or : remap [-vf][-a rot][[-b][-j] ra dec][-i bits][-l num] @filelist -a: Output rotation angle in degrees (default 0) -b ra dec: Output center in B1950 (FK4) RA and Dec -e long lat: Output center in ecliptic longitude and latitude -f file: Use WCS from this file as output WCS -g long lat: Output center in galactic longitude and latitude -i num: Number of bits per output pixel (default is input) -j ra dec: center in J2000 (FK5) RA and Dec -l num: Log every num rows of output image -m mode: c closest pixel (more to come) -n num: integer pixel value for blank pixel -o name: Name for output image -p secpix: Output plate scale in arcsec/pixel (default =input) -s: Set BZERO and BSCALE in output file from input file -t: Number of samples per linear output pixel -u: Delete distortion keywords from output file -v: Verbose -w type: Output WCS type (input is default) -x x y: Output image reference X and Y coordinates (default is center) -y nx ny: Output image dimensions (default is first input image) wcsremap 3.8.4 June 2012 WCSREMAP(1)
All times are GMT -4. The time now is 03:12 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy