Solved

Using sed

Posted on 1998-01-22
2
271 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
netstat -a in AIX unix 8 36
AIX Server 10 78
Compare if date string is within text file 3 59
help pulling data string using Awk 9 62
In tuning file systems on the Solaris Operating System, changing some parameters of a file system usually destroys the data on it. For instance, changing the cache segment block size in the volume of a T3 requires that you delete the existing volu…
This tech tip describes how to install the Solaris Operating System from a tape backup that was created using the Solaris flash archive utility. I have used this procedure on the Solaris 8 and 9 OS, and it shoudl also work well on the Solaris 10 rel…
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.:
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

919 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now