The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



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 !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
how to delete content in a file (delete content only) kittusri9 Shell Programming and Scripting 5 05-15-2008 02:12 PM
delete in c++ nandlal High Level Programming 4 02-02-2008 12:48 PM
C++ = new and delete arun.viswanath High Level Programming 3 09-13-2005 11:16 PM
delete lesstjm UNIX for Dummies Questions & Answers 3 11-08-2001 03:24 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 04-21-2008
us_pokiri us_pokiri is offline
Registered User
  
 

Join Date: Apr 2008
Posts: 3
Delete ^ using sed

Hi All,


I am very new to UNIX...

I was trying to delete ^ from a file and save it with different name...

The version is AIX 5.3

The input file is in this directory /a/b

The Input file name is o9876.out

I want the output file in same path with different name like ABC.txt

This was the command I was using to run in UNIX Box

sed "s/\^//g" /a/b/o9876.out > a/b/ABC.txt

In the output file it is giving all blank..

can anybody tell me what could be the problem.....

Thx a lot for the Help........


Regards,
US
  #2 (permalink)  
Old 04-21-2008
rubin's Avatar
rubin rubin is offline Forum Advisor  
Registered User
  
 

Join Date: Nov 2007
Posts: 321
Quote:
Originally Posted by us_pokiri View Post
Hi All,


This was the command I was using to run in UNIX Box

sed "s/\^//g" /a/b/o9876.out > a/b/ABC.txt

In the output file it is giving all blank..

can anybody tell me what could be the problem.....
The command that you're using, works as expected. You forgot to give the correct full path to the output file ( missing slash / ):


Code:
sed "s/\^//g" /a/b/o9876.out > /a/b/ABC.txt

  #3 (permalink)  
Old 04-21-2008
us_pokiri us_pokiri is offline
Registered User
  
 

Join Date: Apr 2008
Posts: 3
Hi,

I missed slash here.....but while running the code in my system, i did not miss it.....


Can there be any other Problem for that.......

Thx for the reply.....


Thanks
US
  #4 (permalink)  
Old 04-21-2008
rubin's Avatar
rubin rubin is offline Forum Advisor  
Registered User
  
 

Join Date: Nov 2007
Posts: 321
Quote:
Originally Posted by us_pokiri View Post
Hi,

I missed slash here.....but while running the code in my system, i did not miss it.....


Can there be any other Problem for that.......
As far as the above command is concerned, there are no issues with it. If it's part of a script, then check all of your code, check for any typo, or missing character, etc ...
  #5 (permalink)  
Old 04-21-2008
us_pokiri us_pokiri is offline
Registered User
  
 

Join Date: Apr 2008
Posts: 3
No, that's the only code....







Thanks
US
  #6 (permalink)  
Old 04-22-2008
rohit.shetty84 rohit.shetty84 is offline
Registered User
  
 

Join Date: Apr 2008
Posts: 12
Wink

I tried the code with my system and it is working properly..
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:19 AM.


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