Sponsored Content
Top Forums Shell Programming and Scripting Replace Control M (^M) character with new line Post 302902244 by Neo on Monday 19th of May 2014 02:51:10 PM
Old 05-19-2014
See attached image on how to mark threads as solved.
Replace Control M (^M) character with new line-screen-shot-2014-05-20-15015-ampng
This User Gave Thanks to Neo For This Post:
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Replace a character in last line

Hello Sed Experts, I have got a file which contain entries as below pmNoOfSwDownHsCong, pmUlUpswitchAttemptHigh, pmUlUpswitchAttemptLow, pmUlUpswitchSuccessHigh, pmUlUpswitchSuccessLow, pmUpswitchFachHsAttempt, ... (6 Replies)
Discussion started by: Mohammed
6 Replies

2. Shell Programming and Scripting

to replace a new line character

sample I/p: S12J LLL H77K PPP J25O LOP I73S lOP K99O PLO Required O/p: S12J LLL H77K PPP J25O LOP I73S lOP K99O PLO how to replace a new line character with space using sed command only Cheers, Chan (2 Replies)
Discussion started by: chan
2 Replies

3. Shell Programming and Scripting

Replace certain character with a new a new line.

Hello all... please help with the following. I am parsing the following type of file... W001; W003; W025;W044; W030; W022;W024;W099;W098; Would like to make it look like this... W001 W003 W025 W044 W030 W022 W024 W099 W098 (8 Replies)
Discussion started by: djsal
8 Replies

4. Shell Programming and Scripting

replace > with new line character

<reward_data><date><datetime>071308000804</datetime></date> I want the above data to be displayed as <reward_data> <date> <datetime>071308000804</datetime> </date> How can i accomplish this. I tried the below tr "><" ">\n" < filename (4 Replies)
Discussion started by: borncrazy
4 Replies

5. Shell Programming and Scripting

how to replace character in the line

I have unix text file which has the following data aadjdfad;fa;fjjd;lakd;lkaslkd;k;k;lk;k;lk;l;lk;lkj;lj;lkj;k;lkj;lj;lkj;lkj;lkj;j sdkadk;adlf;lajf;akdjf;lkdjf;lkadjf;lkajsd;lfkj;lkj;lkj;lk;lk;lk;lk;k;lkj;k;lkm... (2 Replies)
Discussion started by: Raju Datla
2 Replies

6. UNIX for Dummies Questions & Answers

vi Search for text, Replace with <CR> or control character.

Greetings, Using vi, how can I change the following text: -I/myviews/nexus_7400rel/vobs/nexus/platforms/97400/include -I/myviews/nexus_7400rel/vobs/nexus/modules/i2c/7400/include -I/myviews/nexus_7400rel/vobs/nexus/modules/surface/7400/include Into this:... (4 Replies)
Discussion started by: omega949
4 Replies

7. Shell Programming and Scripting

Replace any control character in the string

Need to replace any control character in the string in perl ---------- Post updated at 04:22 PM ---------- Previous update was at 03:50 PM ---------- Any help !!! Thanks in advance (2 Replies)
Discussion started by: hansini
2 Replies

8. Shell Programming and Scripting

Replace last character of every second line

Hi all. I wonder if this possible.... any help advice is very much appreciated.. I n a shell script I create a latex file that looks like this \documentclass{article} \usepackage{graphics} \begin{document} \begin{figure} \begin{center} \begin{tabular}{cc} ... (10 Replies)
Discussion started by: malandisa
10 Replies

9. Solaris

Line too long error Replace string with new line line character

I get a file which has all its content in a single row. The file contains xml data containing 3000 records, but all in a single row, making it difficult for Unix to Process the file. I decided to insert a new line character at all occurrences of a particular string in this file (say replacing... (4 Replies)
Discussion started by: ducati
4 Replies

10. Shell Programming and Scripting

Replace x-y character in line

I have a file which has n number of lines, i want to replace 3rd line position 3-5 to some text. 111111111111111111 222222222222222222 333333333333333333 444444444444444444 expected output 111111111111111111 222222222222222222 33abc3333333333333 444444444444444444 it is... (7 Replies)
Discussion started by: greenworld123
7 Replies
sympl(1)					       The Computational Morphometry Toolkit						  sympl(1)

NAME
sympl - Symmetry plane computation SYNOPSIS
sympl InputImage DESCRIPTION
Compute the approximate symmetry plane of an image to determine, for example, the mid-sagittal plane in human brain images. Various forms of output are supported, e.g., writing the input image with the symmetry plane drawn into it, or the input image realigned along the symme- try plane. OPTIONS
Global Toolkit Options (these are shared by all CMTK tools) --help Write list of basic command line options to standard output. --help-all Write complete list of basic and advanced command line options to standard output. --wiki Write list of command line options to standard output in MediaWiki markup. --man Write man page source in 'nroff' markup to standard output. --xml Write command line syntax specification in XML markup (for Slicer integration). --version Write toolkit version to standard output. --echo Write the current command line to standard output. --verbose-level <integer> Set verbosity level. --verbose, -v Increment verbosity level by 1 (deprecated; supported for backward compatibility). --threads <integer> Set maximum number of parallel threads (for POSIX threads and OpenMP). Optimization --accuracy <double>, -a <double> Accuracy (final optimization step size in [mm]. [Default: 0.1] --sampling <double>, -s <double> Resampled image resolution. This is the resolution [in mm] of the first (finest) resampled image in the multi-scale pyramid, which is derived directly from the original full-resolution images. [Default: 1] --levels <integer>, -l <integer> Number of resolution levels. The algorithm will create (levels-1) resampled images with increasingly coarse resolution and use these in successive order of increasing resolution before using the original images at the final level. [Default: 4] Initial approximate symmetry plane orientation --initial-plane Initial orientation of symmetry plane. This should be the closest orthogonal plane to the expected actual symmetry plane. Supported values: "initial-axial", "initial-coronal", "initial-sagittal", "initial-xy", "initial-xz", "initial-yz", where the default is "ini- tial-sagittal", or use one of the following: --initial-axial Approximately axial symmetry --initial-coronal Approximately coronal symmetry --initial-sagittal Approximately sagittal symmetry [This is the default] --initial-xy Approximately XY plane symmetry --initial-xz Approximately XZ plane symmetry --initial-yz Approximately YZ plane symmetry [This is the default] Pre-computed symmetry --output-only <string> Give symmetry parameters [Rho Theta Phi] as option, skip search. [Default: disabled] --output-only-file <string> Read symmetry parameters from file, skip search. [Default: disabled] Data pre-processing --min-value <float> Force minumum data value. [Default: disabled] --max-value <float> Force maximum data value. [Default: disabled] Output of Images --interpolation Interpolation method used for reformatted output data Supported values: "linear", "cubic", "sinc", where the default is "linear", or use one of the following: --linear, -L Use linear image interpolation for output. [This is the default] --cubic, -C Use cubic image interpolation for output. --sinc, -S Use cosine-windowed sinc image interpolation for output. --pad-out <double>, -P <double> Padding value for output images. [Default: disabled] --mark-value <double> Data value to mark (draw) symmetry plane. [Default: disabled] --write-marked <image-path> File name for output image with marked symmetry plane. [Default: disabled] --write-aligned <image-path> File name for symmetry plane-aligned output image. [Default: disabled] --mark-aligned Mark symmetry plane in aligned output image. --write-subtract <image-path> File name for mirror subtraction image. [Default: disabled] --write-mirror <image-path> File name for image mirrored w.r.t. symmetry plane. [Default: disabled] Output of Parameters --outfile <path>, -o <path> File name for symmetry plane parameter output. [Default: NONE] --write-xform <transformation-path> Write affine alignment transformation to file [Default: NONE] AUTHORS
Torsten Rohlfing, with contributions from Michael P. Hasak, Greg Jefferis, Calvin R. Maurer, and Daniel B. Russakoff LICENSE
http://www.fsf.org/licensing/licenses/gpl.html BUGS
Report bugs at http://nitrc.org/projects/cmtk/ ACKNOWLEDGMENTS
From April 2009 through September 2011, CMTK Development and Maintenance was supported by the National Institute of Biomedical Imaging and Bioengineering under Grant No.R01 EB008381 (PI: Torsten Rohlfing). CMTK 2.2.2 Jul 20 2012 sympl(1)
All times are GMT -4. The time now is 04:58 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy