Now I want to replace field: 10 (highlighted) by adding a random number to field number: 11. But the random number has to be generated based on decimal places of field: 11
E.g: In the first record, the 11th field value is 634234, so we have to generate a 4 digit random number and add to field number 11.
Hence if 11th field is
6 digits - random number should be 4 digits
5 digits - random number should be 3 digits
4 digits - random number should be 2 digits
3 digits - random number should be 1 digits
I need a sed line that will take STDM111 and change it to STDM161
the STDM will always be constant but the 3 numbers after will be random, I just need it to always replace the middle number with 6 regardless of what the numbers are. (8 Replies)
Good day,
First off, I would just like to say that I've been helped by a lot of the posts here in my own scripting work in the past few months. I've been a long time roamer, but first time poster. That being said, I'm stuck trying to figure out this issue (For computational research, not a... (4 Replies)
Hi,
I've been trying to replace the numbers in the first column of my text file with all ones, unless the number is equal to 8. I have this:
1 1 11 123 258
2 1 9 135 175
1 1 15 143 274
8 1 13 153 172
8 1 13 154 166
8 1 13 154 167
3 1 15 237 255
4 1 15 243 202
1 1 13 133 166... (4 Replies)
Hi all,
I need to run a number of scripts which have a certain phrase on them so I have identified these by;
grep -l 100 *script | sort -u
Normally I could just run something along the lines of;
for i in `grep -l 100 *script | sort -u`; do ./${i}; done
However before I run each of... (0 Replies)
Hi experts,
My csv file looks like this
U;cake;michael;temp;;;;
U;bread;john;temp;;;;
U;cocktails;sarah;temp;;;;
I'd like to change the value fo 2nd column to cf+random number , which will look maybe something like this
U;cf20187;michael;temp;;;;
U;cf8926;john;temp;;;;... (7 Replies)
Dear all,
I have a question. I have a txt file say 4000 rows X 1800 Column. I 'd like to creat a new column as the first column which is a column of random numbers (n=4000)
thanks a lot!
Lin (2 Replies)
Hi all,
I want to count total no. of characters in a column. and if no. of charaters are more than 3 then it must replace it by splitted string. ie, it must place a space after 3 characters.
Ex:
21 435g asd3dd jklfjwe wer
column number 3 has 4 alphanumeric character, so it must be splitted... (3 Replies)
Hi Experts,
Need your support
I want to group/concatenate column 1,2,12 and 13 and if found duplicate then need to sum value of column 17,20,21 and column22. After concatenation if found unique then no action to be taken.
Secondly want to make duplicate rows basis on grouping/concatenation of... (1 Reply)
Hello
Take this file...
Test01
Ref test
Version 01
Test02
Ref test
Version 02
Test66
Ref test
Version 66
Test99
Ref test
Version 99
I want to substitute every occurrence of Test{2} with a unique random number, so for example, if I was using sed, substitution would be something... (1 Reply)
Discussion started by: funkman
1 Replies
LEARN ABOUT HPUX
dlpi_drv
dlpi_drv(4) Kernel Interfaces Manual dlpi_drv(4)NAME
dlpi_drv.h - definitions of interfaces for device drivers to interact with DLPI
SYNOPSIS DESCRIPTION
The header file contains definitions of structures and function prototypes that are required by networking device drivers to interact with
DLPI (data link provider interface).
The header file contains interfaces that could be used by tightly coupled and loosely coupled drivers. DLPI serves as a sole interface to
DLS users for tightly coupled drivers. Whereas, a loosely coupled driver depends on DLPI only to provide information to userspace commands
nwmgr(1M) and lanscan(1M) for display purposes.
All loosely coupled and tightly coupled drivers must include this file.
The manuals page dlpi(7) provides an overview of HP-UX's DLPI. The header file contains DLPI requests; see dlpi(4). The header file pro-
vides HP-specific extensions to DLPI 2.0 standards; see dlpi_ext(4).
WARNINGS
The interfaces provided in may change in the next HP-UX release.
The and commands are deprecated. These commands will be removed in a future HP-UX release. HP recommends the use of replacement command
nwmgr(1M) to perform all network interface-related tasks.
AUTHOR
was created by HP.
SEE ALSO lanscan(1M), nwmgr(1M), dlpi(4), dlpi_ext(4), dlpi(7), lan(7).
dlpi_drv(4)