Computing.Net > Forums > OpenVMS > using the sed command? (error)

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

using the sed command? (error)

Reply to Message Icon

Name: Alex
Date: April 25, 2002 at 09:30:28 Pacific
Comment:

Hi I want to use the sed command to replace a date such as Apr 25 to today. I used the following command but it gives me a garbled error

x=`date "+%b %e"`
ls -l | sed 's|'$x'|(today)|g'

the error is:
command garbled: s|Apr

it doesnt seem to like the fact that I want to replace a string with a space in the middle. can anybody help me with this error?
Thanks
Alex.



Sponsored Link
Ads by Google

Response Number 1
Name: ME
Date: April 29, 2002 at 16:43:03 Pacific
Reply:

Sed is not an OpenVMS utility.
Try asking in a Unix group.


0
Reply to Message Icon

Related Posts

See More


error VMS Server Slows Down



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to OpenVMS Forum Home


Sponsored links

Ads by Google


Results for: using the sed command? (error)

editing a txt file using a com file www.computing.net/answers/openvms/editing-a-txt-file-using-a-com-file/518.html

append a file www.computing.net/answers/openvms/append-a-file/196.html

Directory command www.computing.net/answers/openvms/directory-command/395.html