Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F102896010
copy_regular_from_batch.sh
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Tue, Feb 25, 07:24
Size
431 B
Mime Type
text/x-shellscript
Expires
Thu, Feb 27, 07:24 (1 d, 21 h)
Engine
blob
Format
Raw Data
Handle
24447610
Attached To
R3704 elastic-yarn
copy_regular_from_batch.sh
View Options
#!/bin/bash
if
[
$#
-ne 2
]
then
echo
"Usage: $0 src_batch dest_batch"
exit
fi
SRC_EXPS
=
$(
eval echo
`
cat
$1
`
)
DEST_EXPS
=
$(
eval echo
`
cat
$2
`
)
for
exp in
$DEST_EXPS
;
do
[
! -d
$exp
]
&&
continue
TRACE_FILE
=
$(
basename
$(
ls
$exp
/*.trace
))
for
src in
$SRC_EXPS
;
do
[
! -f
$src
/
$TRACE_FILE
]
&&
continue
echo
"Matching $exp with $src"
cp
$src
/1-regular*
$exp
break
done
done
Event Timeline
Log In to Comment