Clearcase ucm baseline differences report in xls format


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Clearcase ucm baseline differences report in xls format
# 1  
Old 01-31-2012
Clearcase ucm baseline differences report in xls format

Hi All,


Can any one help me to get the shell/perl scripts for the below requirements.

1: To get the clearcase checkin's information between two lables
generate a formatted Xls output
and to find the added changed and removed files and versions between
the ClearCase baselines.

2 :script to perform ClearCase difference between baselines and
generate a formatted Xls output to find the added changed and removed
files and versions between the ClearCase baselines

---------- Post updated at 04:11 AM ---------- Previous update was at 03:47 AM ----------

I AM USING BELOW SCRIPT
Code:
#! /bin/bash
# Script to show diffs between 2 ClearCase labels

#cleartool location
exportCT=/usr/atria/bin/cleartool

functionusage() {
echo"Usage: cc_dif.sh <new_label> <old_label>"
exit
}

if[ $# -ne 2 ] ; then
usage
exit
else
echo-e "\t-- New label: $1 --"
echo-e "\t-- Old label: $2 --\n"
fi

${CT} find. -version "{(lbtype($1) && ! lbtype($2))}"-exec'cleartool describe -fmt "%Xn \t\tBy: %Fu (%Lu) \n" $CLEARCASE_PN'| grep-E '.*\.(c|cpp|h|hpp|xml)@'



When i run this script in linux it's giving some junk data not the required output

Last edited by Scott; 01-31-2012 at 05:15 AM.. Reason: Code tags
# 2  
Old 01-31-2012
No environemt to test your cleartool command, but from the first feeling, you need some spaces in your find command.
Code:
${CT} find . -version "{(lbtype($1) && ! lbtype($2))}" -exec 'cleartool describe -fmt "%Xn \t\tBy: %Fu (%Lu) \n"  $CLEARCASE_PN'| grep -E '.*\.(c|cpp|h|hpp|xml)@'

# 3  
Old 01-31-2012
I have tried with spaces also for me it's not working , if u change command also no prob.. but i need the baseline diff detailes output in xls or any formatt .

Can u pls help .
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Converting text files to xls through awk script for specific data format

Dear Friends, I am in urgent need for awk/sed/sh script for converting a specific data format (.txt) to .xls. The input is as follows: >gi|1234|ref| Query = 1 - 65, Target = 1677 - 1733 Score = 8.38, E = 0.6529, P = 0.0001513, GC = 46 fd sdfsdfsdfsdf fsdfdsfdfdfdfdfdf... (6 Replies)
Discussion started by: Amit1
6 Replies

2. Shell Programming and Scripting

Output in xls format

Hi, I need the output of sql query which is executed using a shell script to xls file format. (10 Replies)
Discussion started by: Arasu
10 Replies

3. Shell Programming and Scripting

perl module to convert xlsx format to xls format

Hi Folks, I have written a perl script that reads data from excel sheet(.xls) using Spreadsheet::ParseExcel module. But the problem is this module doesn't work for excel sheets with extension .xlsx. I have gone through Spreadsheet::XLSX module with which we can read from .xlsx file directly.... (1 Reply)
Discussion started by: giridhar276
1 Replies

4. Shell Programming and Scripting

shell script for clearcase ucm

how to write shell script to get the checkin information between two composite baselines in clearcase ucm . (0 Replies)
Discussion started by: saku
0 Replies

5. Shell Programming and Scripting

Perl Script to compare between two baseline in UCM

Hello guys, I have written a script which will differentiate between two baseline in UCM: The two baseline is passed as an argument from command line. Now i can see the output in a .txt file,where it will give you the ouput in this way..... ... (2 Replies)
Discussion started by: suvenduperl
2 Replies

6. UNIX for Dummies Questions & Answers

Unix script to convert .csv file to.xls format

I have a .csv file in Unix box i need a UNIX script to convert the.csv files to.xls format. Its very urgent please help me. (1 Reply)
Discussion started by: moon_friend
1 Replies

7. Shell Programming and Scripting

Convert a csv file to an xls format

Hi, I have a file coming in xxx.txt(csv format) i do some work on it and i need to send out as a .xls format. Is there any way there is some code i can use in my script to convert this? I'm struggling on this. Thanks (11 Replies)
Discussion started by: Pablo_beezo
11 Replies

8. Shell Programming and Scripting

Generating xls with utf-8 format

Hi All, This is my first mail to the group.I would like to generate an attachment in xls format which contains accented characters that are supported by UTF-8 format. However, I am not able to get them as i wished. Can anyone help me in this regard.I would like to know the mail format for... (0 Replies)
Discussion started by: kalyanramurs
0 Replies

9. Shell Programming and Scripting

conert the pipe delimated file into xls format

Hi I have spool file which is pipe delimated and i want to convert it into xls . Is any tool or method availabe in UNIX for this kind of conversion (2 Replies)
Discussion started by: prasadg
2 Replies
Login or Register to Ask a Question