![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
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 |
| Merge 3 columns side by side | amaulana | Shell Programming and Scripting | 7 | 02-08-2009 02:50 AM |
| Merge 2 text files to one text file side by side | ahinkebein | Shell Programming and Scripting | 15 | 02-04-2009 11:28 AM |
| How to Merge Two .xls files side by side into a single .xls | jagadish99 | Shell Programming and Scripting | 2 | 09-24-2008 06:44 AM |
| How to Merge Two .xls files side by side into a single .xls | jagadish99 | Shell Programming and Scripting | 0 | 08-27-2008 06:38 AM |
| How to print two sql query outputs side by side in excel | prasee | Shell Programming and Scripting | 6 | 09-08-2007 02:20 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Script to place selected columns from a group of files side by side in a new file
Hi Everyone,
I need a shell/perl script to bring selected columns from all the files located in a directory and place them in a new file side by side. File1: a b c d 2 3 4 5 f g h i .......... File2: I II III IV w x y z .............. and so on many files are there... My Output for selected columns(example 1 and 2) from source files should be: a b I II..........................so on(here last file contents) 2 3 W X..........................so on(here last file contents) f g ............ So on Thanks in advance ........ |
|
||||
|
Pasting the columns in new file as it is... Urgent...
I want to place the selected column(s) from all the files (e.g. col 2 from all files together) from a directory, not just two files....
I tried this command: paste | awk '{print $2}' * But I got the output one after the other in a new file. $2 from 1st file $2 from 2nd file .............. so on.. But what I need is $2 from 1st file <tab> $2 from 2nd file<tab> ..............so on.... I have thousands of files with me All are similar files. They contains 34 columns and 1000 rows. Please help me... Finally I need to plot one column from one file against the other columns from other files depending on the column header. |
|
||||
|
have you tried paste command?
|
| Sponsored Links | ||
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|