By kimot, 20 January, 2023 PASE - how to count lines in txt file wc -l filename.txtorcat -n filename.txt
By kimot, 19 January, 2023 PASE - how to delete files from folder older than X days QSH CMD('/QOpenSys/pkgs/bin/find /directory_where_files_are/ -mtime +10 -type f -name ''*.pdf'' -delete')
By kimot, 27 December, 2022 PASE - how to compress old logs find -mtime +30 -type f -a \( -name "access*" -o -name "error*" \) -printf 'zip ./archive/archive-%TY%Tm.zip %f; rm %f\n' |sh
By kimot, 27 December, 2022 PASE - yum Errno 12 yum list available http://public.dhe.ibm.com/software/ibmi/products/pase/rpms/repo/repodata/repomd.xml: [Errno 12] Timeout on http://public.dhe.ibm.com/software/ibmi/products/pase/rpms/repo/repodata/repomd.xml: (28, 'Operation too slow.