From 6142cc2d79fbddb7ccc33e7b195ab9e82b85b1f1 Mon Sep 17 00:00:00 2001 From: lucid Date: Sat, 5 Jun 2021 21:28:27 +0200 Subject: [PATCH] Add 'Remove Windows System Files' --- Remove-Windows-System-Files.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 Remove-Windows-System-Files.md diff --git a/Remove-Windows-System-Files.md b/Remove-Windows-System-Files.md new file mode 100644 index 0000000..90e0e8c --- /dev/null +++ b/Remove-Windows-System-Files.md @@ -0,0 +1,17 @@ +Locating files: + +This will look for files that have the exact string in the name and print them out into the terminal. Probably can just redirect these location dumps to individual text files and later process them automatically with vim. + +```bash +fzf -e -f [query] > [text file] +``` + +Linux script: + +Files necessary for windows update will be backed up for testing to see if updates can be applied retroactively. The files can either be left in place or copied out to another directory and preserve the original folder structure. I think they should be left in place so less work has to be done in the script to move them back into place. The file extension can be used as a switch to effectively enable and disable the files. + +```bash +#!/bin/bash + +mv my/file/that/has/a/really/long/path/foo.{bar,baz} +``` \ No newline at end of file