[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 283
  • Last Modified:

Using sed

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
trout7
Asked:
trout7
1 Solution
 
ahoffmannCommented:
foreach f (*)
  mv $f $f.orig
  sed -e 's/\(^".*action="\)[^"]*">"/\1xxxxxxxxxxxxxxx?">"/' $f.orig >$f
end
0
 
trout7Author Commented:
Thanks!
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now