12-13-2004
$ x.sh "/apps/opt" "/informix"
/apps/opt/informix
$ x.sh "/apps/opt" "/informix"
$ export file1="informix"
$ x.sh "/apps/opt" "/$file1"
/apps/opt/informix
$ x.sh "/apps/opt" "$file1"
/apps/optinformix
$ x.sh "/apps/opt" "/$file1"
/apps/opt/informix
$ cat x.sh
#!/usr/bin/ksh
echo $1$2
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
How can I do this:
date = 4 -----------> 04
Month= 3-----------> 03
I wish to make a varibale named Var1 which will hold the value of current date and month value as:
2 digits for date.
2 digits for month.
So finally var1 should hold value as 0403 --- MMDD (11 Replies)
Discussion started by: Asteroid
11 Replies
2. Shell Programming and Scripting
Hi All,
I need to concatenate the values in the array into a variable. Currently the code is :
for (( i=1 ; i <= $minCount ; i++ ))
do
var="${var}""${sample_file}"
done
The output is :
/tmp/1/tmp/2/tmp/3/tmp/4/tmp/5/tmp/6/tmp/7/tmp/8/tmp/9/tmp/10
I need a space between... (1 Reply)
Discussion started by: sh_kk
1 Replies
3. UNIX for Dummies Questions & Answers
Hi,
when I echo the values of two variables that have been set for example:
export FRUIT1=ORANGE
export FRUIT2=APPLE
echo $FRUIT1
ORANGE
echo $FRUIT2
APPLE
as expected but when I echo the following:
echo ${FRUIT1}AND{$FRUIT2}
I was expecting to get:
ORANGEANDAPPLE
but... (6 Replies)
Discussion started by: jaxim
6 Replies
4. UNIX for Dummies Questions & Answers
So, I have huge results file and I need to extract two lines, so far I know that these two commands separately do what I need:
grep "Query=" results.out
grep "Sequence" -2 results.out
Now, I have no idea how to concatenate these results together so that every query matches up with their... (8 Replies)
Discussion started by: Iifa
8 Replies
5. Shell Programming and Scripting
Hi,
I have two files.
cat file.txt
a
b
c
d
cat file1.txt
j
k
l
m
I need the output as
a:j (12 Replies)
Discussion started by: nareshkumar522
12 Replies
6. Shell Programming and Scripting
Read the lines from the file and concatenate the lines into single line then
search the string "INPUT=" from the another file and if "INPUT" is present in that file
assign the concatenate patterns into "INPUT=" pattern.
example:
file1.txt
<some lines>
INPUT =
<some lines>
file2.txt... (3 Replies)
Discussion started by: krsureshmca
3 Replies
7. Shell Programming and Scripting
please help me on this....
cat /xx.txt
2:1
2
2:2
24
8:0
0
9:0
0
Expected result would be
2:1 2
2:2 24
8:0 0
9:0 0 (4 Replies)
Discussion started by: Aditya.Gurgaon
4 Replies
8. Shell Programming and Scripting
I have a script which is migrated from AIX to Linux & now while running it is no able to concatenate string values
The string concatenation step under while loop is not displaying desired result
Please find below the piece of code:
while read EXT_FILE ; do
EXT_FILE=$EXT_FILE.ext.sent
echo... (7 Replies)
Discussion started by: PreetArul
7 Replies
9. Shell Programming and Scripting
awk '{$2=$2":"$8"-"$3;$3=$NF;$4=$NF="";print $0 | $10=$10":"$8"-"$18;$11=$NF;$12=$NF="";print $0 }' design.txt
Trying to concatenate specific fields in a spreadsheet and the others remain unchanged.
I attached an excel spreadsheet (all the data comes from a design.txt), but I put an example... (3 Replies)
Discussion started by: cmccabe
3 Replies
10. UNIX for Beginners Questions & Answers
Hi,
I have the following reports that get generated every 1 hour and this is my requirement:
1. 5 reports get generated every hour with the names "Report.Dddmmyy.Thhmiss.CTLR"
"Report.Dddmmyy.Thhmiss.ACCD"
"Report.Dddmmyy.Thhmiss.BCCD"
"Report.Dddmmyy.Thhmiss.CCCD"... (1 Reply)
Discussion started by: Jesshelle David
1 Replies
LEARN ABOUT SUSE
gc-analyze
GC-ANALYZE(1) GNU GC-ANALYZE(1)
NAME
gc-analyze - Analyze Garbage Collector (GC) memory dumps
SYNOPSIS
gc-analyze [OPTION] ... [file]
DESCRIPTION
gc-analyze prints an analysis of a GC memory dump to standard out.
The memory dumps may be created by calling "gnu.gcj.util.GCInfo.enumerate(String namePrefix)" from java code. A memory dump will be
created on an out of memory condition if "gnu.gcj.util.GCInfo.setOOMDump(String namePrefix)" is called before the out of memory occurs.
Running this program will create two files: TestDump001 and TestDump001.bytes.
import gnu.gcj.util.*;
import java.util.*;
public class GCDumpTest
{
static public void main(String args[])
{
ArrayList<String> l = new ArrayList<String>(1000);
for (int i = 1; i < 1500; i++) {
l.add("This is string #" + i);
}
GCInfo.enumerate("TestDump");
}
}
The memory dump may then be displayed by running:
gc-analyze -v TestDump001
OPTIONS
--verbose
-v Verbose output.
-p tool-prefix
Prefix added to the names of the nm and readelf commands.
-d directory
Directory that contains the executable and shared libraries used when the dump was generated.
--help
Print a help message, then exit.
--version
Print version information, then exit.
SEE ALSO
COPYRIGHT
Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or
any later version published by the Free Software Foundation; with no Invariant Sections, the Front-Cover Texts being (a) (see below), and
with the Back-Cover Texts being (b) (see below). A copy of the license is included in the man page gfdl(7).
(a) The FSF's Front-Cover Text is:
A GNU Manual
(b) The FSF's Back-Cover Text is:
You have freedom to copy and modify this GNU Manual, like GNU
software. Copies published by the Free Software Foundation raise
funds for GNU development.
gcc-4.5 2010-07-05 GC-ANALYZE(1)