Skip to content
  • process a hierarchy with :

    #!/bin/sh -eu
    
    RCMD=$(realpath "${0}")
    CMDD=$(dirname "${RCMD}")
    
    src=$(realpath "$1")
    dst=$(realpath "$2")
    sep="${3}"
    flags="${4}"
    
    find . | while read -r p;
    do
    	if [ -d "$p" ];
    	then
    		mkdir -p "${dst}/${p}"
    	else
    		awk -f "${CMDD}"/ssccpp.awk -vsep="${sep}" -vflags="${flags}" < "${p}" > "${dst}/${p}"
    	fi
    done
    Edited by setop
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment