Search Results

Search: Posts Made By: ShiGua
9,196
Posted By ShiGua
Thanks everyone! I actually tried Bartus' method...
Thanks everyone! I actually tried Bartus' method first and it worked fine, but it's nice to see alternative methods. Thanks again!
9,196
Posted By ShiGua
How to grep until a certain character?
Hi, so I have a file containing many repetitions of the pattern block displayed below:


>NM_13489075
ACGUGCUAGCUUAGCGA
AGCUAGCUGAUCGAUGC
ACGUAGCUAGCUGAUCG
GAUCGA
>NM_13489023...
1,893
Posted By ShiGua
How to add newline before and after a special character?
So I have a file that contains


>NM_#########AUGCAUCGUAGCUAGUCGAUACUGGACUG>NM_########AUGAGUAUGUAUGAUGUAUGUAUGA


where # is any digit 0-9 (the text is many repetitions of the pattern above,...
1,097
Posted By ShiGua
Need help searching for values in file then adding to line
Hello!

I'm currently trying to organize data for some bio research, but I'm not sure how to compare a value to values in a file. So what I have are 2 arrays, one array contains NM numbers and can...
2,156
Posted By ShiGua
Comparing to specific line in file bash script
Hi,

I have a value stored in x and I need to compare it to the numbers in every other line of a file. The file contains alternating lines of numbers and letters:

aaaa1111
AAAAAAAA
bbbb2222...
5,827
Posted By ShiGua
Passing values from file into array in Bash
Hi,

I'm trying to write a bash script that takes a file and passes each line from the file into an array with elements separated by column.

For example:

Sample file "file1.txt":

1 name1 a...
1,536
Posted By ShiGua
Yes, sorry. So basically I want to run a...
Yes, sorry.

So basically I want to run a program and track the start time, the time when the program starts running, to the end time, when the program is finished. What I want the shell script to...
1,536
Posted By ShiGua
Need help writing shell script!
Hi, I'm very new to this, so bear with me please.

I want to write a sh script (or if there's a better format please let me know) that allows me to, when I run it, print the date to a file (1.out)...
1,493
Posted By ShiGua
Need help writing shell script!
Hi, I'm very new to this, so bear with me please.

I want to write a sh script (or if there's a better format please let me know) that allows me to, when I run it, print the date to a file (1.out)...
3,101
Posted By ShiGua
Sorry, just checking. cols will be the number of...
Sorry, just checking. cols will be the number of entries in each column right? Not the number of columns? And what's the $1 for?
3,288
Posted By ShiGua
Just to make sure, the job will be held when I...
Just to make sure, the job will be held when I close my laptop right? I just don't want it to "forget" it and then have to start all over.
3,101
Posted By ShiGua
Oh sorry, those are decimal values. Let me give a...
Oh sorry, those are decimal values. Let me give a better example of what I want to do.

I have a file that contains:

1
2
3
4
5
6
7
8
9

and I want to make a file that contains:

1 ...
3,288
Posted By ShiGua
Sorry, I'm really inexperienced. Is that the...
Sorry, I'm really inexperienced.

Is that the exact syntax for it? Also, is it possible to just pause the process and then continue it? I'm not sure I have enough battery life for the process to...
3,101
Posted By ShiGua
Changing data format from column into array
I have a file containing numbers in a column like:

10.5
16.3
15.7
2.3
46.8
3.3
.
.
.

and I was wondering if there was a way to make it show up in an array form like:

10.5 2.3...
3,288
Posted By ShiGua
Pausing and resuming process on laptop
Hi, I'm wondering if it's possible to pause a process I'm running in the background, close my laptop (I need to leave the office), and continue the process (when I get home).

I've been running a...
Showing results 1 to 15 of 15

 
All times are GMT -4. The time now is 09:16 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy