10 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
The bash below executes and does find all the .bam files in each R_2019 folder. However set -x shows that the .bam extension only gets removed from one .bam file in each folder (appears to be the last in each). Why is it not removing the extension from each (this is $SAMPLE)? Thank you :).
set... (4 Replies)
Discussion started by: cmccabe
4 Replies
2. Shell Programming and Scripting
Hi all,
I want to remove the remove bracket sign ( ) and put in the separate column I also want to remove the repeated entry like in first row in below input (PA156) is repeated
ESR1 (PA156) leflunomide (PA450192) (PA156) leflunomide (PA450192)
CHST3 (PA26503) docetaxel... (2 Replies)
Discussion started by: manigrover
2 Replies
3. Shell Programming and Scripting
hi I have this code
a="a b c"
set -- $a
if ; then
echo empty
fi
why is it line 3 reports "test: [: too many arguments"? :wall:
Thanks! (4 Replies)
Discussion started by: h0ujun
4 Replies
4. UNIX for Dummies Questions & Answers
I have a tcsh script that I want to call using the following expressions, with the --sw argument being optional:
/home/chrisd/tatsh/trunk/hstmy/bin/tcsh/printTable.tcsh $msg
/home/chrisd/tatsh/trunk/hstmy/bin/tcsh/printTable.tcsh --sw=15 $msg
I want to store $msg in a variable called strLst... (0 Replies)
Discussion started by: kristinu
0 Replies
5. UNIX for Dummies Questions & Answers
Hey everybody.
How do you write a program that will produce output based on its arguments?
For example, how would you write one that will add 1 to an integer argument so it would look like this:
$add 1 78
79
$
I only know how to write programs to take user input with the read function,... (2 Replies)
Discussion started by: unclepickle1
2 Replies
6. Shell Programming and Scripting
Hello,
is it possible to give grep two documents to surche for? like
grep "test" /home/one.txt AND /home/two.txt ?
thanks (1 Reply)
Discussion started by: Cybertron
1 Replies
7. Shell Programming and Scripting
I can't find anything wrong with this line of code, it works when there is one file in the directory but more than one i get a "too many arguements2 error
if ; then
am i missing something? (3 Replies)
Discussion started by: Alendrin
3 Replies
8. Shell Programming and Scripting
Hi
I need to delete first two words from the arguments my script receives .. no matter how many arguments are passed .
Thanks
Praveen (5 Replies)
Discussion started by: praveenbvarrier
5 Replies
9. UNIX for Dummies Questions & Answers
hi, i am on aix. i used smitty to remove a user..
but then found that its directory still exists....
so i have to remove the directory manually...
am i doing it the right way? (2 Replies)
Discussion started by: yls177
2 Replies
10. Shell Programming and Scripting
Hello guys,
you may help me on this :
I want to search thru many files if a sentence or a string exists and printout the lines where this is present by calling a script like :
loc "arg1 arg2 arg3 arg4"
where arg1 arg2 arg3 arg4 would be in fact the sentence separated with blanks...
In... (8 Replies)
Discussion started by: homefp
8 Replies