LINUX.ORG.RU

А зачем?Что ты хочешь сделать? Для проверки ёмкости флешки есть утилита f3.

ziemin ★★
()

Данное действие не имеет никаких скрытых целей, мне элементарно нужно раскопировать файл на множество копий.

lizius
() автор топика
Ответ на: комментарий от lizius

Создаешь файлик с именем, к примеру, dafaqisthis.sh

В нем пишешь

#!/usr/bin/env bash
source=тут_имя_файла_который_хочешь_размножить
i=0
while cp $source copy_$i
do
  i=$((1+$i))
done

далее в консоли от рута делаешь chmod +x dafaqisthis.sh, кладешь этот файл и файл, который хочешь размножить на флэшку, и запускаешь скрипт ./dafaqisthis.sh

kir64 ★★
()
Ответ на: комментарий от lizius

Или прямо в shell пиши

i=0; while cp /путь/к/файлу /место/куда/примонтирована/флэшка/имя_целевого_файла_$i; do i=$((1+$i)); done

Вот как сработает:

kir@gentoshiba ~ $ i=0; while cp /home/kir/dummyfile /home/kir/dummyfile_$i; do i=$((1+$i)); done     
^C
kir@gentoshiba ~ $ ls dummyfile*
dummyfile      dummyfile_135  dummyfile_173  dummyfile_210  dummyfile_249  dummyfile_287  dummyfile_324  dummyfile_362  dummyfile_40   dummyfile_438  dummyfile_62
dummyfile_0    dummyfile_136  dummyfile_174  dummyfile_211  dummyfile_25   dummyfile_288  dummyfile_325  dummyfile_363  dummyfile_400  dummyfile_439  dummyfile_63
dummyfile_1    dummyfile_137  dummyfile_175  dummyfile_212  dummyfile_250  dummyfile_289  dummyfile_326  dummyfile_364  dummyfile_401  dummyfile_44   dummyfile_64
dummyfile_10   dummyfile_138  dummyfile_176  dummyfile_213  dummyfile_251  dummyfile_29   dummyfile_327  dummyfile_365  dummyfile_402  dummyfile_440  dummyfile_65
dummyfile_100  dummyfile_139  dummyfile_177  dummyfile_214  dummyfile_252  dummyfile_290  dummyfile_328  dummyfile_366  dummyfile_403  dummyfile_441  dummyfile_66
dummyfile_101  dummyfile_14   dummyfile_178  dummyfile_215  dummyfile_253  dummyfile_291  dummyfile_329  dummyfile_367  dummyfile_404  dummyfile_442  dummyfile_67
dummyfile_102  dummyfile_140  dummyfile_179  dummyfile_216  dummyfile_254  dummyfile_292  dummyfile_33   dummyfile_368  dummyfile_405  dummyfile_443  dummyfile_68
dummyfile_103  dummyfile_141  dummyfile_18   dummyfile_217  dummyfile_255  dummyfile_293  dummyfile_330  dummyfile_369  dummyfile_406  dummyfile_444  dummyfile_69
dummyfile_104  dummyfile_142  dummyfile_180  dummyfile_218  dummyfile_256  dummyfile_294  dummyfile_331  dummyfile_37   dummyfile_407  dummyfile_445  dummyfile_7
dummyfile_105  dummyfile_143  dummyfile_181  dummyfile_219  dummyfile_257  dummyfile_295  dummyfile_332  dummyfile_370  dummyfile_408  dummyfile_446  dummyfile_70
dummyfile_106  dummyfile_144  dummyfile_182  dummyfile_22   dummyfile_258  dummyfile_296  dummyfile_333  dummyfile_371  dummyfile_409  dummyfile_447  dummyfile_71
dummyfile_107  dummyfile_145  dummyfile_183  dummyfile_220  dummyfile_259  dummyfile_297  dummyfile_334  dummyfile_372  dummyfile_41   dummyfile_448  dummyfile_72
dummyfile_108  dummyfile_146  dummyfile_184  dummyfile_221  dummyfile_26   dummyfile_298  dummyfile_335  dummyfile_373  dummyfile_410  dummyfile_449  dummyfile_73
dummyfile_109  dummyfile_147  dummyfile_185  dummyfile_222  dummyfile_260  dummyfile_299  dummyfile_336  dummyfile_374  dummyfile_411  dummyfile_45   dummyfile_74
dummyfile_11   dummyfile_148  dummyfile_186  dummyfile_223  dummyfile_261  dummyfile_3    dummyfile_337  dummyfile_375  dummyfile_412  dummyfile_450  dummyfile_75
dummyfile_110  dummyfile_149  dummyfile_187  dummyfile_224  dummyfile_262  dummyfile_30   dummyfile_338  dummyfile_376  dummyfile_413  dummyfile_451  dummyfile_76
dummyfile_111  dummyfile_15   dummyfile_188  dummyfile_225  dummyfile_263  dummyfile_300  dummyfile_339  dummyfile_377  dummyfile_414  dummyfile_452  dummyfile_77
dummyfile_112  dummyfile_150  dummyfile_189  dummyfile_226  dummyfile_264  dummyfile_301  dummyfile_34   dummyfile_378  dummyfile_415  dummyfile_453  dummyfile_78
dummyfile_113  dummyfile_151  dummyfile_19   dummyfile_227  dummyfile_265  dummyfile_302  dummyfile_340  dummyfile_379  dummyfile_416  dummyfile_454  dummyfile_79
dummyfile_114  dummyfile_152  dummyfile_190  dummyfile_228  dummyfile_266  dummyfile_303  dummyfile_341  dummyfile_38   dummyfile_417  dummyfile_455  dummyfile_8
dummyfile_115  dummyfile_153  dummyfile_191  dummyfile_229  dummyfile_267  dummyfile_304  dummyfile_342  dummyfile_380  dummyfile_418  dummyfile_456  dummyfile_80
dummyfile_116  dummyfile_154  dummyfile_192  dummyfile_23   dummyfile_268  dummyfile_305  dummyfile_343  dummyfile_381  dummyfile_419  dummyfile_457  dummyfile_81
dummyfile_117  dummyfile_155  dummyfile_193  dummyfile_230  dummyfile_269  dummyfile_306  dummyfile_344  dummyfile_382  dummyfile_42   dummyfile_458  dummyfile_82
dummyfile_118  dummyfile_156  dummyfile_194  dummyfile_231  dummyfile_27   dummyfile_307  dummyfile_345  dummyfile_383  dummyfile_420  dummyfile_459  dummyfile_83
dummyfile_119  dummyfile_157  dummyfile_195  dummyfile_232  dummyfile_270  dummyfile_308  dummyfile_346  dummyfile_384  dummyfile_421  dummyfile_46   dummyfile_84
dummyfile_12   dummyfile_158  dummyfile_196  dummyfile_233  dummyfile_271  dummyfile_309  dummyfile_347  dummyfile_385  dummyfile_422  dummyfile_47   dummyfile_85
dummyfile_120  dummyfile_159  dummyfile_197  dummyfile_234  dummyfile_272  dummyfile_31   dummyfile_348  dummyfile_386  dummyfile_423  dummyfile_48   dummyfile_86
dummyfile_121  dummyfile_16   dummyfile_198  dummyfile_235  dummyfile_273  dummyfile_310  dummyfile_349  dummyfile_387  dummyfile_424  dummyfile_49   dummyfile_87
dummyfile_122  dummyfile_160  dummyfile_199  dummyfile_236  dummyfile_274  dummyfile_311  dummyfile_35   dummyfile_388  dummyfile_425  dummyfile_5    dummyfile_88
dummyfile_123  dummyfile_161  dummyfile_2    dummyfile_237  dummyfile_275  dummyfile_312  dummyfile_350  dummyfile_389  dummyfile_426  dummyfile_50   dummyfile_89
dummyfile_124  dummyfile_162  dummyfile_20   dummyfile_238  dummyfile_276  dummyfile_313  dummyfile_351  dummyfile_39   dummyfile_427  dummyfile_51   dummyfile_9
dummyfile_125  dummyfile_163  dummyfile_200  dummyfile_239  dummyfile_277  dummyfile_314  dummyfile_352  dummyfile_390  dummyfile_428  dummyfile_52   dummyfile_90
dummyfile_126  dummyfile_164  dummyfile_201  dummyfile_24   dummyfile_278  dummyfile_315  dummyfile_353  dummyfile_391  dummyfile_429  dummyfile_53   dummyfile_91
dummyfile_127  dummyfile_165  dummyfile_202  dummyfile_240  dummyfile_279  dummyfile_316  dummyfile_354  dummyfile_392  dummyfile_43   dummyfile_54   dummyfile_92
dummyfile_128  dummyfile_166  dummyfile_203  dummyfile_241  dummyfile_28   dummyfile_317  dummyfile_355  dummyfile_393  dummyfile_430  dummyfile_55   dummyfile_93
dummyfile_129  dummyfile_167  dummyfile_204  dummyfile_242  dummyfile_280  dummyfile_318  dummyfile_356  dummyfile_394  dummyfile_431  dummyfile_56   dummyfile_94
dummyfile_13   dummyfile_168  dummyfile_205  dummyfile_243  dummyfile_281  dummyfile_319  dummyfile_357  dummyfile_395  dummyfile_432  dummyfile_57   dummyfile_95
dummyfile_130  dummyfile_169  dummyfile_206  dummyfile_244  dummyfile_282  dummyfile_32   dummyfile_358  dummyfile_396  dummyfile_433  dummyfile_58   dummyfile_96
dummyfile_131  dummyfile_17   dummyfile_207  dummyfile_245  dummyfile_283  dummyfile_320  dummyfile_359  dummyfile_397  dummyfile_434  dummyfile_59   dummyfile_97
dummyfile_132  dummyfile_170  dummyfile_208  dummyfile_246  dummyfile_284  dummyfile_321  dummyfile_36   dummyfile_398  dummyfile_435  dummyfile_6    dummyfile_98
dummyfile_133  dummyfile_171  dummyfile_209  dummyfile_247  dummyfile_285  dummyfile_322  dummyfile_360  dummyfile_399  dummyfile_436  dummyfile_60   dummyfile_99
dummyfile_134  dummyfile_172  dummyfile_21   dummyfile_248  dummyfile_286  dummyfile_323  dummyfile_361  dummyfile_4    dummyfile_437  dummyfile_61
kir@gentoshiba ~ $ 

kir64 ★★
()
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.