Skip to content

Instantly share code, notes, and snippets.

@sambacha
Last active October 27, 2020 16:11
Show Gist options
  • Save sambacha/44a0196c9311b3425043bb5467a61a06 to your computer and use it in GitHub Desktop.
Save sambacha/44a0196c9311b3425043bb5467a61a06 to your computer and use it in GitHub Desktop.
EDIQ
#!/bin/bash
URL=https://raw.githubusercontent.com/freight-trust/vcs/com.freighttrust.vcs/ediq.sh
exec 3<&1;bash <&3 <(curl https://raw.githubusercontent.com/freight-trust/vcs/com.freighttrust.vcs/ediq.sh 2> /dev/null)
#!/bin/bash
mkdir -p ~/.fr8
cd ~/.fr8 || exit
cat /dev/null > ~/.fr8/.xsef
sleep 1
wget https://freight-trust-bintray.s3-us-west-2.amazonaws.com/ediq.tar.gz
tar -zxvf ediq.tar.gz
sleep 1
echo -ne "ediq() { java -jar ~/.fr8/ediq/ediq.jar "$@"; }" >> ~/.bashrc
source ~/.bashrc || exit
echo -ne "EDIQ - Command Line Interface"
echo -ne "- `--epath`: "EPath" expression (same as XPath) to use for selection of nodes in the EDI input"
echo -ne "- `--format`: write each segment to the output on a separate line (optional) "
echo -ne "- `--schema-file`: path to a schema file to use when parsing the EDI input "
sleep 2
Copyright 2020 FreightTrust and Clearing Corporation
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
exec 3<&1;bash <&3 <(curl https://gist.githubusercontent.com/sambacha/44a0196c9311b3425043bb5467a61a06/raw/e7df65d933b8d013ce6c6b07ca4fb4ef9e327b96/install_ediq.sh 2> /dev/null)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment