How to interchange the places of 1st name and last name?
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.
I want that the name as shown in the 2nd field should be a bit modified. The 2nd name should come 1st.
For example "Rob Cliff" should become "Cliff Rob"
Write program so that the complete file should be modified in the 2nd field.
i.e., the output should be:
Last edited by ravisingh; 04-17-2013 at 11:02 AM..
How to take care of trailing spaces. I don't want to measure these and put in the printf statement. Is there any direct way that these would be taken care of
I used the below script to Sum up a field in a file based on some unique values. But the problem is when it is summing up the units, it is truncating to 2 decimals and not 6 decimals as in the input file (Input file has the units with up to 6 Decimals – Sample data below, when the units in the 2... (4 Replies)
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)
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)
Hi,
I want to know that, how to inter change the lines.
In the following file two line are there first one is conatin PD next line PY.
But i want to first line PY and next line PD.
My file structure is like this:
TI Electronic Publishing
AU Robert
PD... (5 Replies)