Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 06-20-2012
Registered User
 
Join Date: May 2011
Posts: 190
Thanks: 92
Thanked 0 Times in 0 Posts
How to use the join command to obtain tab delimited text files as an output?

How do you use the join command and obtain tab delimited text files as an output? Thanks!
Sponsored Links
    #2  
Old 06-20-2012
Mead Rotor
 
Join Date: Aug 2005
Location: Saskatchewan
Posts: 16,384
Thanks: 491
Thanked 2,536 Times in 2,419 Posts

Code:
$ man join

JOIN(1)                          User Commands                         JOIN(1)



NAME
       join - join lines of two files on a common field

SYNOPSIS
       join [OPTION]... FILE1 FILE2

DESCRIPTION
       For  each  pair of input lines with identical join fields, write a line
       to standard output.  The default join field is the first, delimited  by
       whitespace.  When FILE1 or FILE2 (not both) is -, read standard input.

       -a FILENUM
              print  unpairable  lines coming from file FILENUM, where FILENUM
              is 1 or 2, corresponding to FILE1 or FILE2

       -e EMPTY
              replace missing input fields with EMPTY

       -i, --ignore-case
              ignore differences in case when comparing fields

       -j FIELD
              equivalent to `-1 FIELD -2 FIELD'

       -o FORMAT
              obey FORMAT while constructing output line

       -t CHAR
              use CHAR as input and output field separator


...

The Following User Says Thank You to Corona688 For This Useful Post:
evelibertine (06-20-2012)
Sponsored Links
    #3  
Old 06-20-2012
Registered User
 
Join Date: Dec 2004
Location: Isle-of-Skye
Posts: 231
Thanks: 7
Thanked 26 Times in 26 Posts
Hi,

Could you provide an example of input and expected output?

Regards

Dave
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
how to join two files using "Join" command with one common field in this problem? mindfreak UNIX for Dummies Questions & Answers 2 04-13-2012 05:55 AM
join files cisco command output robonet Shell Programming and Scripting 1 11-10-2010 11:38 AM
Remote command output to file comma delimited markdjones82 Shell Programming and Scripting 0 06-10-2010 09:57 AM
To split a string to obtain the words delimited by whitespaces Sudhakar333 Shell Programming and Scripting 4 08-06-2007 02:26 PM
using join command for files subra Filesystems, Disks and Memory 12 08-14-2002 04:09 AM



All times are GMT -4. The time now is 05:22 AM.