10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hello all!
This is my first post and I'm very new to programming. I would like help creating a simple perl or bash script that I will be using in my work as a junior bioinformatician.
Essentially, I would like to take a tab-delimted or .csv text with 3 columns and write them to a "3D" matrix:
... (16 Replies)
Discussion started by: torchij
16 Replies
2. UNIX for Dummies Questions & Answers
I found my answer... (2 Replies)
Discussion started by: sjung9442
2 Replies
3. UNIX for Dummies Questions & Answers
Hey all,
I've only just started using UNIX coding on my Masters project, so am still learning!! The script I've been writing is literally just for me to get used to writing it and seeing what I can do with some data I've been given.
I'm trying to write a script, where the penultimate line... (2 Replies)
Discussion started by: southernlight
2 Replies
4. Shell Programming and Scripting
Hey I am brand new to this forum and scripting.
I have several documents (1000+) all formated exactly the same. Each document contains 97 lines. I want to pull 3 lines from the documents to populate a file. These 3 lines are line number 9, 24, and 58.
Ok my questions: Instead of using... (3 Replies)
Discussion started by: david6789
3 Replies
5. Shell Programming and Scripting
i have atcl script and i want to source a csh script to reflect changes done by script ........
Please help....... (0 Replies)
Discussion started by: paragarora47
0 Replies
6. Shell Programming and Scripting
Ok I asked something similar earlier with no response, so maybe I didn't word it correctly. I'm new at this, so thank you for your help.
Here's what I have right now.
----------------------------
> cat MySourceFile
#!/bin/csh
echo "Please Enter Value For My_Env_Var:"
set answer = $<
... (1 Reply)
Discussion started by: MMorrison
1 Replies
7. Shell Programming and Scripting
Hi
This little script is giving me error: Syntax error at line xxx : `(' is not expected. Wgat did I miss?
RC=0
switch ( $RC )
case 0:
echo Done
breaksw
case -1:
echo not done
breaksw
default:
echo "Hello"
endsw (2 Replies)
Discussion started by: nimo
2 Replies
8. Shell Programming and Scripting
I have a simple csh-script on a Solaris Workstaion which invokes the bc calculator:
#!/bin/csh
set shz=2
set zshift=5
set shzp=`bc -l <<END \
scale = 3 \
-1. * $shz + $zshift \
END`
echo $shzp
The result ($shzp) in this case is 3 (-1*2+5). It works fine on Solaris 8.
... (2 Replies)
Discussion started by: two reelers
2 Replies
9. Shell Programming and Scripting
I have an extraordinary problem with a csh script.....(feel free to berate the use of this but I'm modifying an existing bunch of them)
Anyway, I have a master csh script which in turn calls a second csh script. This second csh script is below. Within this second script are two compiled C++... (1 Reply)
Discussion started by: pollsizer
1 Replies
10. UNIX for Dummies Questions & Answers
Hello,
I have a file with over 48000 lines and I need to select certain parts of the file. I know which awk commands work for what I need, I just need some help putting together a loop that will repeat the command. These are the commands that work:
awk 'NR < 6' plot.out > plot.test (I get... (1 Reply)
Discussion started by: dsstamps
1 Replies