Fedora Linux Support Community & Resources Center
  #1  
Old 25th November 2005, 09:48 PM
linmix's Avatar
linmix Offline
Registered User
 
Join Date: Jan 2005
Posts: 626
sed misbehaving?

I don't know if I'm doing something wrong here, but sed appears to be not working on my system. I tried a number of examples from Rute (asper my sig.) and whenever I try a sed command of the the 'sed -e 's/>regexp>/<substitution>/g' type nothing happens.

I tried the following command:

Code:
$ ls -l | grep ^-| sed -e 's/^\(<.*> [ ]*\){8}\(.$\)/\2/g'
It is supposed to return 'clean' filenames. The only thing I get is the ls -l output without any directories, but with full permission, owner, time etc info. I've asked other people to try the command and they tell me it works. What might be going wrong?

Code:
$ rpm -q sed
sed-4.1.4-1
__________________
You can find out what book a person needs by asking the question, "Do you want to be a Muggle or a Wizard?"

(1) If they answer "Wizard", then you give them RUTE.
(2) If they answer "Muggle", then you give them "Linux for Dummies."
(3) If they answer "What's a Muggle?", then you give them "Harry Potter".
Reply With Quote
Reply

Tags
misbehaving, sed

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
GParted misbehaving PhoenixAtos Using Fedora 1 18th July 2009 04:03 PM
DRBD misbehaving kupo Servers & Networking 0 21st April 2008 09:03 AM
Misbehaving Panel saywot Using Fedora 4 12th January 2007 04:43 AM
Skype misbehaving Dan Using Fedora 2 9th October 2006 04:30 AM


Current GMT-time: 11:43 (Friday, 24-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat