Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Marie Tahon
DnCNN-tensorflow-holography
Commits
d813ab0e
Commit
d813ab0e
authored
Oct 18, 2019
by
Marie Tahon
Browse files
add parser for res file
parent
80d2a9e0
Changes
1
Hide whitespace changes
Inline
Side-by-side
parse_res_file.sh
0 → 100755
View file @
d813ab0e
#!/bin/bash
sessName
=
$1
echo
$sessName
for
i
in
$(
seq
1 25
)
;
do
echo
"img
$i
"
>
file_std
$i
.res
grep
"img
$i
"
$sessName
|
cut
-d
" "
-f5
|
tr
"."
","
>>
file_std
$i
.res
echo
"img
$i
"
>
file_psnr
$i
.res
grep
"img
$i
"
$sessName
|
cut
-d
" "
-f3
|
cut
-d
,
-f1
|
tr
"."
","
>>
file_psnr
$i
.res
done
paste
-d
";"
file_std
*
.res
>
STD.res
paste
-d
";"
file_psnr
*
.res
>
PSNR.res
rm
file
*
.res
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment