12-13-2010
sed 's/,\( \)\([a-zA-Z]*\)/,\2\1/g' infile
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
If i have a file with xml format, i would like to remove duplicated records and save to a new file. Is it possible...to write script to do it? (8 Replies)
Discussion started by: happyv
8 Replies
2. Shell Programming and Scripting
Hello,
I have the following record in a text file, i would like modify some field:
1 - remove all space between ",", but the company name of word will not delete. Anyway, I can use the following statement to do it.
's/^ *//;s/ *, */,/g;s/ *$//' file
2. field #12, I need to modify to time... (11 Replies)
Discussion started by: happyv
11 Replies
3. UNIX for Dummies Questions & Answers
I want to exclude records from my unix file that have a specific pattern. How can I do this?
Thanks.
Ryan (1 Reply)
Discussion started by: Ryan2786
1 Replies
4. UNIX for Dummies Questions & Answers
Hi guys,
i have a big file with the following format.This includes header(H),detail(D) and trailer(T) information in the file.My problem is i have to search for the character "6h" at 14 th and 15 th position in all the records .if it is there i have to write all those records into a... (1 Reply)
Discussion started by: raoscb
1 Replies
5. Shell Programming and Scripting
Dear All
I was wondering if anybody is able to help me with a script I am struggling with. I have to add comments to the "head-lines" (start with >) from an other file according to the ID tag. Only the head lines should be modified.
cat File.txt
>H1_A1_A2_A3_A4_ID1_A5
A:B:C:S:E:E:K... (4 Replies)
Discussion started by: loba
4 Replies
6. Shell Programming and Scripting
Need unix commands to delete records from one file if the same record present in another file...
just like join ... if the record present in both files.. delete from first file or delete the particular record and write the unmatched records to new file..
tried with grep and while... (6 Replies)
Discussion started by: msathees
6 Replies
7. UNIX for Dummies Questions & Answers
i have a '|' delimited file having 4 fields.
now i want to sort the data by combination of first three fields without changing order of 4th field.
input file looks like this:
3245|G|kop|45
1329|A|uty|76
9878|K|wer|12
3245|G|kop|15
1329|A|uty|56
9878|K|wer|2
3245|G|kop|105... (4 Replies)
Discussion started by: ankurgoyal2408
4 Replies
8. Shell Programming and Scripting
I have the below contents in a file after making the below curl call
curl ... | grep -E "state|Rno" | paste -sd',\n' | grep "Disconnected" > test
"state" : "Disconnected",, "Rno" : "5554f1d2"
"state" : "Disconnected",, "Rno" : "10587563"
"state" : "Disconnected",, "Rno" :... (2 Replies)
Discussion started by: Vaibhav H
2 Replies
9. UNIX for Beginners Questions & Answers
Hi Everyone,
I am looking for awk command to retrieve only the record number 23 and record number 89 from a unix file? Please let me know what is the awk command for this?
Regards
Rakesh (1 Reply)
Discussion started by: rakeshp
1 Replies
10. Homework & Coursework Questions
Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!
1. The problem statement, all variables and given/known data:
I am looking for awk command to retrieve only the record number 23 and record number 89 from a unix file?... (6 Replies)
Discussion started by: rakeshp
6 Replies
LEARN ABOUT DEBIAN
gifti_test
GIFTI_TEST(1) User Commands GIFTI_TEST(1)
NAME
gifti_test - test reading/writing a GIFTI dataset
SYNOPSIS
gifti_test [...]
OPTIONS
-help Show usage help.
-gifti_hist
Show giftilib history.
-gifti_ver
Show giftilib version.
-encoding TYPE
Set the data encoding for any output file.
TYPE = ASCII : ASCII encoding
TYPE = BASE64 : base64 binary
TYPE = BASE64GZIP : base64 compressed binary
-gfile OUTPUT
Write out dataset as gifti image.
-infile INPUT
Specify INPUT as the GIFTI dataset to read.
-no_data
Do not write out data.
-show Show final gifti image.
-slist LEN s0...
Restrict output to list of length LEN.
-verb VERB
Set verbose level.
EXAMPLES
1. read in a GIFTI dataset (verbose, show output?)
gifti_test -infile dset.gii
gifti_test -infile dset.gii -verb 3
gifti_test -infile dset.gii -show
2. copy a GIFTI dataset (check differences?)
gifti_test -infile dset.gii -gfile copy.gii
diff dset.gii copy.gii
3. copy a GIFTI data, but write out only 3 surf indices: 0,4,5
gifti_test -infile time_series.gii -gfile ts3.gii -slist 3 0 4 5
SEE ALSO
Website: http://www.nitrc.org/projects/gifti
AUTHOR
Richard Reynolds - SSCC, DIRP, NIMH, National Institutes of Health
This manual page was written by Michael Hanke <michael.hanke@gmail.com>, for the Debian project (but may be used by others).
gifti_test June 2010 GIFTI_TEST(1)