The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #4 (permalink)  
Old 02-10-2009
zaxxon's Avatar
zaxxon zaxxon is offline Forum Staff  
Moderator
  
 

Join Date: Sep 2007
Location: Germany
Posts: 2,285
Looks like homework... a bit... and posting homework/classroom stuff here is forbidden.. nevertheless. Your part is to look up how it works

Code:
root@isau02:/data/tmp/testfeld> cat infile
unix is an OS
it is open source
it supports shell programming
we can write shell scripts
root@isau02:/data/tmp/testfeld> sed 'N; s/\n/ /' infile
unix is an OS it is open source
it supports shell programming we can write shell scripts