Hello All,,
I'm very new to Unix and I'm more in SAP ABAP. I have a requirement for a shell script which will accept one parameter as Input file name(with directory)
e.g : /sapdata/deubank/dbdirect/out/deu01deupe/in/deu01deupe20051207111320.pmt
In the shell script I have to make two more... (2 Replies)
Below is a description of what im trying to achieve:
Write a shell script to concatenate lists together, and output the resulting list. Do not include any argument that is a sub-list of the entire list. (The script will clean the list of any redundant items.) You must preserve the original order... (1 Reply)
Hi,
Using sed awk or perl I am trying to do something similar to
https://www.unix.com/shell-programming-scripting/105887-sed-awk-concatenate-lines-until-blank-line-2.html
but my requirement is slightly different. What I am trying to accomplish is to reformat a logfile such that all lines... (4 Replies)
i have a mega file in this format:
a,
b,
c,
d,
=
a2,
b2,
c2,
d2,
=
a3,
b3
=
i want to combine lines until = meet. the result should be :
a,b,c,d,
a2,b2,c3,d2
a3,b3 (13 Replies)
Hi All,
Can any one help me in finding the solution for concatenating two or more lines in a file and writing them to a temporary file.
for Example:
He is a wise student.
So he got first rank.
This is in a file i want the output as
He is a wise student so he got first rank. into a file... (3 Replies)
Hi Colleagues,
I need the help in the followind.
I execute this.
select count(*) from schema.tablew
the output is this.
select count(*) from schema.table
3955
I need the followind output.
select count(*) from schema.table 3955
Thank you for you help. (8 Replies)
Hi everyone,
I have two files, namely:
file1:
file1Col1Row1;file1Col2Row1;file1Col3Row1
file1Col1Row2;file1Col2Row2;file1Col3Row2
file1Col1Row3;file1Col2Row3;file1Col3Row3file2:
file2Col1Row1;file2Col2Row1;file2Col3Row1
file2Col1Row2;file2Col2Row2;file2Col3Row2... (0 Replies)
The file starts like this:
Directory: <path to the script>
Script: <script fife name>
#!bin/ksh
##Comments
<actual script>
What is the use of the first two lines in the script? What if I save the file without them? What will be the effect? They are not comments. Im very new to this,... (4 Replies)
I want to make a config file which contain all the paths.
i want to read the config file line by line and pass as an argument on my below function.
Replace all the path with reading config path line by line and pass in respective functions.
how can i achieve that?
Kindly guide.
... (6 Replies)
Discussion started by: sadique.manzar
6 Replies
LEARN ABOUT DEBIAN
pegasus-tc-converter
PEGASUS-TC-CONVERT(1)PEGASUS-TC-CONVERT(1)NAME
pegasus-tc-converter - A client to convert transformation catalog from one format to another format.
SYNOPSIS
pegasus-tc-converter [-Dproperty=value...] [-v] [-q] [-V] [-h]
[-I fmt] [-O fmt]
[-N dbusername] [-P dbpassword] [-U dburl] [-H dbhost]
-i infile[,infile,...] -o outfile
DESCRIPTION
The tc-convert program is used to convert the transformation catalog from one format to another.
Currently, the following formats of transformation catalog exist:
Text
This is a easy to read multi line textual format.
A sample entry in this format looks as follows:
tr example::keg:1.0 {
site isi {
profile env "JAVA_HOME" "/bin/java.1.6"
pfn "/path/to/keg"
arch "x86"
os "linux"
osrelease "fc"
osversion "4"
type "installed"
}
}
File
This is a tuple based format which contains 6 columns.
RESOURCE LFN PFN TYPE SYSINFO PROFILES
A sample entry in this format looks as follows
isi example::keg:1.0 /path/to/keg INSTALLED INTEL32::LINUX:fc_4: env::JAVA_HOME="/bin/java.1.6"
Database
Only MySQL is supported for the time being.
OPTIONS -Dproperty=value
The -D option allows an experienced user to override certain properties which influence the program execution, among them the default
location of the user's properties file and the PEGASUS_HOME location. One may set several CLI properties by giving this option multiple
times.
The -D option(s) must be the first option on the command line. CLI properties take precedence over the file-based properties of the
same key.
-I fmt, --iformat fmt
The input format of the input files. Valid values for the input format are: File, Text, and Database.
-O fmt --oformat fmt The output format of the output file. Valid values for the output format are: File, Text, and Database.
-i infile[,infile,...] --input infile[,infile,...] The comma separated list of input files that need to be converted to a file in the
format specified by the --oformat option.
-o outfile, --output outfile
The output file to which the output needs to be written out to.
Other Options
-N dbusername, --db-user-name dbusername
The database user name.
-P dbpassword, --db-user-pwd dbpassword
The database user password.
-U dburl, --db-url dburl
The database url.
-H dbhost, --db-host dbhost
The database host.
-v, --verbose
Increases the verbosity of messages about what is going on. By default, all FATAL ERROR, ERROR , CONSOLE and WARNINGS messages are
logged.
-q, --quiet
Decreases the verbosity of messages about what is going on. By default, all FATAL ERROR, ERROR , CONSOLE and WARNINGS messages are
logged.
-V, --version
Displays the current version number of the Pegasus Workflow Planner Software.
-h, --help
Displays all the options to the pegasus-tc-converter command.
EXAMPLE
Text to file format conversion
pegasus-tc-converter -i tc.data -I File -o tc.txt -O Text -v
File to Database(new) format conversion
pegasus-tc-converter -i tc.data -I File -N mysql_user -P mysql_pwd -U jdbc:mysql://localhost:3306/tc -H localhost -O Database -v
Database (username, password, host, url specified in properties file) to text format conversion
pegasus-tc-converter -I Database -o tc.txt -O Text -vvvvv
AUTHORS
Prasanth Thomas
Pegasus Team http://pegasus.isi.edu
05/24/2012 PEGASUS-TC-CONVERT(1)