5 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
I have following input and want to change it to following output
INPUT
01-APR-14,KB,822714
01-APR-14,MB,8133431
02-APR-14,KB,757140
02-APR-14,MB,7770368
03-APR-14,KB,815427
03-APR-14,MB,7590511
04-APR-14,MB,7529895
04-APR-14,KB,779561
05-APR-14,MB,8151537
05-APR-14,KB,809675
... (6 Replies)
Discussion started by: siramitsharma
6 Replies
2. Shell Programming and Scripting
Hi,
I have the below script which is fetching the data from a file as below:
awk -F "~" 'NR>1 {print $5}' 1.txt
The o/p is like:
1452350
1458638
1452350
2
5696837
No i want to put 5696837 before 1458638 in above o/p
So final o/p should look like:
1452350
5696837
1458638 (2 Replies)
Discussion started by: Vivekit82
2 Replies
3. UNIX for Advanced & Expert Users
cat emp.lst
12 |Rob Cliff |G.M.
14 |Mark Rob |Chairman
Please use awk to invert the names in the file emp.lst, i.e. the surname should be 1st and then the 1st name. There are trailing spaces even in each field making them fixed length. (4 Replies)
Discussion started by: ravisingh
4 Replies
4. Shell Programming and Scripting
hi;
my file1.txt:
cell137 1
cell337 1
cell355 1
cell355 3
cell360 1
cell360 2
cell360 3
my file2.txt:
...
cell137 1 20.64.1.97
cell137 2 20.64.1.97
cell137 3 20.64.1.97
...
cell337 1 20.64.1.113
cell337 2 20.64.1.113
cell337 3 20.64.1.113 (4 Replies)
Discussion started by: gc_sw
4 Replies
5. Shell Programming and Scripting
Hi,
I have a quick question regarding vi editor.Is it possible to interchange two lines in vi editor without using the possibilites of cut-paste,copy paste etc?
Your help is appreciated!
Regards
Dileep (4 Replies)
Discussion started by: DILEEP410
4 Replies