發表文章

目前顯示的是 1月 16, 2019的文章

Level 42

圖片
This article is about the English band. For their 1981 album, see Level 42 (album). For the song by Kaela Kimura, see Level 42 (song). Level 42 Level 42 in 2009 Background information Origin Isle of Wight, England Genres Jazz-funk [1] [2] [3] sophisti-pop [1] [4] dance-rock [1] new wave [3] synthpop [2] Years active 1979–1994, 2001–present Labels Polydor RCA W14/Universal Level42 Website level42.com Members Mark King Mike Lindup Nathan King Sean Freeman Pete Ray Biggin Past members Phil Gould Rowland 'Boon' Gould Gary Husband Alan Murphy Level 42 is an English band formed on the Isle of Wight in 1979. They had a number of UK and worldwide hits during the 1980s and 1990s. Their most successful single in the UK was "Lessons in Love", which reached number three on the UK Singles Chart, and number 12 on the US Billboard Hot 100 chart, upon its release in 1986. The earlier single, "Something Ab

How shall I perform multiline matching and substitution using awk?

圖片
1 In a text file, ignoring any trailing whitespace at the end of each line, I assume that if a line is not ended with a digit, then there is a line break between the line and the next line, and I would like to find these line breaks and then concatenate them into one line. For example line 1 li ne 2 There is a line break between the second and the third lines and I should modify the file to be line 1 line 2 To find such line breaks, I need to do multiline matching. I does it by changing record separator, but the following doesn't work: $ awk 'BEGIN{RS="";}; { if (match($0, /[^[:digit:] ] *n/)) print $0;} ' inputfile To concatenate two lines separated by a line break, I am still wondering. Thanks. text-processing awk gawk