Handle port with sed