File: atomspml2atomscsv.bash

package info (click to toggle)
camitk 6.0.0-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 389,508 kB
  • sloc: cpp: 103,476; sh: 2,448; python: 1,618; xml: 984; makefile: 128; perl: 84; sed: 20
file content (15 lines) | stat: -rwxr-xr-x 309 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/bash
# Transform atoms of pml into a csv file (index x y z)
# usage:
# atomspml2atomscsv.bash file.pml
in=$1
out=${1/.pml/-atoms.csv}

echo output: $out

grep atomProperties $1 > $out
sed -i 's/^<atomProperties index=\"//' $out
sed -i 's/[a-z]=\"//g' $out
sed -i 's/\"//g' $out
sed -i 's/\/>//g' $out