The tag has no usage guidance.

learn more… | top users | synonyms

2
votes
1answer
32 views

Override page numbers of a djvu document

I have a djvu scan of a book. Let's consider two cases: I'd like to number the pages 0, 1, 2, ... (usage case: the cover should get be page 0) I'd like to number some pages with Roman numbers and ...
0
votes
0answers
22 views

adapt this yates-fisher code for a random generator

I am trying to make my version of a random number generator that doesn't leave bash scripting language. Starting with a yates-fisher shuffle, i am trying to use this as the starting point...and go ...
0
votes
0answers
108 views

Increment Numbers in URL?

I want to create a list of URLs. The URLs have two sets of identical numbers which need to be incremented by 1: http://sample.com/poilus/cwrgshs/192/192.html ...
2
votes
1answer
128 views

sed: append line and number output

In Linux, say one wants to add the following line before line number five (thus line nuber 5 becomes line number 6) and wants to have all the lines in the output numbered throught the sed 'tool' = ...
3
votes
3answers
139 views

Delta of numbers in file

On our server a cronjob has logged a count of files in a shared directory. The log is of the form: 2003-07-03T16:05 279 2003-07-03T16:10 283 2003-07-03T16:15 282 By now this file has far over a ...
1
vote
3answers
212 views

Extract line number of a file which is having a non zero value before a specified string

I'm having a file which contains following data 1. verification: 10 passed 0 failed 2. verification: 10 passed 0 failed 3. verification: 10 passed 1 failed 4. verification: 10 passed 3 failed 5. ...
6
votes
3answers
3k views

Are the major, minor number unique

Are the major, minor number Unique? Do we have any citations and reference to it? NAME MAJ:MIN RM SIZE RO MOUNTPOINT sda 8:0 0 465.8G 0 ├─sda1 8:1 0 298.2M 0 ├─sda2 8:2 0 ...
3
votes
3answers
3k views

ffmpeg -pattern_type glob — not loading files in correct order

I have a dilemma.. I've had a script for a while now that downloads pictures from a webcam every few minutes. The naming convention just does new_image((len(files(dir))+1) + '.jpg') and that's all ...
0
votes
1answer
64 views

emacs line wrapping and numbering

How can I tell emacs to wrap lines at the 80th character? I am looking for a solution I can put in /.emacs. I put this in /.emacs but it doesn't work. ;; ========== Enable Line Numbering ========== ...
3
votes
3answers
407 views

swapping fields in columns by fixed pattern (yes, no, no, yes)

I want to produce a following list of pages (for imposition work); (number of pages is variable, but I make a sample of my needs using a list of 16 pages, logic is the same for longer lists) 1,16 8,9 ...
2
votes
3answers
294 views

repeat twice each couple of strings in a for cycle

I need to pass to pdftk, a list of arguments constituted by strings repeated twice like: A1-2 B1-2 A3-4 B3-4 A5-6 B5-6... and so on... I managed to achieve this with this workaround for ((x=1, ...
25
votes
8answers
21k views

List files sorted numerically

I have a bunch of files from log1 to log164. I'm trying to LIST the directory (sorted) in a UNIX terminal but the sort functions are only providing the format like this: home:logs Home$ ls -1 | sort ...
3
votes
6answers
1k views

Add consecutive numbers succintly and elegantly to index lines

I usually do this $ wc questions 33 36 3105 questions $ seq 1 33 > nums $ paste nums questions 1 Content 2 ... . . 33 End Content but I feel there could be faster way to do ...