The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
.
google unix.com



UNIX for Advanced & Expert Users Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
updating a column in a unix table for a particular row thanuman Shell Programming and Scripting 5 02-09-2009 06:52 PM
To cut entire column from a file and apend it to another file as another column sakthifire Shell Programming and Scripting 4 06-25-2008 05:27 AM
Extract column data from File sudheshnaiyer UNIX for Dummies Questions & Answers 3 10-11-2007 10:52 PM
Better way to Validate column data in file. barry1 Shell Programming and Scripting 12 12-19-2006 05:23 PM
updating a column in oracle table using shell script sveera Shell Programming and Scripting 3 05-09-2005 02:01 PM

 
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1 (permalink)  
Old 10-04-2008
kpavan2004 kpavan2004 is offline
Registered User
  
 

Join Date: Oct 2008
Posts: 2
Updating entire column irrespective of any data in a file

Hi,

I have a file A.txt (tab separated) as below:

pavan chennai/tes/bangalore 100
sunil mangalore/abc/mumbai 230
kumar delhi/nba/andhra 310


I want to change only second column as below . Rest of columns as it is ;The ouput file is also tab separated.

pavan chennai/###/bangalore 100
sunil angalore/###/mumbai 230
kumar delhi/###/andhra 310

Please let me know how to do this in unix script. I am using ksh shell
Thanks in advance
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 06:56 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0