I am trying to delete everything in the parenthesis(including the parenthesis) in this text:
Wind: from the WNW (290 degrees) at 6 MPH (5 KT)
Pressure (altimeter): 29.82 in. Hg (1009 hPa)
Temperature: 80.1 F (26.7 C)
Dew Point: 72.0 F (22.2 C)
Relative Humidity: 76%
Trying to make it look like this:
Wind: from the WNW at 6 MPH
Pressure: 29.82 in. Hg
Temperature: 80.1 F
Dew Point: 72.0 F
Relative Humidity: 76%
This command got rid of just the parenthesis, but I need everything gone in the parenthesis also:
sed 's/(//g;s/)//g'
The command has to remove the space just before the first parenthesis also. The data in the parenthesis will obviously be variable.
Anyone care to take a stab at this?
This is to print the weather data on a live camera shot. I just don't need the data in parenthesis:
http://www.prestonmoore.com/ranchcam/netcam1.jpg
Any help would be appreciated.
Preston