9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi Team,
Am getting the below output but need the count of records to be displayed in same line but currently count alone moves to next line. Please let me know how we can still keep the count in the same line.
######code #####
while read YEAR; do
for i in TEST_*PGYR${YEAR}_${DT}.csv; do... (3 Replies)
Discussion started by: weknowd
3 Replies
2. Shell Programming and Scripting
In the attached file if I do a count for "aaaaaaaaaaaa" in either notepad++ or excel I get 118,456.
However, when I do either
grep -o aaaaaaaaaaaa 12A.txt | wc -w or
awk '{
for (i=1;i<=NF;i++)
if ( $i == "aaaaaaaaaaaa")
c++
}
END{
print c}' 12A.txt
I... (3 Replies)
Discussion started by: cmccabe
3 Replies
3. Shell Programming and Scripting
I can not figure out why there are 56,548 unique entries in test.bed. However, perl and awk see only 56,543 and that # is what my analysis see's as well. What happened to the 5 missing? Thank you :).
The file is attached as well.
cmccabe@DTV-A5211QLM:~/Desktop/NGS/bed/bedtools$wc -l... (2 Replies)
Discussion started by: cmccabe
2 Replies
4. Shell Programming and Scripting
Hi,
I have a file with 4 million rows. Each row has certain number ranging between 1 to 30733090.
What I want is to count the rows between each 1000 intervals.
1-1000 4000
1001-2000 2469
...
...
...
...
last 1000 interval
Thanks, (7 Replies)
Discussion started by: Diya123
7 Replies
5. Shell Programming and Scripting
I have a file with multiple entries and I have calculated the percentages. Now I want to know how many of my entries are there between 1-10% 11-20% and so on..
chr1_14401_14450 0.211954217888936
chr1_14451_14500 1.90758796100042
chr1_14501_14550 4.02713013988978
chr1_14551_14600 ... (3 Replies)
Discussion started by: Diya123
3 Replies
6. UNIX for Dummies Questions & Answers
Hi,
this might be a basic question...
why is that wc -c counts 1 more per line than what is there.
for example,
> cat dum1.txt
123
12
> wc -c dum1.txt
7 dum1.txt
Thanks,
Sameer. (4 Replies)
Discussion started by: ensameer
4 Replies
7. UNIX for Dummies Questions & Answers
To start I have a table that has ticketholders. Each ticket holder has a unique number and each ticket holder is associated to a so called household number. You can have multiple guests w/i a household.
I would like to create 3 flags (form a, for a household that has 1-4 gst) form b 5-8 gsts... (3 Replies)
Discussion started by: sbr262
3 Replies
8. Shell Programming and Scripting
suppose u have a file
ACFCFACCACARCSHFARCVJVASTVAJFTVAJVGHBAJ
another file
A
C
F
R
then output shud be
A= 9
C=7
F=3
R=2
Thanks (12 Replies)
Discussion started by: cdfd123
12 Replies
9. UNIX for Dummies Questions & Answers
How can i do a simple record count in my shell script? i just want to count the number of records i receive from a specific file. (11 Replies)
Discussion started by: k@ssidy
11 Replies