This repository has been archived on 2023-06-18. You can view files and clone it, but cannot push or open issues or pull requests.
soft-an04/ReversalModel/to_csv.sh

11 lines
235 B
Bash
Raw Normal View History

2023-05-09 14:52:07 +00:00
#!/bin/bash
set -e
SCRIPT_DIR=$(cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd)
cd "$SCRIPT_DIR"
cat time.txt | \
sed 's/real//;s/user//;s/sys//;s/ */,/g;' | \
sed 'N; s/\n/ /g;s/, ,/,/;s/,$//' > time.csv