10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I have a tab-delimited file containing a large genetic dataset with binary base calls, in this format:
Chr7 26021407 1/1:0,0,0:5 1/1:0,0,0:5 1/1:0,0,0:5
Chr7 26022023 1/1:0,0,0:3 1/1:0,0,0:3 1/1:28,3,0:5
Chr7 26022087 1/1:0,0,0:6 1/1:25,3,0:9 1/1:25,3,0:9
Chr7 26022656 1/1:0,0,0:3... (1 Reply)
Discussion started by: ljk
2. Shell Programming and Scripting
Cannot use xAWK
I have several strings that are quite long and i want to break them down into smaller substrings.
What I have
String = "word1 word2 word3 word4 .....wordx"
What I want
String2="word 3 word4"
Stringx="wordx... (5 Replies)
Discussion started by: nitrobass24
3. Shell Programming and Scripting
Iīve already searched the forum but canīt find what i am doing wrong.
I am trying to compare two variables using ksh under red hat. The error I get is:
-ksh: .: MDA=`md5sum /tmp/ftp_dir_after_transfer | cut -d' ' -f1 `
MDB=`md5sum /tmp/ftp_dir_before_transfer | cut -d' ' -f1 `... (3 Replies)
Discussion started by: old_mike
4. Shell Programming and Scripting
i am facing prob in comparing two strings that have two word.
below is the code snippet.
echo "file" $file3_name "is validated successfully"
when i run this i get the error as -bash: [: too many arguments
... (1 Reply)
Discussion started by: infyanurag
5. UNIX for Dummies Questions & Answers
i have to write a sript that removes unnecessary backup-files.
iam new to shell scripting so please be patient with me. and no its not homework :p
these files look like "javacore303330.1209029863.txt" where the first number is the PID and the second is the timestamp. so there can be... (5 Replies)
Discussion started by: cypher82
6. Shell Programming and Scripting
i have 2 strings. i want to compare the strings.
please help (2 Replies)
Discussion started by: satish@123
7. Shell Programming and Scripting
While I am trying to run below code I Am getting the exception like
./abs.sh: line 102: syntax error near unexpected token `then'
./abs.sh: line 102: ` then'
The Code Snippet is:
cat $file1 | sed -e... (8 Replies)
Discussion started by: Anji
8. UNIX for Advanced & Expert Users
I have two strings
how can I compare them
Is this fine
if then (2 Replies)
Discussion started by: yakyaj
9. Shell Programming and Scripting
How do i compare two strings in shell script. Below is an example but I am not getting the desired output, plz help
I am not getting the desired output if I do this. plz help (24 Replies)
Discussion started by: ragha81
10. Shell Programming and Scripting
I'm only new to shell programming and have been given a task to do a program in .sh, however I've come to a point where I'm not sure what to do. This is my code so far:
# process all arguments (i.e. loop while $1 is present)
while ; do
# echo "Arg is $1"
case $1 in
-h*|-H*) echo "help... (4 Replies)
Discussion started by: switch