Sponsored Content
Top Forums UNIX for Dummies Questions & Answers Creating mailing labels using gawk! Post 302142618 by vgersh99 on Sunday 28th of October 2007 03:30:45 PM
Old 10-28-2007
Code:
awk -F'|' '{printf("%s %s\n%s\n%s,%s %s\n", $1, $2, $3, $4, $5, $6)}' myDataFile

 

6 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Tape labels

Hello using solaris 2.6 I need to know how to find out the name of DLT tapes connected to the box as dev0. It tried somethings along the lines on mt stat but to no avail. If anyone can help It would be a great help. Thanks Jonathan (1 Reply)
Discussion started by: Jonathan
1 Replies

2. Linux

help creating mailing lists

hey everyone ..i wanted to know how to create mailing lists with sendmail and postifx and wanted to know about mailmans ...would be nice if some has used mailman.. (0 Replies)
Discussion started by: tarunicon
0 Replies

3. Programming

Locally Declared Labels

Hi guys. in the Locally Declared Labels section in "The Definitive Guide to GCC" book there is block of code: #define SEARCH(array, target) ({ __label__ found; typeof (target) _SEARCH_target = (target); typeof (*(array)) *_SEARCH_array = (array); int i, j; int value;... (1 Reply)
Discussion started by: majid.merkava
1 Replies

4. UNIX for Dummies Questions & Answers

Labels in VI

Hi, Is there a concept of lables in vi editor. In mainframes ISPF editor there is a concept of labels where one can label a line say ".a" and after that wherever you are in the file, if one want to go back to that particular line where the label was set...he could do by "l .a"....Is there... (1 Reply)
Discussion started by: whoami191
1 Replies

5. Programming

Adding labels on the scatterplot with R

I would like to label points on a scatterplot. I used the following code. d1 <- structure(list(x1 = c(31.7858,25.8623,23.7758,30.1564,28.179,25.3966,31.5879,40.3233,28.8774,27.4434,37.6055,38.2847,40.5864,38.586,32.5489,38.2273,45.6876,52.3452,42.6654,49.8273), y1 =... (0 Replies)
Discussion started by: avina
0 Replies

6. Shell Programming and Scripting

Sum elements of 2 arrays excluding labels

I'm looking for an efficient way to sum elements from 2 arrays using AWK and preserve header as well as sample names in the output array. I have Ubuntu 16.04 LTS. For example; ARRAY 1 SAMPLE DERIVED ANCESTRAL Sample1 14352 0 Sample2 14352 0 Sample3 14352 0 Sample4 ... (8 Replies)
Discussion started by: Geneanalyst
8 Replies
labelit_ufs(1M) 					  System Administration Commands					   labelit_ufs(1M)

NAME
labelit_ufs - provide and print labels for ufs file systems SYNOPSIS
labelit -F ufs [generic_options] special [ fsname volume] DESCRIPTION
labelit is used to write labels on unmounted disk file systems. Such labels may be used to uniquely identify volumes and are used by vol- ume-oriented programs such as volcopy(1M). OPTIONS
The following option is supported: generic_options options supported by the generic labelit command. See labelit(1M). OPERANDS
The following operands are supported: special name should be the physical disk section (for example, /dev/dsk/c0d0s6). The device may not be on a remote machine. fsname represents the mount point (for example, root, u1, and so on) of the file system. volume may be used to represent the physical volume name. If fsname and volume are not specified, labelit prints the current values of these labels. Both fsname and volume are limited to six or fewer characters. EXIT STATUS
The following exit values are returned: 0 Write or display of labels was successful. non-zero An error occurred. ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWcsu | +-----------------------------+-----------------------------+ SEE ALSO
labelit(1M), volcopy(1M), attributes(5), ufs(7FS) SunOS 5.10 15 Apr 2003 labelit_ufs(1M)
All times are GMT -4. The time now is 09:57 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy