Questions tagged [numbering]
The numbering tag has no summary.
35 questions
1
vote
1
answer
628
views
FISH CLI What do the error numbers at the prompt mean?
I am just trying out the FISH - (the FriendlyInteractiveSHell) - CLI & whenever I type in an erroneous Command, a new Prompt appears under the faulty Command prompt with a number in square ...
0
votes
1
answer
57
views
Would it be feasible to create a script that can right click the mouse at a very specific location when an even more specific number gets generated?
I'm aware of a program that can simulate a right-click at specific coordinates on my display at any given interval.
However, I'm wondering if it's possible to write a script that can perform a right-...
0
votes
1
answer
48
views
How can numbered files be moved and renamed to subsequent numbered files to correct directory?
In ~/wrongdir there are mpv-shot0001.jpg, mpv-shot0002.jpg, mpv-shot0003.jpg, mpv-shot0004.jpg, mpv-shot0005.jpg
where the screenshot key was pressed when a mpv was initiated in ~/wrongdir.
The ...
2
votes
2
answers
141
views
How Can I Find Five Numbers Between Two Numbers
Suppose I have these two numbers: 800000 and 3200000. I want to find five numbers with an even difference in between these two numbers. Therefore, I want the output to be:
800000
1200000
1600000
...
0
votes
2
answers
421
views
match number range with non significative zeros in zsh
I have in a directory files like this :
booklet-001.pdf
booklet-002.pdf
booklet-003.pdf
…
booklet-997.pdf
booklet-998.pdf
booklet-999.pdf
Then, I whant to match the files numbered from 079 to 256. ...
1
vote
3
answers
85
views
Restarting poem line numbering any 4 lines after a blank space
This is related to very interesting answer given here: Any text utility or hack to numbering poems lines omitting certain numbers?
awk 'FNR % 4 == 0 { printf "%6i %s\n", FNR, $0 ; next }; {...
0
votes
3
answers
507
views
Change number written in scientific notation in filenames
I'm going to make a video of image files, but the filenames contain numbers in scientific notation, so the ordering of the name will not be correct.
The filenames are in this format:
ABC_1.000000E-01....
3
votes
3
answers
712
views
Numbering poems stanzas using roman numerals
I would be able to numbering, sequentially, any stanza of a certain poem using roman numerals like this:
Injurious love, why still to mar accord
Between desires has been thy ...
0
votes
2
answers
311
views
Any text utility or hack to numbering poems lines omitting certain numbers?
My goal is try to see if there are common text utilities in linux that can be used to number lines of poems like this:
OF Mans First Disobedience, and the Fruit
Of that Forbidden Tree, whose mortal ...
1
vote
3
answers
817
views
Numbering a bunch of files according to the date modified timestamp?
So I downloaded a bunch of documents in chronological order, but I have to copy and edit them, which would change the date modified. I would like to prefix them with a number (001_, 002_...) in the ...
3
votes
2
answers
442
views
Collapsing a series of comma separated numbers in a sequence to Beginning-End [duplicate]
Problem I am trying to solve/enhance a BASH script that provides a number sequence:
I am using a topologically aware tool (lstopo-no-graphics) to extract physical processor numbers to use for input to ...
1
vote
1
answer
421
views
How to show a line number in bash TUI?
I'm trying to add support for line number on a bash project i like (mainly as a fun exercise).
To start, i looked into the function that was setting up the status line (since i thought of inspiring ...
-1
votes
1
answer
77
views
Count occurrences with a BEGIN/END statement
I have a list of numbers:
2
1
3
2
2
2
1
First I had a filelog. I extracted all the ID. Now, how do I count the occurrences of each number and display it like this?
(the first one is the number, the ...
0
votes
2
answers
97
views
Placing matching occurrence number to the left side of the occurrence itself
I have a file with multiple occurrences of the expression ".mp3". I want the first occurrence to become "1.mp3", the second occurrence to become "2.mp3", and so on.
It would be something like awk '/ ...
-1
votes
1
answer
76
views
Bash: I have a variable in bash script; [duplicate]
I have a variable in bash script dirs= "4"; I want to get this number from another file so I am using a command dirs= sed -n '1p' < test.txt; It gets me the number, I see it in the terminal. But ...