Rants and ravings of a semi-autistic developer who has a hard time remembering idiotic nonsense details. Why remember it, when you know where to find it.
Friday, September 29, 2017
du calculate totalsize of list of files
Reading list of files and calculate the total size
cat /tmp/deletepurg.txt| tr \\n \\0 | du -skh --files0-from=- --total
Friday, September 1, 2017
reading 3 lines in one time in oneliner perl
cat PDDV_hosts.txt | perl -e 'while (my $frs=<>) { chomp $frs; $sec=<>; chomp $sec; $th=<> ;printf "%s,%s,%s", $frs, $sec, $th; }'
Subscribe to:
Posts (Atom)