Search Results

Search: Posts Made By: yifangt
Forum: Programming 11-04-2019
15,348
Posted By yifangt
last field for sscanf() is incorrectly parsed
Change the RECORD increment i++; according to your correction fixed the problem!
Thank you so much!
---------------------------------------------------------------------------
Wait! There is...
5,870
Posted By yifangt
Bash variable expansion in awk script
Hello,
I need to split a file into two of different locations by re-direction in awk.
cat infle
aaa 1 3
bbb 2 4
aaa 3 3
bbb 4 4
aaa 5 3
bbb 6 4

cat...
5,962
Posted By yifangt
combine and upgrade by the second fasta file
I put my answer back as I met the scenarios:
1) when file2.fasta contains more entries than in file1.fasta and vice versa. and
2) when the sequence part can have more than one row;
awk...
7,953
Posted By yifangt
SAS can directly export CSV format
Happened to use SAS for a while long time ago. It seems to me there is an option to do the conversion within SAS platform, which even has the GUI interface now. Something like:proc export...
Forum: Programming 11-27-2017
1,969
Posted By yifangt
Thanks Corona688! I did not forget your advice...
Thanks Corona688!
I did not forget your advice on fgets() + sscanf() in C. Switched from there I was hoping to get similar advice in C++ so that I used "best practice". I am aware this is about very...
1,512
Posted By yifangt
Annual VIP member subscription
How can I subscribe for an annual VIP member? I could not find the link.
Thanks!
Forum: Programming 09-12-2014
7,673
Posted By yifangt
C++ getline, parse and take first tokens by condition
Hello,
Trying to parse a file (in FASTA format) and reformat it.
1) Each record starts with ">" and followed by words separated by space, but they are in one same line for sure;
2) Sequences are...
Forum: Programming 01-23-2014
7,924
Posted By yifangt
How stupid to use the scanf format for...
How stupid to use the scanf format for printf!------Thanks, Corona!
I got it now:
printf("%d\n%%\n%c\n%5s\n%c\n%s\n\n", i, c, string, string[5], string+5);

$ ./a.out
Please input a line:
45 ,...
Forum: Programming 11-14-2013
3,408
Posted By yifangt
That was really subtle and, fundamental, too. I...
That was really subtle and, fundamental, too. I can't get it until you pointed out!
This bugged me sooooo much, and I had thought my understanding is totally wrong. Fortunately I am on the right...
1,760
Posted By yifangt
RE:
Good! It's clearer than last time, and the situation is simpler than what I thought .For simplicity I changed the description to string. e.g. CS111 = Student 1 + Course1 + variable1 and so on. ...
1,760
Posted By yifangt
there is answer on this recently.
This is the transposition of matrix. Check the post of acp, an awesome script there.
www.unix.com/shell-programming-scripting/18897-row-column-transpose.html...
Showing results 1 to 11 of 11

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