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)
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.
Summary: Why do you specificly ask for use of lexicals ? You can use the "substitute"-command in EDT. $ EDIT/EDT filename SUBSTITUTE/old word/new word/ALL EXIT $ EXIT This sequence substitute all "old words" w...
Summary: Hi, If a file already exsist but needs to be opened you should use OPEN/APPEND. To write records to the file you should use the WRITE command Here's an example, first loop creates a new file, second l...
Summary: I want to find all the files of particular format (.rw in this case) under all the directories under the disk? any help on the command? I tried using the HELP command but its not of much help thx in ...