02-01-2012
-f stands for if file exist when prefix with ! it implies if file not exist then ...
This User Gave Thanks to joshiamit For This Post:
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hello!!!
I need a korn shell script in AIX that inside sftp environment, changes a remote directory, lists the files inside it, and stores in an array.
I got it working before make a sftp, but after.. I can't..
The way it is, it lists the files in local path... so.. not what I want, but... (1 Reply)
Discussion started by: alienET
1 Replies
2. Shell Programming and Scripting
I'm trying to write a script to verify that file systems mounted properly after a reboot or a script that any system admin can run to verify that all file systems are mounted properly. With HP-UX, I can run a mount -aQ and it will mount file systems not already mounted and report back any... (1 Reply)
Discussion started by: DRPearce
1 Replies
3. AIX
Ho do I find out the verion of the Kron shell on my client`s system ?
There is no one to ask. They are not knowledged enough (hard to believe but yes).
Also, on that AIX 4.2, I am trying to figure out how to do a grep using a search patter like below but does not seam to work. The '*' do... (11 Replies)
Discussion started by: Browser_ice
11 Replies
4. Shell Programming and Scripting
In a Korn shell script I have,
cat ../header | sed -e 's/flag1/$cnumb/g' > header.txt
The header is short
{{Company flag1}}
But the result in header.txt is
{{Company $cnumb}}
The value of $cnumb is 120. I am trying to get the value of $cnumb into the header.
I have tried /'$cnumb'/g,... (10 Replies)
Discussion started by: jcarrott
10 Replies
5. AIX
Greetings Aix gurus,
I have been appointed the task to port my SAS environment on HP-UX to AIX...
I have been able to solve most issues but I am stuck with the following lines (these were easy to find, since in shell scripts but I found out that there are plenty more and encapsulated in SAS... (1 Reply)
Discussion started by: vbe
1 Replies
6. Shell Programming and Scripting
Hi
I wanted to print/store just a specific element of the list . I have got the list as an output of grep command.
here is code snap below :
end_no=`egrep -ni '!return code: 0|return code other than 0' temp.log | cut -d':' -f1`
this will return the line numbers in end_no. I just... (2 Replies)
Discussion started by: Shell@korn
2 Replies
7. Shell Programming and Scripting
Korn Shell in AIX 6.1
I want to print the below shown pipe (|) separated list line by line.
line=es349889|nhb882309|ts00293|snh03524|bg578835|bg37900|rnh00297|py882201|sg175883
for i in line
do
echo "Hello $line "
done
I wanted to execute the above for loop. But i can't even set the... (3 Replies)
Discussion started by: polavan
3 Replies
8. Shell Programming and Scripting
Hi,
Consider the code snippet below:
fun()
{
while read x
do
echo $x
done < somefile_that_does_not_exists
}
fun
echo I am here
Korn shell on HPUX prints the message "I am here", while the behaviour is different on AIX korn shell. We do not get the message on AIX. Any... (5 Replies)
Discussion started by: 116@434
5 Replies
9. Shell Programming and Scripting
Guys, please help! I am currently using an AIX server however whenever I tried to use the typeset -F3, the variable is resulting with a "#".
In the given example below, I declared x to be a decimal holding 3 decimal places = 1.455. However whenever I tried to echo the $x, the resulting value... (9 Replies)
Discussion started by: zzavilz
9 Replies
10. UNIX for Beginners Questions & Answers
Hello, I'm new to this forum.
Forgive a question that may have been asked, but I would like to get advice on options for backups of an AIX server.
The AIX server in question has about 2TB of storage, with 3 Oracle databases configured on it
We're currently using tar backups to tape, LTO... (1 Reply)
Discussion started by: terrya
1 Replies
LEARN ABOUT DEBIAN
otfprofile-mpi
OTFPROFILE-MPI(1) User Commands OTFPROFILE-MPI(1)
NAME
otfprofile-mpi - otfprofile-mpi
DESCRIPTION
otfprofile-mpi - generate a profile of a trace in LaTeX format.
Syntax: otfprofile-mpi [options] <input file name>
options:
-h, --help
show this help message
-V show OTF version
-v increase output verbosity (can be used more than once)
-p show progress
-f <n> max. number of filehandles available per rank (default: 50)
-b <size>
set buffersize of the reader (default: 1048576)
-o <prefix>
specify the prefix of output file(s) (default: result)
-g <n> max. number of process groups in LaTeX output (range: 1-16, default: 16)
-c, --cluster[ <alg>]
do additional clustering of processes/threads using comparison algorithm <alg> (KMEANS or CLINKAGE) (default comparison algorithm:
KMEANS)
-m <mapfile>
write cluster mapping to <mapfile> (implies -c, default: result.map)
-s <prefix>
call otfshrink to apply the cluster mapping to input trace and produce a new trace named <prefix> with symbolic links to the origi-
nal (implies -c)
-H use hard groups for CLINKAGE clustering (implies --cluster CLINKAGE)
-q <0-1>
quality threshold for CLINKAGE clustering (implies --cluster CLINKAGE, default: 0.1)
--stat read only summarized information, no events
--[no]csv
enable/disable producing CSV output (default: disabled)
--[no]tex
enable/disable producing LaTeX output (default: enabled)
PDF creation requires the PGFPLOTS package version >1.4 http://sourceforge.net/projects/pgfplots/
otfprofile-mpi - generate a profile of a trace in LaTeX format.
Syntax: otfprofile-mpi [options] <input file name>
options:
-h, --help
show this help message
-V show OTF version
-v increase output verbosity (can be used more than once)
-p show progress
-f <n> max. number of filehandles available per rank (default: 50)
-b <size>
set buffersize of the reader (default: 1048576)
-o <prefix>
specify the prefix of output file(s) (default: result)
-g <n> max. number of process groups in LaTeX output (range: 1-16, default: 16)
-c, --cluster[ <alg>]
do additional clustering of processes/threads using comparison algorithm <alg> (KMEANS or CLINKAGE) (default comparison algorithm:
KMEANS)
-m <mapfile>
write cluster mapping to <mapfile> (implies -c, default: result.map)
-s <prefix>
call otfshrink to apply the cluster mapping to input trace and produce a new trace named <prefix> with symbolic links to the origi-
nal (implies -c)
-H use hard groups for CLINKAGE clustering (implies --cluster CLINKAGE)
-q <0-1>
quality threshold for CLINKAGE clustering (implies --cluster CLINKAGE, default: 0.1)
--stat read only summarized information, no events
--[no]csv
enable/disable producing CSV output (default: disabled)
--[no]tex
enable/disable producing LaTeX output (default: enabled)
PDF creation requires the PGFPLOTS package version >1.4 http://sourceforge.net/projects/pgfplots/
otfprofile-mpi 1.10.2 May 2012 OTFPROFILE-MPI(1)