09-08-2008
Thanks for your suggestions. I can assure you it isn't homework. I work in a fMRI lab and we use linux/unix based software for doing analysis and I just started and am trying to slowly learn how to write scripts to separate our dicom files to make my life easier.
Most of your suggestions are still foreign to me. So I will try to work on it, but it might take me a while to even get up to that point.
Thanks,
Megan
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hello.. i want to create a simple script that's upload all the *.dem files from one directory to ftp and then delete them.
Any help? (3 Replies)
Discussion started by: TuXaKoS
3 Replies
2. Shell Programming and Scripting
I have a folder that contains say 50 files in a sequential order:
cdf_1.txt
cdf_2.txt
cdf_3.txt
cdf_3.txt
.
.
.
cdf_50.txt.
I need to merge these files in the same order into a single tab delimited file.
I used the following shell script:
for x in {1..50};
do cat cdf_${x}.txt >>... (3 Replies)
Discussion started by: Lucky Ali
3 Replies
3. UNIX for Dummies Questions & Answers
Condition1;
If NPID and IndID of both input1 and input2 are same take all the vaues relevant to them and print together as output
Condition2;
IDNo in output: Take the highly repeated same letter of similar NPID-IndID as *1*
Second highly repeated same letter... (0 Replies)
Discussion started by: stateperl
0 Replies
4. Shell Programming and Scripting
Hello,
I am new to shell scripting and I need your help.
I have found similar scripts in the forum but I need further assistance.
I am building a script to use hourly in cron to mailx me if the number of files in a path is less than e.g 100
I have started with the following:
#!/bin/sh... (2 Replies)
Discussion started by: drbiloukos
2 Replies
5. Shell Programming and Scripting
Hi ,
I want to write a simple script.
I have two files
file1:
BCSpeciality
Backend
CB
CBAPQualDisp
CBCimsVFTRCK
CBDSNQualDisp
CBDefault
CBDisney
CBFaxMCGen
CBMCGeneral
CBMCQualDisp
file2:
CSpeciality
Backend (8 Replies)
Discussion started by: ramky79
8 Replies
6. Shell Programming and Scripting
I am trying to separate a specific pattern match into separate files. Sometimes there is only one pattern match, but other times there could be multiple (up to 6 or 8). Pattern is as follows - its starts with NYZ or VTZ and ends with $$. Again looking to get those blocks of data from one big... (17 Replies)
Discussion started by: Double-E
17 Replies
7. UNIX for Dummies Questions & Answers
HI guys,
Could you help me writing a simple version control script for a text files.
the format could be
./version_control <file(s)> (I want it to be able to work with more than 1 file at the same time)
commands are add and get, add means you add new file(s) to the archive, get means you... (4 Replies)
Discussion started by: s3270226
4 Replies
8. Shell Programming and Scripting
Hi all,
I'm trying to get a bash script working for a program (bowtie) which takes a list of input files (*.fastq) and assembles them to an output file (outfile.sam). All the .fastq files are in one folder in my home directory (~/infiles).
The problem is that the 'bowtie' requires that... (7 Replies)
Discussion started by: TuAd
7 Replies
9. Programming
I have a file Map.hh shown below. I want to put the two classes Phase and Map in two different files Phase.hh and Map.hh. I have forward declaration before the Map class. How can I tackle this situation?
//////////////////////////////////////////////////////////////////////////
#ifndef... (3 Replies)
Discussion started by: kristinu
3 Replies
10. Shell Programming and Scripting
Hi All,
I need help for doing the following.
I have a input file like:
aaaaaaaaaabbbbbbbbbbbbbbbbbbbb
cccbbbbbaaaaaadddddaaaabbbbbbb
now I am trying to generate a output csv file where i will have for e.g.
0-3 chars of each line as the first column in the csv, 4-10 chars of the line as... (3 Replies)
Discussion started by: babom
3 Replies
LEARN ABOUT DEBIAN
otl2pdb
otl2pdb(1) General Commands Manual otl2pdb(1)
NAME
otl2pdb - converts vimoutliner outline to AddressDB Palm file.
SYNOPSIS
otl2pdb [filename]
DESCRIPTION
This manual page documents briefly the otl2pdb Perl script.
otl2pdb is a perl(1) script that takes an outline from vimoutliner(1) with contact information and creates an AddressDB.pdb file for a
Palm.
For now this script can only create a .pdb file. You then have to use a syncing tool to load it into your Palm. I recommend the pilot-
link package for linux.
The format of the contact outline is the following:
$category
$record_name
c:$cell
a:$address
....
You can have as many categories and records(entries) as you want. The following are valid fields for a record with the necessary text to
indicate them in quotes:
'a:'-address
'c:'-cell
'e:'-email
'h:'-home phone
'n:'-note
'web:'-website
'w:'-work phone
Also, each record's category is left as 'Unfiled' as I can't get the record's category to write correctly.
SEE ALSO
vim(1), perl(1)
REQUIREMENTS
This program uses the Palm::Address perl module, which is available on CPAN.
TIPS
If using the pilot-link package:
-load the pdb with 'pilot-xfer -i AddressDB.pdb'
-specify the serial port if other than /dev/pilot (which will usually be the case
unless you link to it) with -p in the above command; usually this is /dev/ttyS0 in linux
AUTHOR
The original version was written by Gabriel Walker <cldwalker@chwhat.com>.
If you like using perl, linux, vim and databases to make your life easier (not lazier ;) check out my website at http://www.chwhat.com.
<http://www.chwhat.com>
This manual page was written by Matej Cepl <matej@ceplovi.cz> (using perldoc(1) part of the documented script), for the Debian GNU/Linux
system (but may be used by others).
January 13, 2005 otl2pdb(1)