home.social

#filerename — Public Fediverse posts

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

fetched live
  1. Learning the syntax and functions included with the #fishshell. Renaming all the "xxx.bw" files from a folder, to remove the words "Aligned.sortedByCoord.out.bam" that the #STAR mapper adds to the file names looks like this:

    set THEFILES (find . -name "*.bw")
    for f in $THEFILES
    command mv $f (echo (string replace Aligned.sortedByCoord.out.bam "" $f))
    end

    One can also use #sed, but the string manipulation functions included with fish are quite extensive.

    #linux #commandline #filerename