New answers tagged

0

A quick bunch of hints. find name_of_folder -name "*.flac" -exec script_to_convert {} \; script_to_convert: filename=$1 newname=dirname $filename/basename $filename .flac.mp3 sox filename newname I suggest you keep the .flac (backup), as it a lossless compression, in contrast to mp3, which degrades the quality.


1

Here's a plain and simple PowerShell solution (as an alternative to batch) gci 'C:\yourpath\yourfolder' | % { get-item $_.FullName | ? { $_.length -gt 10mb } } what we're doing here is: getting all files inside your Folder with gci iterate over all files via foreach-object alias % checking the Items File length via get-item only select the files which ...


1

List all files greater than 10MB in a given directory and its subdirectories. @echo off setlocal enabledelayedexpansion set "SEARCH_DIR=%~1" echo Usage: %~nx0 directory echo Lists all files in given directory and its subdirectories larger than 10MB. if not exist "%SEARCH_DIR%" ( echo "%SEARCH_DIR%" does not exist. exit /b 1 ) for /R "%...


0

First, select the existing link that you created and copy it. Then, run this macro, which will find all occurrences of "TheWordToLink" and paste the link in those places. Sub PasteHyperlinks Dim vDescriptor, vFound, oVC Dim document, dispatcher oVC = ThisComponent.CurrentController.ViewCursor document = ThisComponent.CurrentController....


0

Looks good but there are syntax errors in the tar command, and to avoid any risk of overwriting files in .config/ but out of .config/chromium/, I'd rather operate in the latter directly: rm -rf /home/pi/.config/chromium/* tar -xzf reseterfiles.tgz -C /home/pi/.config/chromium Sidenote: always test potentially destructive scripts! Here you may want to ...



Top 50 recent answers are included