fork download
  1. #!/bin/bash
  2. s="static/conf
  3. static/conf/server.xml"
  4. awk 'BEGIN{OFS=FS="/"} {$1="";sub(/^\/+/, "")}1' <<< "$s"
Success #stdin #stdout 0s 4392KB
stdin
Standard input is empty
stdout
conf
conf/server.xml