home.social

#shelloneliner — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #shelloneliner, aggregated by home.social.

fetched live
  1. @ianthetechie @benjamineskola @bbbhltz

    Ooops! Perfection comes to Europe next year! XD

    rld@Intrepid:~$ for x in {1900..2050}; do cal -M feb $x |grep -q "^ 1 " && echo $x; done
    1904
    1909
    1915
    1926
    1932
    1937
    1943
    1954
    1960
    1965
    1971
    1982
    1988
    1993
    1999
    2010
    2016
    2021
    2027
    2038
    2044
    2049
    rld@Intrepid:~$ 
    

    #ShellOneLiner

  2. Since people are going nuts online about how perfect February 2026 is... here you go:

    ~ $ cal feb 2026
       February 2026      
    Su Mo Tu We Th Fr Sa  
     1  2  3  4  5  6  7  
     8  9 10 11 12 13 14  
    15 16 17 18 19 20 21  
    22 23 24 25 26 27 28  
                          
                          
    ~ $ for x in {1900..2050}; do cal feb $x |grep -q "^ 1 " && echo $x; done
    1903
    1914
    1920
    1925
    1931
    1942
    1948
    1953
    1959
    1970
    1976
    1981
    1987
    1998
    2004
    2009
    2015
    2026
    2032
    2037
    2043
    

    #bash #BashOneLiner #ShellOneLiner #shell #UnixShell #unix

  3. @rl_dane Or maybe
    `find -print0 | grep -i '.*\.pdf' | xargs -0tL 1 pdftotext | grep`
    to do that and filter for PDFs only (by filename extension).

  4. let i=-100; while [ "$i" -le 100 ]; do spd-say -w -t female2 -r "$i" -p "$i" -i "$i" 'old'; let i=i+10; done; spd-say 'SUPER DUPER OLD!!!'

  5. Interesting command to list info about info on your system:
    grep -o '^.*/' /etc/mime.types | uniq -c

    You can fiddle around with it. Some useful things there, like `uniq -c` and `grep -o`. Works on my system.