Unix/Linux Go Back    

Shell Programming and Scripting BSD, Linux, and UNIX shell scripting — Post awk, bash, csh, ksh, perl, php, python, sed, sh, shell scripts, and other shell scripting languages questions here.

Replacing field from file 1 with field from file 2

Shell Programming and Scripting

awk, file, join, merge

Thread Tools Search this Thread Display Modes
Old Unix and Linux 04-25-2011   -   Original Discussion by jghi123
jghi123's Unix or Linux Image
jghi123 jghi123 is offline
Registered User
Join Date: Apr 2011
Last Activity: 20 May 2011, 4:36 PM EDT
Posts: 6
Thanks: 2
Thanked 0 Times in 0 Posts
Quite embarassingly, I'm trying to convert what you wrote into the true file i'm working with which has over 130 fields.

But trying with your sample it returns 4 blank lines.

I think I got it though,

thanks very much for the informative answer.

---------- Post updated at 04:46 PM ---------- Previous update was at 04:35 PM ----------

Got it, stupidity of my part.

Just needed a cup of joe to see the light.
Sponsored Links

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Linux More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Append 1st field from a file into 2nd field of another file amurib Shell Programming and Scripting 1 12-25-2010 05:13 AM
replacing field in specific line in a file vytenis Shell Programming and Scripting 5 09-01-2010 08:06 PM
Need some help matching a field in one file with a field in another linuxkid Shell Programming and Scripting 5 07-20-2010 12:55 PM
Sorting file by a field, and then by another field. Alexis Duarte Shell Programming and Scripting 5 11-22-2009 03:27 PM
Replacing a field in pipe delimited TEXT File ravi0435 UNIX for Dummies Questions & Answers 3 01-08-2009 01:54 PM

All times are GMT -4. The time now is 05:37 PM.