Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F102915614
summarize-per-trace
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, 11:26
Size
406 B
Mime Type
text/x-shellscript
Expires
Thu, Feb 27, 11:26 (2 d)
Engine
blob
Format
Raw Data
Handle
24383622
Attached To
R3704 elastic-yarn
summarize-per-trace
View Options
#!/bin/bash
if
[
!
$#
-gt 2
]
then
echo
"Usage: ./this TRACE_ID LIST_OF_DIR_IDS"
exit
fi
TRACE
=
$1
shift
while
[
"$1"
!
=
""
]
do
DIR
=
exp
$1
#skip over non-existing directories
if
[
! -d
$DIR
]
then
shift
continue
fi
cd
$DIR
ctr
=
0
if
[
`
ls | grep
$TRACE
.trace | wc -l
`
-ne 0
]
then
ctr
=
1
fi
cd
..
if
[
$ctr
-eq 1
]
then
./summarize-cdf-rel-and-abs
$DIR
echo
fi
shift
done
Event Timeline
Log In to Comment