Posts

Showing posts from September 5, 2018

Accidentally trashed large file

Image
Clash Royale CLAN TAG #URR8PPP up vote 2 down vote favorite 1 I accidentally moved an entire directory of ~100GB to trash. I was trying to place it in bookmarks but dragged it into trash. It's there in the trash. But when i try to restore I run out of space on the disk Prior to deletion I had less than 50GB free on disk, if I need to restore the normal way I need about 68GB more free on the disk. That is if I have to restore I have to delete every file from trash immediately after restoring it so i can revert back to initial state. I tried to use "rsync -av --remove-source-files /Trash/file /Dest" but it also doesn't work. Any suggestions to solve the problem ? I use MX17 beta 2 based on debian stable.The disk is NTFS formatted. shell-script debian file-copy ntfs deleted-files share | improve this question asked Nov 27 '17 at 9:56 m c squared 328 2 7 1 What does "not work" with your attempt with rsync ...

Change a list of strings to lowercase

Image
Clash Royale CLAN TAG #URR8PPP up vote 2 down vote favorite I have two files, one file contains a list of strings. +stringa +Dog +Cat +cat +Tux +elephant and the second file (csv) contains something like: "123456 Abc","+Stringx +123","something" "23456 dEf","+cat +Tux +elephant","Other something" "34524 xyz","+stringa +Dog +Cat","third something" the result should be: "123456 Abc","+Stringx +123","something" "23456 dEf","+cat +tux +elephant","Other something" "34524 xyz","+stringa +dog +cat","third something" How I can change the strings, that match my list of patterns, to lowercase? My comma-separated values file have about 30 columns and about 1500 rows. text-processing share | improve this question edited Nov 27 '17 at 14:44 Philip Kirkbride 2,292 24 70 asked Nov 2...