#!/bin/sh args="" while [ $# -gt 0 ]; do if [ -z "$(echo -n "$1" | grep ".*\.pcl")" ]; then args="$args $1" else args="$args $(realpath -- "$1")" fi shift done cd @GHOSTPCLDIR@ ./gpcl6 "$args"
#!/bin/sh args="" while [ $# -gt 0 ]; do if [ -z "$(echo -n "$1" | grep ".*\.pcl")" ]; then args="$args $1" else args="$args $(realpath -- "$1")" fi shift done cd @GHOSTPCLDIR@ ./gpcl6 "$args"