The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



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
How to uniq third field in a file babycakes UNIX for Dummies Questions & Answers 1 02-01-2008 03:52 AM
select last field from a file kykyboss Shell Programming and Scripting 3 11-14-2006 10:15 AM
Append a field to the end of each line of a file based on searching another file. ultimate Shell Programming and Scripting 2 03-29-2005 11:21 AM
append field to file(nawk) axl Shell Programming and Scripting 4 11-14-2004 05:19 PM
latest status of an field in a log file encrypted UNIX for Dummies Questions & Answers 2 07-16-2004 05:05 AM

Closed Thread
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
  #1 (permalink)  
Old 06-04-2008
otasdemir otasdemir is offline
Registered User
  
 

Join Date: Jun 2008
Posts: 1
Field changes for sybase syslogins file

Hello,

I have extracted the first line of the syslogins file and wish to use this as an example but the field change applies to the whole file. I wish to change the second field for all lines from 0 to 2 , the 0 field is constant for all lines. Also I wish to change the encrypted password field from
4805776c1c18a947f68ea75823a302c102808053b25347d3160457842c29
to
21053b3230a3f960cda6fc3f6c7adaf93add69cf2a1742147459d4f5ded5
for all lines in this file, however this field is unique and is differrent for all lines however the field position is in the same position.
I have included a pre and post change for the first line of the file as an example. How would I go about making this change, your help is much appreciated.
Oky

Pre- change

3 0 Oct 29 1998 3:02:57:163PM 21428 3278803 0 0 0 idb invsa 4805776c1c18a947f68ea75823a302c102808053b25347d3160457842c29
Jun 20 2004 11:41:33:490PM 0

Post - change

3 2 Oct 29 1998 3:02:57:163PM 0 0 0 0 0 idb invsa 21053b3230a3f960cda6fc3f6c7adaf93add69cf2a1742147459d4f5ded5 Jun 20 20
04 11:41:33:490PM 0
Closed Thread

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:40 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