Sponsored Content
Full Discussion: sed string with any order
Top Forums Shell Programming and Scripting sed string with any order Post 302849083 by Don Cragun on Friday 30th of August 2013 09:13:54 PM
Old 08-30-2013
Come on Satyak... With more than 100 posts in these forums you know that we can't help if you only show us code that doesn't work. Show us your input, show us the corresponding desired output, and explain the logic behind the transformation you want to occur.
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

using sed and regex to reverse order???

so i have been trying to learn how to manipulate text on my own and have gotten stumped... let's say i have a text file that says (highly simplified): people ordinary How would swap the order of the words.. I know i need to use sed and some kind of back reference but cannot make it... (2 Replies)
Discussion started by: urtherhoda
2 Replies

2. Shell Programming and Scripting

output string in reversing order

If I have string { I_love_shell_scripts} anyone knows how to have output {stpircs_llehs_evol_I} by using shell and perl ?I know in perl, there is reverse() funcation, but can it be done by not using reverse()? (3 Replies)
Discussion started by: ccp
3 Replies

3. UNIX for Dummies Questions & Answers

Changing the order using sed

I have a text "abc def ghi" and I want to get it as "def abc ghi" I am using this echo "abc def ghi" | sed 's/\(*\)\(*\)/\2\1/' But I am not able to get the output, could anyone help me. Thanks (9 Replies)
Discussion started by: venu_nbk
9 Replies

4. Shell Programming and Scripting

HELP !! Builting string in incremental order

I have files in a folder like .. citi11082006_1.trn citi11082006_2.trn citi11082006_3.trn ... ... ... citi11082006_13.trn .,... citi11082006_nn.trn Each file will have one string inside and I am builting a master string based out the string in the sub files by merging all into one by... (6 Replies)
Discussion started by: u263066
6 Replies

5. Shell Programming and Scripting

Reversing file order using SED

Im trying to develop a shell script that will change the content order of the file. For example I have a file that says a b c d I want to change this to be d c b a Im trying to use sed to this by reading the file and then inserting each line at the top #!/usr/bin/ksh ... (3 Replies)
Discussion started by: MBGPS
3 Replies

6. UNIX for Dummies Questions & Answers

How to change the order of a string ?

Hi , I want to change the order of a string using sed command . Is it possible ? $echo "abc123xyz" | sed 's/\()*\) \(*\)/\2\1/' abc123xyz $ echo "abc123xyz" |sed 's/\()*\) \(*\) \()*\)/\2\1\3/' abc123xyz I want to change the string , abc123xyz as xyz123abc . Is it... (5 Replies)
Discussion started by: rajavu
5 Replies

7. Shell Programming and Scripting

sed or awk to order a file

Hi - I have a file with lots of lines in that I need to order based on the number of commas! e.g the file looks something like :- cn=john,cn=users,cn=uk,dc=dot,dc=com cn=john,cn=users,dc=com cn=users,cn=groups,dc=com cn=john,cn=admins,cn=users,cn=uk,dc=dot,dc=com... (4 Replies)
Discussion started by: sniper57
4 Replies

8. Shell Programming and Scripting

sed or awk command to replace a string pattern with another string based on position of this string

here is what i want to achieve... consider a file contains below contents. the file size is large about 60mb cat dump.sql INSERT INTO `table1` (`id`, `action`, `date`, `descrip`, `lastModified`) VALUES (1,'Change','2011-05-05 00:00:00','Account Updated','2012-02-10... (10 Replies)
Discussion started by: vivek d r
10 Replies

9. Shell Programming and Scripting

Manipulate XML File Continous STRING by each Order Line using SHELL

heres sample File: <?xml version="1.0"?> <!DOCTYPE cXML SYSTEM "www"><cXML.............................................. <OrderRequest>USE UNIX.com</Extrinsic><Extrinsic name="UniqueName">Peter@UNIX.com</Extrinsic><Extrinsic name="ContractingEntity">UNIX... (3 Replies)
Discussion started by: Pete.kriya
3 Replies

10. Shell Programming and Scripting

sed - searching token in certain order

Hello. I would like to write a bash function which would return "true" if the search succeed else return anything else. something like if ] ; then exit 1 fi function my_funct () { find first occurrence $2 in $1 if not found return "false" from that position,... (6 Replies)
Discussion started by: jcdole
6 Replies
ATLASLABELER(1) 						   User Commands						   ATLASLABELER(1)

NAME
atlaslabeler - query stereotaxic atlases SYNOPSIS
atlaslabeler [OPTIONS] [input_file.nii.gz] OPTIONS
--version show program's version number and exit -v VERBOSE, --verbose=VERBOSE, --verbosity=VERBOSE Verbosity level of output -h, --help, --sos Show this help message and exit -a ATLASFILE, --atlas-file=ATLASFILE Atlas file to use. Overrides --atlas-path and --atlas --atlas-path=ATLASPATH Path to the atlas files. '%(name)s' will be replaced with the atlas name. See -A. Defaults depend on the atlas family. -A ATLASNAME, --atlas=ATLASNAME Atlas to use. Choices: HarvardOxford-Subcortical, Juelich, JHU-tracts, HarvardOxford-Cortical, MNI, talairach, Thalamus, talairach-dist -i INPUTCOORDFILE, --input-coordinates-file=INPUTCOORDFILE Fetch coordinates from ASCII file -o OUTPUTFILE, --output-file=OUTPUTFILE Output file. Otherwise standard output -d MAXDISTANCE, --max-distance=MAXDISTANCE When working with reference/distance atlases, what maximal distance to use to look for the voxel of interest -T TRANSFORMATIONFILE, --transformation-file=TRANSFORMATIONFILE First transformation to apply to the data. Usually should be subject -> standard(MNI) transformation -s, --summary Either to create a summary instead of dumping voxels. Use multiple -s for greater verbose summary --ss=SORTSUMMARYBY, --sort-summary-by=SORTSUMMARYBY How to sort summary entries. a-p sorts anteriorposterior order --dumpmap-file=DUMPMAPFILE If original data is given as image file, dump indexes per each treholded voxels into provided here output file -l LEVELS, --levels=LEVELS Indexes of levels which to print, or based on which to create a summary (for a summary levels=4 is default). To get listing of known for the atlas levels, use '-l list' --mni2tal=MNI2TALTRANSFORMATION Choose between available transformations from mni 2 talairach space --thr=LOWERTHRESHOLD, --lthr=LOWERTHRESHOLD, --lower-threshold=LOWERTHRESHOLD Lower threshold for voxels to output --uthr=UPPERTHRESHOLD, --upper-threshold=UPPERTHRESHOLD Upper threshold for voxels to output --abbr, --abbreviated-labels Manipulate with abbreviations for labels instead of full names, if the atlas has such -c, --tc, --show-target-coord Show target coordinates --tv, --show-target-voxel Show target coordinates --rc, --show-referenced-coord Show referenced coordinates/distance in case if we are working with reference atlas -C, --oc, --show-orig-coord Show original coordinates -V, --show-values Show values -I INPUTSPACE, --input-space=INPUTSPACE Space in which input volume/coordinates provided in. For instance Talairach/MNI -F, --forbid-direct-mapping If volume is provided it first tries to do direct mapping voxel-2-voxel if there is no transformation file given. This option for- bids such behavior and does coordinates mapping anyway. -t, --talairach Coordinates are in talairach space (1x1x1mm), otherwise assumes in mni space (2x2x2mm). Shortcut for '-I Talairach' -H, --half-voxel-correction Adjust coord by 0.5mm after transformation to Tal space. Please use -H to turn such adjustment off -r, --relative-to-origin Coords are relative to the origin standard form ie in spatial units (mm), otherwise the default assumes raw voxel dimensions --input-line-format=INPUTLINEFORMAT Format of the input lines (if ASCII input is provided) -R REFERENCELEVEL, --reference=REFERENCELEVEL Which level to reference in the case of reference atlas --prob-thr=PROBTHR At what probability (in %) to threshold in probabilistic atlases (e.g. FSL) --prob-strategy=PROBSTRATEGY What strategy to use for reporting. 'max' would report single area (above threshold) with maximal probabilitity EXAMPLES
bin/atlaslabeler -s -A talairach-dist -d 10 -R Closest Gray -l Structure,Brodmann area -cC mask.nii.gz produces a summary per each structure and brodmann area, for each voxel looking within 10mm radius for the closest gray matter voxel. atlaslabeler 0.4.8 April 2012 ATLASLABELER(1)
All times are GMT -4. The time now is 12:45 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy