Skip to main content
edited title
Link
jlliagre
  • 62.5k
  • 11
  • 124
  • 162

uing Using sed/awk to remove anything after first space

added 32 characters in body
Source Link
Kevin
  • 41.7k
  • 17
  • 91
  • 113

aaaaaaaa 09
bbbbbbbb 90
ccccccccccccccc 89
ddddd 09

aaaaaaaa 09 bbbbbbbb 90 ccccccccccccccc 89 ddddd 09 

useingUsing sed/awk/replace  , in the above text iI want to remove anything that comes after the first space in each line. forFor example the output will be  :

aaaaaaaa
bbbbbbbb
ccccccccccccccc
ddddd

aaaaaaaa bbbbbbbb ccccccccccccccc ddddd 

any help will be appereciated appreciated.

aaaaaaaa 09
bbbbbbbb 90
ccccccccccccccc 89
ddddd 09

useing sed/awk/replace  , in the above text i want to remove anything that comes after the first space in line. for example the output will be  :

aaaaaaaa
bbbbbbbb
ccccccccccccccc
ddddd

any help will be appereciated .

aaaaaaaa 09 bbbbbbbb 90 ccccccccccccccc 89 ddddd 09 

Using sed/awk/replace, in the above text I want to remove anything that comes after the first space in each line. For example the output will be:

aaaaaaaa bbbbbbbb ccccccccccccccc ddddd 

any help will be appreciated.

Source Link
Rana Khan
  • 931
  • 4
  • 10
  • 14

uing sed/awk remove anything after first space

aaaaaaaa 09
bbbbbbbb 90
ccccccccccccccc 89
ddddd 09

useing sed/awk/replace , in the above text i want to remove anything that comes after the first space in line. for example the output will be :

aaaaaaaa
bbbbbbbb
ccccccccccccccc
ddddd

any help will be appereciated .