10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Need to count consecutive characters in a string and give the output as below
i/p=aaaabbcaa
o/p=a4b2c1a2 (10 Replies)
Discussion started by: prasanna2166
10 Replies
2. UNIX for Dummies Questions & Answers
Hi,
let's say an input looks like:
A|C|C|D
A|C|I|E
A|B|I|C
A|T|I|B
as the title of the thread explains, I am trying to get something like:
1|A=4
2|C=2|B=1|T=1
3|I=3|C=1
4|D=1|E=1|C=1|B=1
i.e. a count of every character in each field (first column of output) independently, sorted... (4 Replies)
Discussion started by: beca123456
4 Replies
3. Shell Programming and Scripting
Input File
Time, KeyStation
00:00:00,000;KS_1
00:00:01,000;KS_1
00:00:02,000;KS_1
00:00:03,000;KS_1
00:00:04,000;KS_1
00:00:05,000;KS_1
00:00:06,000;KS_1
00:01:01,000;KS_1
00:01:02,000;KS_1
00:01:03,000;KS_1
00:01:04,000;KS_1
00:01:05,000;KS_1
00:01:06,000;KS_1
01:00:01,000;KS_1... (0 Replies)
Discussion started by: Calypso
0 Replies
4. Shell Programming and Scripting
Hi All,
I have a file which has hundred of records with fixed number of fields. In each record there is set of 8 characters which represent the duration of that activity. I want to sum up the duration present in all the records for a report. The problem is the duration changes per record so I... (5 Replies)
Discussion started by: danish0909
5 Replies
5. UNIX for Dummies Questions & Answers
echo "***Enter new LISTENER_PORT (only applicable to new instance), "
I used the following:
E486: Pattern not found: echo \"\*\*\*Enter new LISTENER_PORT \(only applicable to new instanace\), \"
when I try to search for the above line, I'm not able to do it
so how do I search for the... (5 Replies)
Discussion started by: jediwannabe
5 Replies
6. Shell Programming and Scripting
Hello,
I have a file like following:
ALB_13554 1 1 1
ALB_13554 1 2 1
ALB_18544 2 0 2
ALB_18544 1 0 1
This is a sample of my file, my real file has 441845 number of fields. What I want to do is to calculate the number of 1 and 2 in each column using AWK, so, the output file looks like... (5 Replies)
Discussion started by: Homa
5 Replies
7. UNIX for Dummies Questions & Answers
hey guys. what command in vi editor should I write to make
this
M83RDK-078A -1 1 1024 1 1024 OK X |
M83RDK-055 -1 1 627 1 627 OK X |
become like this
M83RDK-078A 1 1024
M83RDK-055 1... (5 Replies)
Discussion started by: muhnandap
5 Replies
8. Solaris
Hi guys!
i've made a little mysql database to count how many time we print/day from a solaris server.
To get to this info i use the command:
lpstat -W completed|grep "date"after a few dates i've noticed that the amount of printout was everytime 500?!
now the lpstat command keeps only the last... (0 Replies)
Discussion started by: beta17
0 Replies
9. UNIX for Dummies Questions & Answers
I want to extract the string TC from the string TC10, the string can have any characters
out of .
I used the following code but didnt get the right output. Please guide
nuc=match(val,/*/)
seq=substr(val,RSTART,RLENGTH)
---------- Post updated at 09:40 PM ---------- Previous update was... (0 Replies)
Discussion started by: newbie83
0 Replies
10. UNIX for Dummies Questions & Answers
Hi All
I've very nearly finished this script I'm working on but have hit another idiots problem, after googling I can't see a solution for this one.
I have a while count loop that checks checks two consecutive values then increments the count by two.
What the script has to do is then check... (5 Replies)
Discussion started by: Bashingaway
5 Replies