Unix Program for Converting SIMTEL20 FTP Server Filenames

Bill Edwards edwards at harvard.ARPA
Mon Jul 29 11:09:27 AEST 1985


This script should also deal with file names you get off SIMTEL20,
CU20B etc.  File names are looked for on stdin, and are emitted on
stdout.

# another go at civilizing names of files from arpa

{
	colons = split ($0, colar, ":")
	if (colons == 0)
	{
		angles = split ($0, angar, ">")
	}
	else
	{
		angles = split (colar[colons], angar, ">")
	}
	periods = split (angar[angles], perar, ".")
	print perar[1]"."perar[2] | "tr '[A-Z]' '[a-z]'"
}



More information about the Comp.sources.unix mailing list