Match column 3 in file1 to column 1 in file 2 and replace with column 2 from file2
file 1 sample
SNDK 80004C101 AT
XLNX 983919101 BB
NETL 64118B100 BS
AMD 007903107 CC
KLAC 482480100 DC
TER 880770102 KATS
ATHR 04743P108 KATS... (7 Replies)
Hi All,
I have a file with data as below:
A,FILE1_MYFILE_20130309_1038,80,25.60
B,FILE1_MYFILE_20130309_1038,24290,18543.38
C,FILE1_dsc_dlk_MYFILE_20130309_1038,3,10.10
A,FILE2_MYFILE_20130310_1039,85,110.10
B,FILE2_MYFILE_20130310_1039,10,12.10... (10 Replies)
Hi all I have a need of searching some pattern in file by month and then count unique records
D11
G11
R11 -------> Pattern available in file
S11
Jan$1 to $5 column contains some records in which I want to find unique
for this purpose I have written script like below
awk '/Jan/ ||... (4 Replies)
Hi,
My input files is like this
axis1 0 1 10
axis2 0 1 5
axis1 1 2 -4
axis2 2 3 -3
axis1 3 4 5
axis2 3 4 -1
axis1 4 5 -6
axis2 4 5 1
Now, these are my following tasks
1. Print a first column for every two rows that has the same value followed by a string.
2. Match on the... (3 Replies)
Hi All,
I have a requirement where I need to find sum of values from column D through O present in a CSV file and check whether the sum of each Individual column matches with the value present for that corresponding column present in the trailer record.
For example, let's assume for column D... (9 Replies)
file:
1|12322|tow|
5|23422|pow|
6|23423|cow|
3|34324|how|
deletelines:
12322
23423
My command to delete line
while read NUM
do
awk -F"\|" '$2 !~ /`"$NUM"`/' file >file.back
mv file.back file
done<deletelines (3 Replies)
Hi all,
I have searched and searched, but I have not found a solution that quite fits what I am trying to do.
I have a long list of data in three columns. Below is a sample:
1,10,8
2,12,10
3,13,12
4,14,14
5,15,16
6,16,18
Please use code tags
What I need to do is as follows: If a... (4 Replies)
Discussion started by: bleedingturnip
4 Replies
LEARN ABOUT DEBIAN
cyclades-serial-client
cyclades-serial-client(8)cyclades-serial-client(8)NAME
cyclades-serial-client Serial Port Interface for Cyclades Terminal Servers
SYNOPSIS
cyclades-serial-client (start | stop | restart | status) [devname]
DESCRIPTION
For each physical port listed in cyclades-devices file, cyclades-serial-client controls the status of the corresponding cyclades-ser-cli
interface.
OPTIONS
cyclades-serial-client must be invoked with one of the (start, stop, restart or status), and optionaly with a argument associated to a spe-
cific device. In this case, the action spedified as the option will be performed only for this device.
If this argument was not supplied, the action will be performed for all devices listed in cyclades-devices file. The mandatory options are:
start - Starts the cyclades-ser-cli program, using parameters supplied in the cyclades-devices file. If this program is already running,
a message will be displayed, and no additional copy will be started.
stop - Stops the cyclades-ser-cli program(s), by issuing a SIGTERM signal.
restart
- Simulates a hangup to cyclades-ser-cli program(s), by issuing a SIGUSR1 signal.
status - Checks the status of cyclades-ser-cli programs(s).
EXAMPLES
Assuming the the following cyclades-devices file configuration:
/dev/ctty01:pr3k:1:rtelnet: /dev/ctty02:pr3k:2:socket:
1 . Start all devices: cyclades-serial-client start Messages: "Starting /dev/ctty01 <==> pr3k:1 interface" "Starting /dev/ctty02 <==>
pr3k:2 interface"
2 . Try to start them again: cyclades-serial-client start Messages: "cyclades-serial-client : /dev/ctty01 already active" "cyclades-serial-
client : /dev/ctty02 already active"
3 . Stop only /dev/ctty01 device: cyclades-serial-client stop /dev/ctty01 Messages: "Stopping /dev/ctty01 <==> pr3k:2 interface"
4 . Checking status: cyclades-serial-client status Messages: "/dev/ctty01 (rtelnet at pr3k:1) is inactive" "/dev/ctty02 ( socket at pr3k:2)
active, pid 2983"
5 . Start a non-valid device cyclades-serial-client start /dev/xtty01 Messages: "cyclades-serial-client : device /dev/xtty01 does not
exist"
SEE ALSO cyclades-ser-cli(1), cyclades-devices(5)cyclades-serial-client(8)