08-21-2008
Here is what I have,
rev sftplist.txt | cut -d ' ' -f2- | rev | tr ' ' '\n' > users.txt
This is what I get.
tr: 0653-712 The combination of options and String parameters is not legal.
Usage: tr [ -[c|C] | -[c|C]ds | -[c|C]s | -ds | -s ] [-A] String1 String2
tr { -[c|C]d | -[c|C]s | -d | -s } [-A] String1
Last edited by synergy_texas; 08-21-2008 at 06:51 PM..
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Is there a command that sets a variable length?
I have a input of a variable length field but my output for that field needs to be set to 32 char.
Is there such a command?
I am on a sun box running ksh
Thanks (2 Replies)
Discussion started by: r1500
2 Replies
2. Shell Programming and Scripting
Any help to read the contents of a variable length csv ....??(using awk)
The csv mite look like this :
anjali,ram,rahul,mohini,sam,.... and so on ...
I need to pick up each name..
Thanks in advance
SD (3 Replies)
Discussion started by: shweta_d
3 Replies
3. Shell Programming and Scripting
As part of a bigger task, I had to read thru a file and separate records into various batches based on a field. Specifically, separate records based on the value in the batch field as defined below. The batch field left-justified numbers.
The datafile is here
> cat infile
12345 1 John Smith ... (5 Replies)
Discussion started by: joeyg
5 Replies
4. Shell Programming and Scripting
Hello,
I really would appreciate some help with a bash script for some string manipulation on an SQL dump:
I'd like to be able to rename "sites/WHATEVER/files" to "sites/SOMETHINGELSE/files" within the sql dump.
This is quite easy with sed:
sed -e... (1 Reply)
Discussion started by: otrotipo
1 Replies
5. Shell Programming and Scripting
I have a number of unix text files containing fixed-length records (normal unix linefeed terminator) where I need to find odd records which are an incorrect length.
The data is not validated and records can contain odd backslash characters and control characters which makes them awkward to process... (2 Replies)
Discussion started by: methyl
2 Replies
6. Shell Programming and Scripting
Very, very new to unix scripting and have a unique situation. I have a file of records that contain 3 records types:
(H)eader Records
(D)etail Records
(T)railer Records
The Detail records are 82 bytes in length which is perfect. The Header and Trailer records sometimes are 82 bytes in... (3 Replies)
Discussion started by: jclanc8
3 Replies
7. Shell Programming and Scripting
Hi,
Can anyone help with a effective solution ?
I need to change a variable length text field (between 1 - 18 characters) to a fixed length text of 18 characters with the unused portion, at the end, filled with spaces.
The text field is actually field 10 of a .csv file however I could cut... (7 Replies)
Discussion started by: dc18
7 Replies
8. UNIX for Dummies Questions & Answers
I have several questions about using awk. I'm hoping someone could lend me a hand. (I'm also hoping that my questions make sense.)
I have a file that contains pipe separated data. Each line has similar data but the number of fields and the field position on each line is variable. ... (3 Replies)
Discussion started by: Cheese64
3 Replies
9. Shell Programming and Scripting
Input:
|Running the Rsync|Sun Oct 16 22:48:01 BST 2016
|End of the Rsync|Sun Oct 16 22:49:54 BST 2016
|Running the Rsync|Sun Oct 16 22:54:01 BST 2016
|End of the Rsync|Sun Oct 16 22:55:45 BST 2016
|Running the Rsync|Sun Oct 16 23:00:02 BST 2016
|End of the Rsync|Sun Oct 16 23:01:44 BST 2016... (4 Replies)
Discussion started by: busyboy
4 Replies
10. Shell Programming and Scripting
Hi Team,
I have an issue to split the file which is having special chracter(German Char) using awk command.
I have a different length records in a file. I am separating the files based on the length using awk command.
The command is working fine if the record is not having any... (7 Replies)
Discussion started by: Anthuvan
7 Replies
LEARN ABOUT DEBIAN
plscmap1l
PLSCMAP1L(3plplot) PLplot API PLSCMAP1L(3plplot)
NAME
plscmap1l - Set color map1 colors using a piece-wise linear relationship
SYNOPSIS
plscmap1l(itype, npts, pos, coord1, coord2, coord3, rev)
DESCRIPTION
Set color map1 colors using a piece-wise linear relationship between position in the color map (from 0 to 1) and position in HLS or RGB
color space (see the PLplot documentation). May be called at any time.
The idea here is to specify a number of control points that define the mapping between palette 1 input positions (intensities) and HLS (or
RGB). Between these points, linear interpolation is used which gives a smooth variation of color with input position. Any number of con-
trol points may be specified, located at arbitrary positions, although typically 2 - 4 are enough. Another way of stating this is that we
are traversing a given number of lines through HLS (or RGB) space as we move through color map1 entries. The control points at the minimum
and maximum position (0 and 1) must always be specified. By adding more control points you can get more variation. One good technique for
plotting functions that vary about some expected average is to use an additional 2 control points in the center (position ~= 0.5) that are
the same lightness as the background (typically white for paper output, black for crt), and same hue as the boundary control points. This
allows the highs and lows to be very easily distinguished.
Each control point must specify the position in color map1 as well as three coordinates in HLS or RGB space. The first point must corre-
spond to position = 0, and the last to position = 1.
The hue is interpolated around the "front" of the color wheel (red<->green<->blue<->red) unless the "rev" flag is set to true, in which
case interpolation (between the i and i + 1 control point for rev[i]) proceeds around the back (reverse) side. Specifying rev=NULL is
equivalent to setting rev[]= false for every control point.
Bounds on coordinatesRGBR[0, 1]magnitudeRGBG[0, 1]magnitudeRGBB[0, 1]magnitudeHLShue[0, 360]degreesHLSlightness[0, 1]magnitudeHLSsatura-
tion[0, 1]magnitude
Redacted form: plscmap1l(itype, pos, coord1, coord2, coord3, rev)
This function is used in examples 8,11,12,15,20,21.
ARGUMENTS
itype (PLBOOL, input)
true: RGB, false: HLS.
npts (PLINT, input)
number of control points
pos (PLFLT *, input)
position for each control point (between 0.0 and 1.0, in ascending order)
coord1 (PLFLT *, input)
first coordinate (H or R) for each control point
coord2 (PLFLT *, input)
second coordinate (L or G) for each control point
coord3 (PLFLT *, input)
third coordinate (S or B) for each control point
rev (PLBOOL: *, input)
reverse flag for each control point. (rev[i] refers to the interpolation interval between the i and i + 1 control points).
AUTHORS
Geoffrey Furnish and Maurice LeBrun wrote and maintain PLplot. This man page was automatically generated from the DocBook source of the
PLplot documentation, maintained by Alan W. Irwin and Rafael Laboissiere.
SEE ALSO
PLplot documentation at http://plplot.sourceforge.net/resources.
August, 2012 PLSCMAP1L(3plplot)