Search Results

Search: Posts Made By: Twinklefingers
1,781
Posted By Twinklefingers
How to get the "history" command to show all that is in the .bash_history file?
I am using the bash shell.

When I view my recent command history using the "history" command from the prompt, it only shows me the commands starting at #928.

The commands I need are earlier...
16,821
Posted By Twinklefingers
This works like a charm, except that it takes a...
This works like a charm, except that it takes a tab-delimited file and returns a space-delimited file. My fault for not mentioning it in the original post.
16,821
Posted By Twinklefingers
Sed/awk to find negative numbers and replace with 1?
Greetings. I have a three column file, and there are some numbers in the second column that are <1. However I need all numbers to be positive, thus need to replace all those numbers with just one....
42,310
Posted By Twinklefingers
awk to add/subtract an integer to/from each entry in columns?
---------- Post updated at 01:58 PM ---------- Previous update was at 01:48 PM ----------

For some reason my question is not getting printed. Here are the details:

Greetings.

I would like...
1,724
Posted By Twinklefingers
2,112
Posted By Twinklefingers
Thanks, works like a charm, your time is very...
Thanks, works like a charm, your time is very much appreciated!
2,112
Posted By Twinklefingers
[Solved] Using awk to parse a file with mixed formats in columns
Greetings

I have a file formatted like this:
rhino grey weight=1003;height=231;class=heaviest;histology=9,0,0,8
bird white weight=23;height=88;class=light;histology=7,5,1,0,0...
1,151
Posted By Twinklefingers
@Chubler_XL Yes, please.
@Chubler_XL Yes, please.
1,151
Posted By Twinklefingers
How do add values in a vector using a sliding window?
Greetings.

I have a vector of numbers such as the following:
1
75
79
90
91
92
109
120
167
198
203
204
206
224
230
236
240
1,605
Posted By Twinklefingers
It works! Thanks!
It works! Thanks!
1,605
Posted By Twinklefingers
Des/awk for change format and adding integers in a column of data?
Greetings!

I need a quick way to change the format in a table of data

Here is an example of the input:
10 72 Value=177 VDB=0.0245 Value4=0,0,171,0...
4,342
Posted By Twinklefingers
You're 100% right. The long reason is that, just...
You're 100% right. The long reason is that, just in the two days from when I posted and when I grabbed your code to use it, this aspect of the project changed and I was negligent in remembering the...
4,342
Posted By Twinklefingers
@Scrutinizer Thank you very much. I think...
@Scrutinizer

Thank you very much. I think this is getting into the right ballpark. However,

for the input:
TCAAATTTTATGGCATAGTAAAGATAACAAAAGAAGTGATCGAATTTATTCTTTAGATAT...
4,342
Posted By Twinklefingers
@wisecracker Input: ...
@wisecracker

Input:

TCAAATTTTATGGCATAGTAAAGATAACAAAAGAAGTGATCGAATTTATTCTTTAGATAT
TCAACCATATCCAAATTATTATAGTGTTAAAAAATTAAATAGGAAATATGAATTGTTTAT...
4,342
Posted By Twinklefingers
@wisecracker - thanks. The code works great, but...
@wisecracker - thanks. The code works great, but doesn't get desiredthe results because there are line breaks.
4,342
Posted By Twinklefingers
@bartus11 - Input added!
@bartus11 - Input added!
4,342
Posted By Twinklefingers
@bartus11 - Added in the post, thanks! ...
@bartus11 - Added in the post, thanks!

@RudiC - There are going to be more than one instances of GG in each line, however I can prepare the files for analysis by inserting a line break after each...
4,342
Posted By Twinklefingers
Extracting 22-character strings from text using sed/awk?
Here is my task, I feel sure this can be accomplished with see/awk but can't seem to figure out how.

I have large flat file from which I need to extract every case of a pairing of characters (GG)...
1,715
Posted By Twinklefingers
Thanks, worked like a charm
Thanks, worked like a charm
1,715
Posted By Twinklefingers
It does, but I don't know how to combine -f with...
It does, but I don't know how to combine -f with -B
1,715
Posted By Twinklefingers
Grep? - using a file of terms to search another file when the information is on a different line
I have a flat file that looks like this, let's call it Chromosome_9.txt:
FT /Gene_Name="Guanyl-Acetylase 9"
FT /Gene_Number"36952"
FT ...
2,691
Posted By Twinklefingers
Perfect, this is just what i was looking for.
Perfect, this is just what i was looking for.
2,691
Posted By Twinklefingers
The data there was just an illustration, the...
The data there was just an illustration, the actual files are lists of 1501 and 451 numbers respectively. The difference in number of lines is likely another issue.

The match must be 100% perfect...
2,691
Posted By Twinklefingers
Done, thanks!
Done, thanks!
2,691
Posted By Twinklefingers
Comparing lists when "diff" isn't sufficiently stringent
Greetings.

I like to compare two lists of numbers, A.txt and B.txt, to see the numbers that are in B.txt but not in A.txt. I only need the "deletions" with reference to A.txt. Using the diff...
Showing results 1 to 25 of 33

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