LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 07-07-2017, 05:27 PM   #16
danielbmartin
Senior Member
 
Registered: Apr 2010
Location: Apex, NC, USA
Distribution: Mint 17.3
Posts: 1,881

Rep: Reputation: 660Reputation: 660Reputation: 660Reputation: 660Reputation: 660Reputation: 660

Quote:
Originally Posted by BW-userx View Post
... the means to search this and report back would result in this means saying that, 4, 6, 9-18 are missing ...
This is an incomplete solution but may be helpful.

With this InFile ...
Code:
01
02
03
05
07
08
19
... this code ...
Code:
seq -w $(sed '$!d' $InFile)  \
|comm -3 - $InFile           \
>$OutFile
... produced this OutFile ...
Code:
04
06
09
10
11
12
13
14
15
16
17
18
Daniel B. Martin
 
Old 07-07-2017, 05:31 PM   #17
scasey
LQ Veteran
 
Registered: Feb 2013
Location: Tucson, AZ, USA
Distribution: CentOS 7.9.2009
Posts: 5,727

Rep: Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211
Replace
Code:
$max = $ARGV[0];   ## get max number from the command line
$max++;
with
Code:
if ($ARGV[0]) {
	$max = $ARGV[0];   ## get max number from the command line
	$max++;
}
else {
	print "usage is $0 maxvalue";
}
to add a test for the required command line entry.
 
Old 07-07-2017, 05:32 PM   #18
Laserbeak
Member
 
Registered: Jan 2017
Location: Manhattan, NYC NY
Distribution: Mac OS X, iOS, Solaris
Posts: 508

Rep: Reputation: 143Reputation: 143
Just to make it clear, you are looking for missing numbers between the minimum and maximum existing numbers in the bold italic area here:
Code:
FileName-xxx-xxxxxxx.ext
Everything else should be left alone and if 001 is missing, you aren't supposed to add it. You only add missing numbers after the first one that is there, even if it is 013? Then end at the last existing number, like 912?
 
Old 07-07-2017, 05:33 PM   #19
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Original Poster
Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
Quote:
Originally Posted by scasey View Post
you need the output of
Code:
which perl
to match what's on the #! line.

on my server:
Code:
$ which perl
/usr/bin/perl
Hmm. Me too. let me see what I broke...
Oh. You get nothing if you don't supply a max value on the command line -- there should probably be a test for that:
Code:
./perl-find-missing-numbers.pl 270
(or whatever the current name of the script is...)
(your #! must be right, or you'd have got errors)
OIC chuckle not the word maxnumber -- haha ok hold on.

Code:
userx%slackwhere ⚡ scripts ⚡> ./perl-find-missing-numbers.pl 270
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 
userx%slackwhere ⚡ scripts ⚡>
looks like all its doing is just printing out 1- 270

Last edited by BW-userx; 07-07-2017 at 05:37 PM.
 
Old 07-07-2017, 05:46 PM   #20
scasey
LQ Veteran
 
Registered: Feb 2013
Location: Tucson, AZ, USA
Distribution: CentOS 7.9.2009
Posts: 5,727

Rep: Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211
Quote:
Originally Posted by BW-userx View Post
OIC chuckle not the word maxnumber -- haha ok hold on.

Code:
userx%slackwhere ⚡ scripts ⚡> ./perl-find-missing-numbers.pl 270
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 
userx%slackwhere ⚡ scripts ⚡>
looks like all its doing is just printing out 1- 270
Is the path to the working directory inside the script correct? Maybe not. /run is unusual. If not, change that to the path to where the files are.
Code:
$working_dir=/run/media/userx/250GB/NumberedFiles;
I just picked up what you posted, and am using
Code:
find "$working_dir" -type f
to get the list of files in the format FileName-xxx-xxxxxxx.ext -- then parsed out the xxx (the number between the hyphens) to populate the list of numbers that are present.

If the script doesn't find a bunch of files in that format, then yes, it will just print the range of numbers.

Last edited by scasey; 07-07-2017 at 05:53 PM.
 
Old 07-07-2017, 06:12 PM   #21
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Original Poster
Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
Quote:
Originally Posted by danielbmartin View Post
This is an incomplete solution but may be helpful.

With this InFile ...
Code:
01
02
03
05
07
08
19
... this code ...
Code:
seq -w $(sed '$!d' $InFile)  \
|comm -3 - $InFile           \
>$OutFile
... produced this OutFile ...
Code:
04
06
09
10
11
12
13
14
15
16
17
18
Daniel B. Martin
Don't know if I did this right but i think so?
Code:
userx%slackwhere ⚡ production ⚡> ls
2Copy1moveFiles                    FindMissingNumbers  addTagsMp3
FILES                              Numbers             changeNames
FIndMoviesAndPutThemSomewhereElse  SubString-move      resort-sounds
bersx%slackwhere ⚡ production ⚡> seq -w $(sed '$!d' Numbers) | comm -3 - Num 
001
002
003
004
005
006
007
008
009
010
011
012
013
014
015
016
017
018
019
020
021
022
023
024
025
026
027
028
029
030
031
032
033
034
035
036
037
038
039
040
041
042
043
044
045
046
047
048
049
050
051
052
053
054
055
056
057
058
059
060
061
062
063
064
065
066
067
068
069
070
071
072
073
074
075
076
077
078
079
080
081
082
083
084
085
086
087
088
089
090
091
092
093
094
095
096
097
098
099
        1
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
        2
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
        3
        4
        5
        6
        7
        8
        9
comm: file 2 is not in sorted order
        10
        11
        12
        13
        14
        15
        16
        17
        18
        19
        20
        21
        22
        23
        24
        25
        26
        27
        28
        29
        30
        31
        32
        33
        34
        35
        36
        37
        38
        39
        40
        41
        42
        43
        44
        45
        46
        47
        48
        49
        50
        51
        52
        53
        54
        55
        56
        57
        58
        59
        60
        61
        62
        63
        64
        65
        66
        67
        68
        69
        70
        71
        72
        73
        74
        75
        76
        77
        78
        79
        80
        81
        82
        83
        84
        85
        86
        87
        88
        89
        90
        91
        92
        93
        94
        95
        96
        97
        98
        99
        100
        101
        102
        103
        104
        105
        106
        107
        108
        109
        110
        111
        112
        113
        114
        115
        116
        117
        118
        119
        120
        121
        122
        123
        124
        125
        126
        127
        128
        129
        130
        131
        132
        133
        134
        135
        136
        137
        138
        139
        140
        141
        142
        143
        144
        145
        146
        147
        148
        149
        150
        151
        152
        153
        154
        155
        156
        157
        158
        159
        160
        161
        163
        164
        165
        166
        167
        168
        171
        176
        177
        178
        179
        180
        182
        183
        184
        185
        187
        188
        189
        190
        191
        192
        193
        194
        199
        200
        201
        202
        203
        204
        205
        206
        207
        208
        209
        210
        211
        212
        213
        214
        215
        216
        217
        218
        219
        220
        221
        222
        223
        224
        225
        226
        227
        228
        229
        230
        231
        232
        233
        234
        235
        236
        237
        238
        239
        240
        241
        242
        243
        244
        245
        246
        247
        248
        249
        250
        251
        252
        253
        254
        255
        256
        257
        258
        258
        259
        260
        261
        262
        263
        264
        265
        266
        267
        268
        269
        270
userx%slackwhere ⚡ production ⚡>
I got the numbers of every file present, all it needs is to be processed to find the missing numbers in the sequence of 001 - 270
 
Old 07-07-2017, 06:19 PM   #22
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Original Poster
Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
Quote:
Originally Posted by scasey View Post
Is the path to the working directory inside the script correct? Maybe not. /run is unusual. If not, change that to the path to where the files are.
Code:
$working_dir=/run/media/userx/250GB/NumberedFiles;
I just picked up what you posted, and am using
Code:
find "$working_dir" -type f
to get the list of files in the format FileName-xxx-xxxxxxx.ext -- then parsed out the xxx (the number between the hyphens) to populate the list of numbers that are present.

If the script doesn't find a bunch of files in that format, then yes, it will just print the range of numbers.
I made sure to change that path to for the proper path to dir on my system. that was a 'dummy' path for example that I gave.

I got everything written to get the numbers , strip off leading zeros and put them in order into a file, back on post #4

now all that is really need is to take that file and process it to look for the missing numbers in the sequence of numbers 1 - 270 and print them out in sequence of numbers missing.

like this
4, 5, , 6, 7, 8 , 9 , 10, 20 not 4 - 10 , 20

Last edited by BW-userx; 07-07-2017 at 06:22 PM.
 
Old 07-07-2017, 06:36 PM   #23
scasey
LQ Veteran
 
Registered: Feb 2013
Location: Tucson, AZ, USA
Distribution: CentOS 7.9.2009
Posts: 5,727

Rep: Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211
Quote:
Originally Posted by BW-userx View Post
I made sure to change that path to for the proper path to dir on my system. that was a 'dummy' path for example that I gave.

I got everything written to get the numbers , strip off leading zeros and put them in order into a file, back on post #4

now all that is really need is to take that file and process it to look for the missing numbers in the sequence of numbers 1 - 270 and print them out in sequence of numbers missing.

like this
4, 5, , 6, 7, 8 , 9 , 10, 20 not 4 - 10 , 20
So the perl script doesn't do what you need? It should output the missing numbers, with no leading zeros, in sequence, using the file name format you posted. Do we need to add the commas?
Do you want to work on why it doesn't? I'm happy to do that.
 
Old 07-07-2017, 07:05 PM   #24
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Original Poster
Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
Quote:
Originally Posted by scasey View Post
So the perl script doesn't do what you need? It should output the missing numbers, with no leading zeros, in sequence, using the file name format you posted. Do we need to add the commas?
Do you want to work on why it doesn't? I'm happy to do that.
no comma needed print \n really,
you script prints this. Just showing a little of it, the bold are actual files NOT there they get printed.
Code:
167
168
169
170
171
172
173
174
175
176
the red is what should not get printed.

this is from the actual file
Code:
167
168
171
176

Last edited by BW-userx; 07-07-2017 at 07:14 PM.
 
Old 07-07-2017, 07:17 PM   #25
AnanthaP
Member
 
Registered: Jul 2004
Location: Chennai, India
Posts: 952

Rep: Reputation: 217Reputation: 217Reputation: 217
...

Last edited by AnanthaP; 07-07-2017 at 07:19 PM.
 
Old 07-07-2017, 07:20 PM   #26
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Original Poster
Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
Quote:
Originally Posted by AnanthaP View Post
Probably fastest.
Pipe the sorted file names to an awk script that scans of the previous file name was one less then the previous. If not write the missing names(s).

OK
O' to the awk --- unfamiliar with it but the one i did find almost does what I am wanting.
Code:
awk '$1!=p+1{print p+1"-"$1-1}{p=$1}'  Numbers
gives me this
Code:
162-162
169-170
172-175
181-181
186-186
195-198
259-257
not
Code:
172
173
174
175
got just read up and test test test.

Last edited by BW-userx; 07-07-2017 at 07:22 PM.
 
Old 07-07-2017, 07:23 PM   #27
scasey
LQ Veteran
 
Registered: Feb 2013
Location: Tucson, AZ, USA
Distribution: CentOS 7.9.2009
Posts: 5,727

Rep: Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211
Strange. It works for me:
Code:
 ls -l
-rw-r--r-- 1 root root    0 Jul  7 14:04 FileName-001-xxxxxxx.ext
-rw-r--r-- 1 root root    0 Jul  7 13:18 FileName-002-xxxxxxx.ext
-rw-r--r-- 1 root root    0 Jul  7 13:18 FileName-003-xxxxxxx.ext
-rw-r--r-- 1 root root    0 Jul  7 13:18 FileName-006-xxxxxxx.ext
-rw-r--r-- 1 root root    0 Jul  7 13:18 FileName-007-xxxxxxx.ext
-rw-r--r-- 1 root root    0 Jul  7 13:19 FileName-010-xxxxxxx.ext
-rw-r--r-- 1 root root    0 Jul  7 13:17 FileName-016-xxxxxxx.ext
-rw-r--r-- 1 root root    0 Jul  7 14:04 FileName-017-xxxxxxx.ext
...switched to one number per line output:
Code:
./lqtest.pl 20
4
5
8
9
11
12
13
14
15
18
19
20
Right? Print out the missing numbers?
Again, the filenames must be in the format sometext-nnn-somemoretext. All I'm doing is parsing out the nnn part of the filename...the part between the hyphens.

If your real filename's numbers are not between two, and only two, hyphens, then the regexps I've written won't work and will need to be adjusted to work as you want.

Last edited by scasey; 07-07-2017 at 07:24 PM.
 
Old 07-07-2017, 07:25 PM   #28
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Original Poster
Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
Quote:
Originally Posted by scasey View Post
Strange. It works for me:
Code:
 ls -l
-rw-r--r-- 1 root root    0 Jul  7 14:04 FileName-001-xxxxxxx.ext
-rw-r--r-- 1 root root    0 Jul  7 13:18 FileName-002-xxxxxxx.ext
-rw-r--r-- 1 root root    0 Jul  7 13:18 FileName-003-xxxxxxx.ext
-rw-r--r-- 1 root root    0 Jul  7 13:18 FileName-006-xxxxxxx.ext
-rw-r--r-- 1 root root    0 Jul  7 13:18 FileName-007-xxxxxxx.ext
-rw-r--r-- 1 root root    0 Jul  7 13:19 FileName-010-xxxxxxx.ext
-rw-r--r-- 1 root root    0 Jul  7 13:17 FileName-016-xxxxxxx.ext
-rw-r--r-- 1 root root    0 Jul  7 14:04 FileName-017-xxxxxxx.ext
...switched to one number per line output:
Code:
./lqtest.pl 20
4
5
8
9
11
12
13
14
15
18
19
20
Right? Print out the missing numbers?
Again, the filenames must be in the format sometext-nnn-somemoretext.
All I'm doing is parsing out the nnn part of the filename...the part between the hyphens.

If your real filename's numbers are not between two, and only two, hyphens, then the regexps I've written won't work and will need to be adjusted to work as you want.
maybe you made a change I didn't get?

yeah that was a guess - they are really formated like this

FileName-001.mp4

I've been working with so many different file with numbers I just took a wild guess, and the 3 numbers is what is needed, and I made provisions to get just them and it looked like you did the same too, but I did not check your code for stripping them that closely.

Last edited by BW-userx; 07-07-2017 at 07:30 PM.
 
Old 07-07-2017, 07:28 PM   #29
scasey
LQ Veteran
 
Registered: Feb 2013
Location: Tucson, AZ, USA
Distribution: CentOS 7.9.2009
Posts: 5,727

Rep: Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211
Quote:
Originally Posted by BW-userx View Post
maybe you made a change I didn't get?
Mayhaps, here's what I just ran...you'll need to change the $working_dir value againl
Code:
#!/usr/bin/perl
## ^^ set to location of your perl

$working_dir="/run/media/userx/250GB/NumberedFiles";
##~ $working_dir=".";   # testing

if ($ARGV[0]) {
	$max = $ARGV[0];   ## get max number from the command line
	$max++;
}
else {
	print "usage is $0 maxvalue";
}

## get list of files name in array  Names are in format of FileName-nnn-xxxxxxx.ext
@files=`find "$working_dir" -type f`;

## remove leading and trailing parts
foreach $file (@files) {
	$file =~ s/^.*?-//;    #remove from beginning to first hyphen
	$file =~ s/-.*$//;	#remove from second hyphen to end
	$existnums[$file]=$file;  #save what's left in array
}

## populate array with all the numbers: 1-input value 
for ($i = 1; $i < $max; $i++) {
    $allnums[$i] = $i;
}

## remove existing numbers from full list
foreach $nbr (@existnums) {
    $allnums[$nbr] = 0
}

## print out the remaining (i.e. missing) numbers
## note, no sorting required because the allnums array is populated in sequence
foreach $nbr  (@allnums) {
	if ($allnums[$nbr] ne 0) {      ## only print the entries that are not -0-
##~ 		print "$allnums[$nbr] ";   ## or 
		print "$allnums[$nbr]\n";  ## to do one per line
	}
}

print "\n";  ## when printing all on one line.

Last edited by scasey; 07-08-2017 at 01:38 AM.
 
1 members found this post helpful.
Old 07-07-2017, 07:39 PM   #30
scasey
LQ Veteran
 
Registered: Feb 2013
Location: Tucson, AZ, USA
Distribution: CentOS 7.9.2009
Posts: 5,727

Rep: Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211
Quote:
Originally Posted by BW-userx View Post
FileName-001.mp4

I've been working with so many different file with numbers I just took a wild guess, and the 3 numbers is what is needed, and I made provisions to get just them and it looked like you did the same too, but I did not check your code for stripping them that closely.
No worries. Change line 21 from
Code:
	$file =~ s/-.*$//;	#remove from second hyphen to end
to
Code:
	$file =~ s/\..*$//;	#remove from  '.' to end
And "it will cut" (sorry..been watching Forged In Fire )

Last edited by scasey; 07-07-2017 at 07:41 PM.
 
1 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Replace text string with sequential numbers inside a textfile K-Veikko Programming 3 04-07-2013 03:23 AM
[SOLVED] find the total of numbers that are higher than x in a text file with numbers (using awk??) Mike_V Programming 12 11-24-2010 09:51 AM
[SOLVED] Replace sequential numbers in a file with a different sequence using sed thefiend Linux - Newbie 6 04-12-2010 10:29 PM
HOWTO convert a group of files in a directory to a set of sequential numbers? lleb Linux - General 7 12-24-2009 07:02 PM
sequence of numbers, how to extract which numbers are missing jonlake Programming 13 06-26-2006 03:28 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 11:24 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration