Solved

Using sed

Posted on 1998-01-22
2
273 Views
Last Modified: 2010-04-21
Can someone give me a sed command that will replace
"<form method=POST action="ffffffffffffffff?">"
WITH
"<form method=POST action="xxxxxxxxxxxxxxx?">"
on all files in a directory?
0
Comment
Question by:trout7
2 Comments
 
LVL 51

Accepted Solution

by:
ahoffmann earned 100 total points
ID: 2008621
foreach f (*)
  mv $f $f.orig
  sed -e 's/\(^".*action="\)[^"]*">"/\1xxxxxxxxxxxxxxx?">"/' $f.orig >$f
end
0
 

Author Comment

by:trout7
ID: 2008622
Thanks!
0

Featured Post

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
lsuser for specific number of users listed in a file 11 110
AIX 5.3 group password policy changes 7 29
dot directory in FreeBSD??? 4 79
Solaris 10.  Nmap installation fails 2 57
A metadevice consists of one or more devices (slices). It can be expanded by adding slices. Then, it can be grown to fill a larger space while the file system is in use. However, not all UNIX file systems (UFS) can be expanded this way. The conca…
My previous tech tip, Installing the Solaris OS From the Flash Archive On a Tape (http://www.experts-exchange.com/articles/OS/Unix/Solaris/Installing-the-Solaris-OS-From-the-Flash-Archive-on-a-Tape.html), discussed installing the Solaris Operating S…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.

776 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question