Meino Christian Cramer wrote: [lots of complaints] > My current problem is: > The script combines two consecutive lines of text, which consist > of different contents. The second line will be deleted after the > contents of both are processed. No idea what you are trying to do, but I'll go ahead and suggest that you open the file and issue the following command:
:2,$%g/^/join If you don't like the results and want your original file back then just type u (for undo). > I want to run the script over an input of different length. The > first line has to be skipped (it is the famous "#!/bin/zsh" :O). > > My problem here is, that the script does not stop corrrectly. What script? All the scripts indicated in the post concern removal of white space at the beginning and end of lines. How does removal of leading and trailing white space relate to the goal of "combine two consecutive lines ..."? [some more complaints] It would help if you worked on defining what you are trying to achieve and presenting what exactly you did and the results of your attempts. --Suresh