Search Results

Search: Posts Made By: red baron
2,481
Posted By red baron
Count on every other line
I'd like to create a loop that will display something like:
1
2
29
2
57
2
...
25173
2
I figure I'd want to make some code that counts to 1798 and for the odd numbers displays: 1+28((n-1)/2)...
4,175
Posted By red baron
nope
That's not what I want either. Both those functions output the entire line when there has been a single change to it. If I have two files like this:
File 1:
aaaaaaaa2
aaaaaaaa3 ...
1,974
Posted By red baron
thank you!
That works fantastically, thanks a lot!
4,175
Posted By red baron
diff command
Is there any option for the diff command (or maybe an entirely different command) that will give you only the text that differs between two files? When I use diff file1 file2, if any text on that...
1,974
Posted By red baron
A simple (?) loop
I have what I believe is a simple programming question. I have a text file that looks like:
mol 1 G:\stereo01.hin
block text
...
...
...
endmol 1
However, I would like a file that repeats this...
2,702
Posted By red baron
So I just want to make sure I follow this. You...
So I just want to make sure I follow this. You converted the numbering of lines to base 44 (that's what the NR % 44 was, I gather) so that you could delete any line with a ones place of 9 or under?...
2,702
Posted By red baron
Deleting whole lines from a file
I have a file with 65 sets of 35 coordinates, and would like to isolate these coordinates so that I can easily copy the coordinates to another file. The problem is, I've got a 9 line header before...
19,871
Posted By red baron
I have a similar task I want to perform, however,...
I have a similar task I want to perform, however, I don't need a footer and my header will be the same every time. Also, my header is multiple lines long. I imagine I would just write:
$ split -d...
2,603
Posted By red baron
Automate response to prompt
I'm running a program in the terminal on a computer running ubuntu. After inputing a file containing 900 data sets, I have to enter the line number a particular data set I want to analyze begins on,...
Showing results 1 to 9 of 9

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