I want to update a file that is stored in ClearCase but I only want to update the file if there is
something to update. To check this I use diff and send the result to a text file. When there are no
differences the text file contains the string "Files are identical".
My problem is that I don't know how to get that string and use it as you can see below.
cleartool setview -exec 'cleartool diff <file1> <file2> > <difflog.txt>' <ClearCase wiew>
if result in difflog.txt neq "Files are identical" ; then
check out file2
copy file1 to file2
check in file2
Database storage, where is the exe actually on the disc? Playing a game selected randomly (how to generate random numbers). Error trapping with try..catch to help the code run even if something goes wrong.
Continuing from the seve…
Dialogs (2) modeless dialog and a worker thread. Handling data shared between threads. Recursive functions.
Continuing from the tenth article about sudoku.
Last article we worked with a modal dialog to help maintain informat…
Learn several ways to interact with files and get file information from the bash shell.
ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…