Upgrade yt-dlp from version `stable@2024.05.27` to `stable@2024.07.09`
[sunny256-utils.git] / gfuck
blob0414140181e722ccf0d8c257fe4396065439d3e0
1 #!/usr/bin/env bash
3 #=======================================================================
4 # gfuck
5 # File ID: aebb39d4-5d3a-11df-8eb3-90e6ba3022ac
6 # gfuck — gnumeric fuck. Det er så forbanna irriterende at den skal
7 # drive og lagre fila i gzippa format, så det her scriptet pakker den
8 # ut.
9 #=======================================================================
11 for fil in "$@"; do
12 if [ -f "$fil" -o -e "$fil" ]; then
13 zcat -f "$fil" >gfuck.tmp || { echo "gfuck: gfuck.tmp: Feil under skriving til fila" >&2; exit 1; }
14 mv -v gfuck.tmp "$fil" || { echo "gfuck: gfuck.tmp: Klarte ikke å rename den til $fil" >&2; exit 1; }
16 done