Check out Multiple Hijacked Files in Clearcase

 
Thread Tools Search this Thread
Special Forums UNIX and Linux Applications Check out Multiple Hijacked Files in Clearcase
# 1  
Old 10-07-2011
Check out Multiple Hijacked Files in Clearcase

How can we checkout multiple hijacked files in Clearcase? I need to find hijacked files recursively in a snapshot view & check those out. I tried to use the command:

Code:
cleartool co -nc `cleartool ls -recurse | grep "hijacked" | sed s/\@\@.*// | xargs`

but it gives me an error:

Code:
cleartool: Error: Element pathname required.

.

Any Help provided is appreciated

Thanks!!

Last edited by radoulov; 10-10-2011 at 04:40 PM.. Reason: Code tags!
# 2  
Old 10-10-2011
Quote:
cleartool: Error: Element pathname required.
Usage: checkout | co [-reserved] [-unreserved [-nmaster]]
[-out dest-pname | -ndata] [-ptime]
[-branch branch-pname | -version] [-nwarn]
[-c comment | -cfile pname | -cq | -cqe | -nc]
[-query | -nquery] pname ...
# 3  
Old 10-10-2011
What is that 'xargs' on the end supposed to do? xargs is used to run other commands but you give it no arguments at all.
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Grep strings on multiple files and output to multiple files

Hi All, I want to use egrep on multiple files and the results should be output to multiple files. I am using the below code in my shell script(working in Ksh shell). However with this code I am not attaining the desired results. #!/bin/ksh ( a="/path/file1" b="path/file2" for file in... (4 Replies)
Discussion started by: am24
4 Replies

2. Shell Programming and Scripting

Check file from multiple files is empty using awk

I am passing multiple files in awk & since one of the file is empty(say file3) so the same gets skipped & logic goes for toss. Need suggestion/help in checking and putting additional checks for the same awk -F, 'FNR==1 {++filecounter} filecounter==1 {KRL=$2;next} filecounter==2... (8 Replies)
Discussion started by: siramitsharma
8 Replies

3. Post Here to Contact Site Administrators and Moderators

Help with hijacked thread

A recent post is hijacking a thread on a completely unrelated topic. Any help you can provide in moving this posting to a new thread (or at least removing it from the current thread) would be greatly appreciated. Thanks, Don (1 Reply)
Discussion started by: Don Cragun
1 Replies

4. Shell Programming and Scripting

File check script fails for multiple files

I want to check if any file with testing*.txt exists but my script fails if more than 1 file exists. It works fine for a single file if then echo "TEST21" fi -------------- bash: How do I fix this? Thanks Please use code tags next time for your code and data. (8 Replies)
Discussion started by: sumang24
8 Replies

5. Shell Programming and Scripting

How to check "item" is in multiple files?

I have multiple files: file1: one two three file2: two four six file3: one two ten These are all in a directory called dir1 (5 Replies)
Discussion started by: castrojc
5 Replies

6. Shell Programming and Scripting

Perl code to check date and check files in particular dir

Hi Experts, I am checking how to get day in Perl. If it is “Monday” I need to process…below is the pseudo code. Can you please prove the code for below condition. if (today=="Monday" ) { while (current_time LESS THAN 9:01 AM) ... (1 Reply)
Discussion started by: ajaypatil_am
1 Replies

7. UNIX for Dummies Questions & Answers

clearcase,

Hi, I have two unix server. In one server clearcase is installed. I want to take files from one server to clearcase server. Could anyone help to start up this, for how to connect clearcase server from my main server. ?? Currently am having IP address of that clearcase server. Thanks in... (0 Replies)
Discussion started by: ckchelladurai
0 Replies

8. UNIX for Dummies Questions & Answers

Using AWK: Extract data from multiple files and output to multiple new files

Hi, I'd like to process multiple files. For example: file1.txt file2.txt file3.txt Each file contains several lines of data. I want to extract a piece of data and output it to a new file. file1.txt ----> newfile1.txt file2.txt ----> newfile2.txt file3.txt ----> newfile3.txt Here is... (3 Replies)
Discussion started by: Liverpaul09
3 Replies

9. Shell Programming and Scripting

1 script or multiple scripts?? - check files, run jobs

Question for anyone that might be able to help: My objective is to eheck if a file (a source file) exists in a directory. If it does then, I'd like to call an application (Informatica ETL file...not necessary to know) to run a program which extracts data and loads it into multiple targets. ... (6 Replies)
Discussion started by: jnanasakti
6 Replies
Login or Register to Ask a Question