i need to change string in all files in current folder and all subfolders. i wrote the following script. It works good except it dont delete temp file from subfolders.
for z in `find . -type f -name "*.html" -o -name "*.htm"`; do
sed -e 's@abc@xyz@g' $z>temp;
mv temp $z;
done
any idea?... (1 Reply)
Hello all,
I'm trying to accomplish that if a file gets written to folder /path/to/a/ it gets automatically copied into /path/to/b/ the moment its get written.
I thought of writing a shell script and cron it that every X amount of minutes it copies these files over but this will not help me... (2 Replies)
Hi
I want to find ^M characters in all files in dir and subdirectory and replace .
In single file use this and change ,how can i cahnge in files under subdirectory.
perl -i -pe 's/^MZ//g' *.txt
sed -e 's/^M//g' filename >filename.new
Thanks in advance
MR (2 Replies)
I want to scan through all the files in the folder and replace all instances of $file_X within the file with the variable $X defined in my bash script on my debian 6.0 install.
For example, if the file contains $file_dep I want it to be replaced with the value of the variable $dep defined in my... (1 Reply)
Hello,
I do have several files in one folder each file contains measurement data.
for each file I would like to replace the character "," by "." ?
How can I do this and how can I do this for each file at once?
E.G. data_1.dat, data_x.dat (original version)
data_1out.dat, data_x_out.dat... (10 Replies)
I need help to write shell script to copy files from one server to another server.
Source Directory UAE(inside i have another folder Misc with files inside UAE folder).I have to copy this to another server UAE folder( Files should be copied to UAE folder and Misc files should be copied in target... (3 Replies)
with in my files i have the data like this, starting with a pipe and ending the line with a pipe.
all i want is to replace the first and last pipe , remove those
trying to use following sed command, but it is only showing on the screen the entire data of the file as if it removed, but when i... (4 Replies)
Hi Team,
I am new to shell script and there is a requirement where files should be moved from Subfolder to parent folder.
Eg:
parent folder --> /Interface/data/test/IN
Sub folder -->/Interface/data/test/IN/Invoice20180607233338
Subfolder will be always with timestamp... (6 Replies)
I am trying to use the below sed command to replace all "|" to ^, in a folder had 50 dat files. when i tried with 1 file it worked but when i tried with wild card, is not working.
sed -i 's/"|"/\^/g' *.dat
Is this the proper way to use sed command thank you very much for help. (3 Replies)
I am trying to work on a script where it is a *(star) delimited file has a multiple lines starts with RTG and 3rd column=TD8 I want to substring the date part and
I want to replace with currentdate minus 15 days. Here is an example. iam using AIX server
$ cat temp.txt
RTG*888*TD8*20180201~... (1 Reply)
Discussion started by: Shankar455
1 Replies
LEARN ABOUT DEBIAN
rpld-stop
rpld-*(1) System User's Manual: rpld-deprecated rpld-*(1)
NAME
rpld-deprecated - Deprecated RoarAudio PlayList Daemon control programs
SYNOPSIS
rpld-play
rpld-stop
rpld-next [--ifcurple PLE]
rpld-prev
rpld-addplaylist PLI
rpld-delplaylist PLI
rpld-store
DESCRIPTION
The RoarAudio PlayList Daemon is a daemon which manages playlists and can play files or streams from those lists using a RoarAudio Sound
Server.
This is a set of deprecated tools to do simple control of the server. All those tools has be replaced by rpld-ctl(1).
The following tools are deprecated:
rpld-play
Start playback if not yet started.
Replaced by: rpld-ctl play
rpld-stop
Stop playback.
Replaced by: rpld-ctl stop
rpld-next [--ifcurple PLE]
Skip current song.
if --ifcurple and a PLE is given the song is only skiped if the currently played song matches the given PLE.
This tool has only been deprecated in case --ifcurple is not used. Replaced by: rpld-ctl next
rpld-prev
Go back to previous song.
Replaced by: rpld-ctl prev
rpld-addplaylist PLI
Add playlist with name PLI.
Replaced by: rpld-ctl addplaylist PLI
rpld-delplaylist PLI
Delete playlist PLI.
Replaced by: rpld-ctl delplaylist PLI
rpld-store
Store current state to disk.
This tool should not be needed to be called by a user at all for normal use cases.
Replaced by: rpld-ctl store
SEE ALSO rpld-tools(1), rpld(7), RoarAudio(7).
HISTORY
For history information see RoarAudio(7).
rpld-deprecated May 2012 rpld-*(1)