![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| have a file with 300 columns | dummy_needhelp | Shell Programming and Scripting | 4 | 11-05-2007 01:08 AM |
| Urgent !!! Shell script to copy files to VSS | devalin | Shell Programming and Scripting | 1 | 08-20-2007 07:16 AM |
| How can i replace certain columns in the file | mani_um | Shell Programming and Scripting | 6 | 06-22-2007 11:40 AM |
| how to get the columns name and fields from this file. | rnallamothu | Shell Programming and Scripting | 15 | 06-13-2007 09:14 AM |
| manipulate csv file to add columns | oscarmon | Filesystems, Disks and Memory | 6 | 12-11-2006 09:47 AM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Copy the first & third columns in to another test file. Its very urgent please
Hello friends!
Here is the scenario. I have a flat file named FILE1.TXT with multiple columns and comma as delimiter. Now my task is to create another file called FILE2.TXT which contains the FIRST & THIRD column values from FILE1.TXT separated by comma. Which mean i am creating a new files with only two columns which are 1st and 3rd. Ex: FILE1.TXT 1,2,3,4,5,6,7,8,9 1,2,3,4,5,6,7,8,9 1,2,3,4,5,6,7,8,9 1,2,3,4,5,6,7,8,9 1,2,3,4,5,6,7,8,9 Now after creating another file FILE2.TXT it should look like this: FILE2.TXT 1,3 1,3 1,3 1,3 1,3 Using Unix create a script for this. Please help me out as this is very urgent. I would be very greatful to you people. |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|