Search Results

Search: Posts Made By: ANKIT ROY
871
Posted By ANKIT ROY
Making a parser
input
1..100km
112..403km
500..623km

required output
1..51
112..162
500..550
(i.e 50kms added to the initial distance)
1,515
Posted By ANKIT ROY
How to make partitions in a text file?
Suppose I have a file named intro.txt and its content is as follows
My name is Ankit.
I am 18.
I am a college student.
So I want make partitions in this and store it as
1. name.txt - I am 18....
2,360
Posted By ANKIT ROY
Suppose I have given input a long string like...
Suppose I have given input a long string like SGHDRIAKGCJLFIFZKGCHXJFSGKCHVGZRUAJFAKGXLH
I want a text file storing the location of S like 1 24.
Suppose the string is stored as some text file like...
754
Posted By ANKIT ROY
Input AHSDGJOGDXBSAJVDGJDSVKKBDAZZGJJVD(the...
Input
AHSDGJOGDXBSAJVDGJDSVKKBDAZZGJJVD(the string)
D (the letter or a string to be searched)
0-5 7-14 20-30 35-41(the intervals)
Output
1(Freq of D) 4(location)
1 8
2 15,18
1 24
1 41

...
2,360
Posted By ANKIT ROY
After using grep -ob I am getting the location of...
After using grep -ob I am getting the location of the strings but I don't know how to store that in a text file.
2,360
Posted By ANKIT ROY
---------- Post updated at 03:52 PM ----------...
---------- Post updated at 03:52 PM ---------- Previous update was at 03:50 PM ----------

Yes I want to redirect the output of the code to a text file
754
Posted By ANKIT ROY
Repetition in a particular interval
Suppose I have a word which is repeating in a string continuously. I have a set of intervals. Then how do I find the number occurrences of that word in those intervals and their location of...
2,360
Posted By ANKIT ROY
Search a string and display its location on the entire string and make a text file
I want to search a small string in a large string and find the locations of the string. For this I used grep "string" -ob <file name where the large string is stored>. Now this gives me the locations...
Showing results 1 to 8 of 8

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