Sponsored Content
Top Forums Shell Programming and Scripting How To replace Control-M in all files in a folder Post 302122997 by Shell_Life on Friday 22nd of June 2007 11:36:58 AM
Old 06-22-2007
Code:
sed 's/^M//g' input_file > $$Temp
mv $$Temp input_file

Where '^M' is entered as 'ctl-V' and 'ctl-M'.
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Replace string in all files in a folder and subfolders.

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)
Discussion started by: crazynups
1 Replies

2. UNIX for Advanced & Expert Users

Auto copy for files from folder to folder upon instant writing

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)
Discussion started by: Bashar
2 Replies

3. Shell Programming and Scripting

Replace control m

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)
Discussion started by: mohan705
2 Replies

4. Shell Programming and Scripting

Find and replace folder of files with $var

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)
Discussion started by: Spadez
1 Replies

5. Shell Programming and Scripting

Replace character in files of entire folder? sed? or what?

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)
Discussion started by: rollinator
10 Replies

6. Shell Programming and Scripting

Shell scripting for moving folder specific files into target directory of that country folder.

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)
Discussion started by: naresh2389
3 Replies

7. Shell Programming and Scripting

How to replace the first and last character which is pipe symbol in all files within a folder?

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)
Discussion started by: cplusplus1
4 Replies

8. Shell Programming and Scripting

Request for Shell script to move files from Subfolder to Parent folder and delete sub folder

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)
Discussion started by: srivarun15
6 Replies

9. Shell Programming and Scripting

Using sed command to replace "|" with ^ for all *.dat files in a folder not working

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)
Discussion started by: cplusplus1
3 Replies

10. UNIX for Beginners Questions & Answers

UNIX script to replace old date with current date dynamically in multiple files present in a folder

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
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)
All times are GMT -4. The time now is 06:40 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy