The phaseout of the mmap() file operation

The file_operations structure in the kernel is a set of function pointers implementing, as the [...]

LWN.net

#bash #fileoperation

@Morichan
@blhsrwznrghfzpr

https://qiitadon.com/web/statuses/103792055424134305

の別案

#!/usr/bin/env bash

for elem in `echo $@`;do
echo $elem
#rm $elem
done

$ bash sample_bash_200309_exec met_em.d0* | head
met_em.d01.2019-12-11_00:00:00.nc
met_em.d01.2019-12-11_06:00:00.nc
met_em.d01.2019-12-11_12:00:00.nc
met_em.d01.2019-12-11_18:00:00.nc
...

「逐次」削除ですが
7000ファイルだと失敗するかも
です

Morichan (@[email protected])

こうかな ``` #!/bin/bash for i in $(seq 1 ${#}) do echo FilePath: ${1} cat ${1} rm ${1} shift done ```

qiitadon.com