Skip to content

OpenCoreData/ocdJanusUtils

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

##ocdJanus Utilities

  1. Put all selects into a file for later use...

grep SELECT inputStage1/janus_structs_20151023.txt > inputStage1/selectStatements.txt

  1. Remove all the SELECT commands with:

sed '/SELECT/d' janus_structs_20151023.txt > janus_structs_20151023_noselect.txt

  1. Split the struct file with

awk -f awkcode.awk structdata.txt awk -f ../awkcode.awk ../inputStage1/janus_structs_20151023_noselect.txt

  1. clean up blanks and spaces

find . -name "part*" -exec sed -i '/^[[:space:]]$/d;s/[[:space:]]$//' {} ; find . -name "part*" -exec sed -i ".bck" '/^ *$/d' {} ;

  1. the rename.sh renames the partX.txt files based on the struct nameint he file ./rename.sh

  2. Next we remove all likes that container a { or a }

$ find . -name "Janus*" -exec sed -i '/}/d' {} ;
$ find . -name "Janus*" -exec sed -i '/{/d' {} ;

About

Some utility code to support the ocdJanus code base.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages