Hi there,
I would like to write a script to automate the copy and renaming of files in multiple dir.
I have a generic file named s253e.prb and would like to copy this to multiple dir and rename it.
Example:
Dir is AL-M1 and the prb file name is AL-M1.prb. I would like to be able to... (6 Replies)
I used the following script
cd pathname
for y in `ls *`;
do sed "s/ABCD/DCBA/g" $y > temp; mv temp $y;
done
and it worked fine for finding and replacing strings with names etc. in all files of the given path.
I'm trying to replace a string which consists of path (location of file)
... (2 Replies)
Hi
I use the following code to replace ‘.' with ‘N' in my files and keep both versions.
awk '{ gsub(/\./,"N"); print }' file_0001.txt > path/to/new/dir/file_0001.txt
I need help on how to apply the code to 100 files instead of doing them one file at a time. The files are labeled... (7 Replies)
Hi All,
Iam new to unix, I need to find string and replace it in the file name. Like
text_123_0.txt,text_123_1.txt,text_123_2.txt. I need to search 123 and replace it with 234 . Is there any unix command to replace them in single command since i have 5 directories. So i need to go each and every... (0 Replies)
Is there a reason why all of these examples of linux find and replace in multiple files use find and grep to pipe into sed or perl. Why not just use sed or perl directly with something like this?
sed -i 's/echo/burnbaby/g' booboo*... (2 Replies)
Hey guys. I know pratically 0 about Linux, so could anyone please give me instructions on how to accomplish this ?
The distro is RedHat 4.1.2 and i need to find and replace a multiple lines string in several php files across subdirectories.
So lets say im at root/dir1/dir2/ , when i execute... (12 Replies)
Hi,
I have php files in main dir and sub dir's as well.
I need to find "new mysqli('localhost', 'System', 'xxxxxx', 'System', '3306');"
and replace as "new mysqli('localhost', 'unx_sys', 'yyyy', 'unx_sys', '3306');"
I tried like:
sed 's/new mysqli\(*\)\;$/new... (1 Reply)
Hi,
I need to do find and replace, but the pattern is not full known.
for example,
my file has /proj/app-d1/sun or /data/site-d1/conf
here app-d1 and site-d1 is not constant. It may be different in different files. common part is /proj/xx/sun and /data/xxx/conf
i want to find where ever... (6 Replies)
Hello everybody, I need your help.
I have a php site that was expoited, the hacker has injected into many php files a phishing code that was discovered and removed in order to have again a clean code. Now we need to remove from many php files that malware. I need to create a script that find and... (2 Replies)
Discussion started by: ninocap
2 Replies
LEARN ABOUT SUSE
mono-asp-apps
mono-asp-apps(1) User Commands mono-asp-apps(1)NAME
mono-asp-apps - utility to manage ASP.NET 2.0 applications installed from RPMs
SYNOPSIS
mono-asp-apps command [options]
DESCRIPTION
The 'mono-asp-apps' command is useful on systems which install applications from RPM packages and when the RPM packages have been created
according to the Mono RPM packaging guidelines for ASP.NET applications.
The utility allows one to initialize, enable, disable and start installed applications. Note that you do not use this utility to manage
applications hosted and managed by the Apache (or other) web server, only by xsp.
Note that this utility is useful only on systems where at least one application packaged according to the Mono ASP.NET 2.0 RPM packaging
guidelines has been installed.
COMMANDS
The commands which take an application name, require the it to be one of the registered names. See the `list` command below.
init APPLICATION_NAME
Initializes the application named APPLICATION_NAME, if it hasn't been done already. Initialization actions performed are applica-
tion specific, but may include creating databases and populating them, creating directories, downloading files etc.
enable APPLICATION_NAME
Enables APPLICATION_NAME for automatic start when XSP is started as part of the system bootup process.
disable APPLICATION_NAME
Disables APPLICATION_NAME, so that it is not started automatically when XSP is started as part of the system bootup process.
start APPLICATION_NAME [server_options]
Manually starts the xsp2 process passing the configuration of APPLICATION_NAME to the xsp2 process. Applications may ship with a
bundled start script which will be used instead of xsp2 if present. server_options are passed verbatim to the server process.
list Lists all the applications known to the utility.
AUTHORS
Marek Habersack <mhabersack@novell.com>
SEE ALSO xsp(1)MORE INFORMATION
The Mono project (http://www.go-mono.com) is a collaborative effort led by Novell (http://www.novell.com) to implement an open source ver-
sion of the .NET Framework.
MAILING LISTS
Mailing lists are listed at the http://www.mono-project.com/Mailing_Lists
mono-asp-apps 2.6.4 31 Oct 2007 mono-asp-apps(1)