NFSURLCONV(1)

NAME
nfsurlconv - convert hostname,port,path from/to a nfs://-URL

SYNOPSIS
nfsurlconv [ options ] hostnameportpath2nfsurl hostname port path
nfsurlconv hostnamepath2nfsurl hostname path
nfsurlconv url2hostnameportpath url
nfsurlconv url2hostportpath url
nfsurlconv url2compound url
nfsurlconv --man

DESCRIPTION
nfsurlconv convert { hostname, port, path } from/to a nfs://-URL.

OPTIONS
[D debug flag -] Enable debugging. [U urlencoding string encoding] Encoding method used rfc1738 or posixshell/posixshellsafe (default).

EXAMPLES
Example 1: Convert hostname bbb, port 12049 and path /a/b/c to a nfs://-URL $ nfsurlconv hostnameportpath2nfsurl bbb 12049 "/a/b/c" url=nfs://bbb:12049//a/b/c

Example 2:

Convert URL nfs://bbb:12049//a/b/c to ( hostname=, port=, path= ) $ nfsurlconv.ksh url2hostnameportpath nfs://bbb//a/b/c hostname=bbb port=2049 path=/a/b/c

Example 3:

Convert URL nfs://bbb:12049//a/b/c to ( hostport=, path= ) $ nfsurlconv.ksh url2hostportpath nfs://bbb//a/b/c hostport=bbb path=/a/b/c

Example 4:

Convert URL url=nfs://10.49.202.230//%e3%81%a0%e3%81%84%e3%81%99%e3%81%8d%21%e3%83%9e%e3%82%a6%e3%82%b9_2/ to ( hostport=, path= ) $ nfsurlconv.ksh url2hostportpath "nfs://10.49.202.230//%e3%81%a0%e3%81%84%e3%81%99%e3%81%8d%21%e3%83%9e%e3%82%a6%e3%82%b9_2/" hostport=10.49.202.230 path=/bigdisk/<japanese-characters>_2/

Example 5:

Convert URL nfs://bbb:12049//a/b/c?param1=pvalue1&param2=pvalue2 to ( hostport=, path=, urlparameter= ) $ nfsurlconv.ksh url2hostportpath "nfs://bbb:12049//a/b/c?param1=pvalue1&param2=pvalue2" hostport=bbb:12049 path=/a/b/c urlparameter=( name=param1 value=pvalue1 ) urlparameter=( name=param2 value=pvalue2 )

SEE ALSO
ksh93(1),ssh(1),mount.nfs(8),nfs(5)

IMPLEMENTATION
nfsurlconv (Roland Mainz) 2024-12-04 Roland Mainz <roland.mainz@nrubsig.org>