Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F91707979
updateref.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
Wed, Nov 13, 17:20
Size
443 B
Mime Type
text/x-shellscript
Expires
Fri, Nov 15, 17:20 (2 d)
Engine
blob
Format
Raw Data
Handle
22308858
Attached To
rLAMMPS lammps
updateref.sh
View Options
#!/bin/sh
for
r in *.restart-*-* ;
do
\
t
=
`
echo
$r
| sed -e
's/.restart-/.ref-/'
`
c
=
`
echo
$r
| sed -e
's/.restart-/.coeff-/'
`
s
=
`
echo
$r
| sed -e
's/.restart-/.data-/'
`
test
-f
$s
||
echo
"no data file $s found for restart $r"
test
-f
$s
||
continue
grep -v LAMMPS
$s
| sed -e
's/-0\.0000000000/0.0000000000 /g'
> refoutput/
${
t
}
test
-f
$c
&&
grep -v LAMMPS
$c
| sed -e
's/-0\.0000000000/0.0000000000 /g'
>> refoutput/
${
t
}
done
Event Timeline
Log In to Comment