Skip to content

mpes/GD-tools

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 

Repository files navigation

GD-tools

Repo for GD development

Remove metadata tool

Removes obsolete metadata from graphs. Use the filename of graph as a parameter.

Usage

remove_md.awk [ graph file ] | [ -n | -nobackup | -h | --help ]

Backups are created by default with _bckp suffix. To change this behaviour use -n or --nobackup option.

Make it first executable "chmod +x remove_md.awk" and place it to the folder you like. Ideally already present in your PATH variable.

Use with caution! Report bugs.

Examples

./remove_md.awk ./remove_md.awk /Users/test-project/graph/metadata.grf ./remove_md.awk /Users/test-project/graph/metadata.grf -nobackup ./remove_md.awk /Users/test-project/graph/metadata.grf 2> log.txt

To process all files in a directory use: for f in *.grf; do ./remove_md.awk "$f"; done

Notes

Uses /tmp/remove_md.tmp as a temporary file. Original file gets rewritten. I found it more common usecase than printing it on standard output. Logs are printed on standard error output.

About

Repo for GD development

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages