8 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hello everyone,
just wondering if this type of if condition will execute properly.
Suppose I have a script with two functions in it called abc and def:
is this code valid, or is there a better way to short circuit the if statement?
#! /bin/ksh93
abc(){
statement 1 using $1
statement 2... (4 Replies)
Discussion started by: gio001
4 Replies
2. Shell Programming and Scripting
Hello,
I am searching large (~25gb) DNA sequence data in fasta short read format:
>ReadName
ACGTACGTACGT...
for short tandem repeats, meaning instances of any 2-6 character based run that are repeated in tandem a number of times given as an input variable. Seems like a reasonably simple... (3 Replies)
Discussion started by: ljk
3 Replies
3. Shell Programming and Scripting
Hello,
I use UBUNTU 12.04.
I want to write a short program using awk to select some lines in a file based on a second file.
My first file has this format with about 400,000 lines and 47 fields:
SNP1 1 12.1
SNP2 1 13.2
SNP3 1 45.2
SNP4 1 23.4
My second file has this format:
SNP2
SNP3... (1 Reply)
Discussion started by: Homa
1 Replies
4. Shell Programming and Scripting
I've got a simple log file that looks something like this:
And I need to append it to look like this:
So I just want to add a timestamp and a static (non-variable) word to each line in the file. Is there an easy scripted way to cat the file and append that data to each line....?? (4 Replies)
Discussion started by: kevinmccallum
4 Replies
5. Red Hat
Hi To All,
I Have Unfortunately Deleted my Grub,Initrd,Vmlinuz files. And am adding these files By using Rescue Mode, But it is not properly working.
Give Me a Solution.
Iam looking forward from any one.
Thanks in Advance. (1 Reply)
Discussion started by: Sharath Kumar
1 Replies
6. UNIX for Dummies Questions & Answers
Im getting stumped on one of my unix problems. Im a college student taking unix and for one of my assignments I am to write a few programs. I done the programs but on one of them I have to modify it by using sed instead of a while do loop. here's the while loop
while
do
... (2 Replies)
Discussion started by: gummiworm
2 Replies
7. Shell Programming and Scripting
how do i find out the date of the last time the system was last booted from? (8 Replies)
Discussion started by: jodders
8 Replies
8. UNIX for Dummies Questions & Answers
how to add a (sb) short banner in printcap
i need print a extraline
my OS unix 5.0.5
:(
Tnx (2 Replies)
Discussion started by: RoMaGo
2 Replies