8 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
I want to replace a chain of if-else statement in an old AWK file with values from Db2 table or CSV file. The part of code is below...
if (start_new_rec=="true"){
exclude_user="false";
user=toupper($6);
match(user, "XXXXX.");
if (RSTART ==2 ) {
... (9 Replies)
Discussion started by: asandy1234
9 Replies
2. Shell Programming and Scripting
Hi All,
i have a requirement where i have to run a script with at least 25 arguements and position of arguements can also change. the unapropriate way is like below. can we achieve this in more good and precise way??
#!/bin/ksh
##script is sample.ksh
age=$1
gender=$2
class=$3
.
.
.... (3 Replies)
Discussion started by: Lakshman_Gupta
3 Replies
3. Programming
Hello everybody,
I looking for advice.
I'm trying to decode a binary file. Some parameters are "Binary coded", that means that if a byte in hexadecimal is "0A", then in binary is 00001010. So, to decode this Byte I need to refer to the table below (depending the value in binary format, the... (2 Replies)
Discussion started by: Ophiuchus
2 Replies
4. UNIX for Dummies Questions & Answers
Hai,
give me a simple example for soft and hard links.
this will work for soft link ?? ln -s (2 Replies)
Discussion started by: Ramesh M
2 Replies
5. 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
6. Shell Programming and Scripting
I'm creating a script that asks a user for a variable
ex
read filename;
read numberinput;
I also have a bunch of files named file.0 file.1 ... file.55
I'm trying to delete all files (if they exist) about file.$numberinput.
Can someone help me out on how to include the variable as part... (6 Replies)
Discussion started by: jenix4545
6 Replies
7. Shell Programming and Scripting
I am trying to exit this script by cd'ing into a particular directory.
#!/bin/bash
/opt/xxx/xxx/d2h $1
fname=$( /opt/xxx/xxx/d2h $1)
cd /opt/xxx1/xxx1
find . -name '*'$fname'*' -ls
cd /opt/xxx1/xxx1
Upon execution, it returns to my home directory (where I am running this script from.
... (3 Replies)
Discussion started by: BkontheShell718
3 Replies
8. UNIX for Dummies Questions & Answers
Hi,
I have a script which loops through a file and based on the fields in the file does certain things. I'm just testing the final version and come up against a problem.
One of the things is to copy files, so the line in the release.file would look like this.
COPY my_file $COPY_DIR 777
... (1 Reply)
Discussion started by: m1l
1 Replies