09-08-2017
Did you give the input files in the correct order?
It is important to first process the "mapping file", then the file that corresponds to the output file.
And the FS="_" is to be set after the "mapping file".
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
I want to find a file / directory with the name xxxxCELLxxx in the given path. The CELL is can be either in a UPPER or lower case.
Thanks (4 Replies)
Discussion started by: youknowme
4 Replies
2. Shell Programming and Scripting
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)
Discussion started by: rydz00
7 Replies
3. Shell Programming and Scripting
Hello all, please help. There are two file like this:
file1:
1197510.0 294777.7 9666973.0 21.6 1839.8
1197510.0 294777.7 9666973.0 413.2 2075.9
1197510.0 294777.7 9666973.0 689.3 2260.0
... (1 Reply)
Discussion started by: attila
1 Replies
4. Shell Programming and Scripting
File A
B07 U51C 4434 L662C 4412
B07 L64U 612 L651B 4434
B07 L11C 4434 R151B 4434
B05 L12Z 612 L51B 4434
B01 651Z 612 L651C 4434
B04 A51Z 612 L51A 4434
L07 B08D 4434 B1B 4434
B07 RU8D 4434 L51A 4434
B07 L58D 4434 B51C 4434
B07 LA8D 4434 L4B 4434
Now i want File B Output
B07... (2 Replies)
Discussion started by: asavaliya
2 Replies
5. Shell Programming and Scripting
Hi all,
I have 2 files, the first one containing a list of ids and the second one is a master file. I want to search each id from the first file from the 5th col in the second file. The 5th column in master file has values separated by ';', if not a single value is present.
Each id must occur... (2 Replies)
Discussion started by: ritakadm
2 Replies
6. Shell Programming and Scripting
(3 Replies)
Discussion started by: Rishabh Jain
3 Replies
7. Shell Programming and Scripting
I am looking at the NR==FNR posts and trying to use them to achieve the following but I am not getting it.
I have 2 files. I want to match column 8 in file 1 with column 2 in file 2. When they match I want to replace column 9 in file 1 with column 1 in file 2.
This is and extract from file 1
... (5 Replies)
Discussion started by: kieranfoley
5 Replies
8. Shell Programming and Scripting
Hello gurus,
I have a database of possible primary signal strings
pp22
pt22dx
pp22dx
jty2234
Also I have a list of scrambled signals which has a shorter string and a longer string separated by // (double slash ). Always the shorter string of a scrambled signal will have the primary... (6 Replies)
Discussion started by: senhia83
6 Replies
9. UNIX for Beginners Questions & Answers
hi
I have 2 file with more than 10 columns for both
1st file
apple,0,0,0......
orange,1,2,3.....
mango,2,4,5.....
2nd file
apple,2,3,4,5,6,7...
orange,2,3,4,5,6,8...
watermerlon,2,3,4,5,6,abc...
mango,5,6,7,4,6,def.... (1 Reply)
Discussion started by: tententen
1 Replies
10. Shell Programming and Scripting
hi all,
trying this using shell/bash with sed/awk/grep
I have two files, one containing one column, the other containing multiple columns (comma delimited).
file1.txt
abc12345
def12345
ghi54321
...
file2.txt
abc1,text1,texta
abc,text2,textb
def123,text3,textc
gh,text4,textd... (6 Replies)
Discussion started by: shogun1970
6 Replies
MSET(1) General Commands Manual MSET(1)
NAME
mset - retrieve ASCII to IBM 3270 keyboard map
SYNOPSIS
mset
DESCRIPTION
Mset retrieves mapping information for the ASCII keyboard to IBM 3270 terminal special functions. Normally, these mappings are found in
/usr/share/misc/map3270 (see map3270(5)). This information is used by the tn3270 command (see tn3270(1)).
Mset can be used store the mapping information in the process environment in order to avoid scanning /usr/share/misc/map3270 each time
tn3270 is invoked. To do this, place the following command in your .login file:
set noglob; setenv MAP3270 "`mset`"; unset noglob
Mset first determines the user's terminal type from the environment variable TERM. Normally mset then uses the file
/usr/share/misc/map3270 to find the keyboard mapping for that terminal. However, if the environment variable MAP3270 exists and contains
the entry for the specified terminal, then that definition is used. If the value of MAP3270 begins with a slash (`/') then it is assumed
to be the full pathname of an alternate mapping file and that file is searched first. In any case, if the mapping for the terminal is not
found in the environment, nor in an alternate map file, nor in the standard map file, then the same search is performed for an entry for a
terminal type of unknown. If that search also fails, then a default mapping is used.
FILES
/usr/share/misc/map3270 keyboard mapping for known terminals
SEE ALSO
tn3270(1), map3270(5)
BUGS
If the entry for the specific terminal exceeds 1024 bytes, csh(1) will fail to set the environment variable. Mset should probably detect
this case and output the path to the map3270 file instead of the terminal entry.
4.3 Berkeley Distribution November 16, 1996 MSET(1)