Visit Our UNIX and Linux User Community

Search Results

Search: Posts Made By: yifangt
Forum: Programming 11-04-2019
9,873
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...
3,604
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...
2,619
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...
3,918
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,227
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,222
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
5,078
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
6,396
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
2,802
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,228
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,228
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

 

Featured Tech Videos

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