Suffix, ta bort: Revision history

Jump to navigation Jump to search

Diff selection: Mark the radio buttons of the revisions to compare and hit enter or the button at the bottom.
Legend: (cur) = difference with latest revision, (prev) = difference with preceding revision, m = minor edit.

11 May 2026

24 November 2021

  • curprev 15:0415:04, 24 November 2021 Linuxwiki>Wikiadmin 587 bytes +157 No edit summary
  • curprev 14:3814:38, 24 November 2021 Linuxwiki>Wikiadmin 430 bytes +430 Skapade sidan med '== Ta bort suffix == Olika sätt att ta bort suffix (.MOV, .bat osv) från filnamn. Källa: https://stackoverflow.com/questions/965053/extract-filename-and-extension-in-bash filename=$(basename -- "$fullfile") extension="${filename##*.}" filename="${filename%.*}" Exempel för att få fram filnamnet utan suffix: filnamnet är "MVI_9652.MOV" '''filename=MVI_9652.MOV''' '''fn="${filename%.*}''' Kategori: kortfattat'