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
problem in awk command viveksnv Shell Programming and Scripting 3 03-03-2008 04:59 AM
problem with tr command ravi raj kumar UNIX for Advanced & Expert Users 2 07-02-2007 07:41 AM
problem with dd command or maybe AFS problem Anta Shell Programming and Scripting 0 08-25-2006 11:10 AM
ls command problem buckhtr77 SUN Solaris 2 12-06-2005 04:16 PM
Problem while using Sed command gopskrish UNIX for Dummies Questions & Answers 2 06-27-2005 12:26 PM

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 12-20-2002
tomapam tomapam is offline
Registered User
  
 

Join Date: Jul 2002
Posts: 17
Sed command problem

Hi!

here is my problem :

$ more file
yopyop:FIToB8df02f:10200:351:yoyo:/home/yopyop:/usr/bin/ksh

$grep yopyop file | sed s/FIToB8df02f/passe/
yopyopasse:10200:351:yoyo:/home/yopyop:/usr/bin/ksh

$more file
yopyop:FIToB8df02f:10200:351:yoyo:/home/yopyop:/usr/bin/ksh


...when i make the "sed", it doesn't record the substitution in the file. The file keeps the old recording...

Help please!

thx
  #2 (permalink)  
Old 12-20-2002
Ralf's Avatar
Ralf Ralf is offline
Registered User
  
 

Join Date: Oct 2002
Posts: 34
you had piped the output of the sed command to the screen and not to file.

Try
$grep yopyop file | sed s/FIToB8df02f/passe/ > text.file

$more test.file
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 09:44 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