Web Developer's Virtual Library: Encyclopedia of Web Design Tutorials, Articles and Discussions


WDVL Newsletter

Active Server Pages
JSP/Java Servlets
Microsoft SQL Server
Daily Backup
Dedicated Servers
Streaming Audio/Video
24-hour Support    

jobs.webdeveloper.com

Hiermenus


e-commerce
Partner With Us















Developer Channel
FlashKit.com
JavaScript.com
JavaScriptSource
Developer Jobs
ScriptSearch
StreamingMediaWorld
Web Developer's Journal
Web Developer's Virtual Library
WebDeveloper.com
Webreference
Web Hosts
XMLfiles.com

internet.com
IT
Developer
Internet News
Small Business
Personal Technology

Search internet.com
Advertise
Corporate Info
Newsletters
Tech Jobs
E-mail Offers


The "paste" Utility

July 19, 1998

The "paste" utility allows you to copy fields from a file and send them to standard output. It is usually used to reorder fields in a file.

The "paste" utility follows the basic syntax shown below:

paste -s -d[delimiter] filelist

Consider the example below in which we use the cut utility to extract data from the "ls -l" command and then paste that information back together using the paste utility.

[paste Example]

As usual, the paste utility comes with its own set of options.

Options Description
-d[delimiter] The character that delimits fields
-s Causes the paste to traverse each file separately and use the lines from each file for each column.

[paste -s Example]

[paste delimit Example]

The "cut" Utility
Introduction to UNIX for Web Developers | Table of Contents
Time and Date


Up to => Home / Internet / UNIX / Intro




Jupiter Online Media: internet.comearthweb.comDevx.commediabistro.comGraphics.com

Search:

Jupitermedia Corporation has two divisions: Jupiterimages and Jupiter Online Media

Jupitermedia Corporate Info


Legal Notices, Licensing, & Permissions, Privacy Policy.

Web Hosting | Newsletters | Tech Jobs | Shopping | E-mail Offers