The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Operating Systems > Linux
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #3 (permalink)  
Old 06-23-2009
sire sire is offline
Registered User
  
 

Join Date: Jun 2009
Posts: 2
awk/sed for splitting a field into two

Many thanks scottn! It worked perfectly.

Quote:
Originally Posted by scottn View Post
You could try:


Code:
awk '{sub( "-", " ", $2); print}' your_file