542 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
0
votes
1
answer
71
views
AWS CLI error with delete objects recursively using include, exclude
I have various sub-directories inside my s3 bucket which contain 2 files, namely:
pavement_suitability_final_result.gpkg
Intermediate_Part1_output.gpkg
I wish to delete only the files named as ...
0
votes
0
answers
20
views
Docker Spark-Notebook: 'rm: missing operand' error when trying to remove RUNNING_PID on container restart
spark-notebook:
image: bde2020/spark-notebook:2.1.0-hadoop2.8-hive
container_name: spark-notebook
restart: on-failure:5
command: sh -c "rm -f /opt/spark-notebook/RUNNING_PID &&...
0
votes
1
answer
117
views
Can't delete folder on Azure Persistent Storage
I am running an Azure App Service that deploys a container app. I enabled persistent storage so I can store some database data. The service is in the stopped state and now I wanted to remove the ...
0
votes
2
answers
83
views
rm command works in shell but not in Makefile
I have an rm command that does not work in a Makefile but when I copy it to the shell it works:
$ make clean
rm paper.{abs,blg,pdf,aux,log,bbl,out,xmpdata}
rm: cannot remove 'paper.{abs,blg,pdf,aux,...
0
votes
1
answer
207
views
unable to dwonload zip file from google drive using gdown method in vs code
manually downloading openpose models
%%bash
gdown 1QCSxJZpnWvM00hx49CJ2zky7PWGzpcEh
unzip models.zip
mv /content/models/face/pose_iter_116000.caffemodel /content/openpose/models/face/pose_iter_116000....
0
votes
1
answer
27
views
how to prevent exit 1 when blanket rm -R with empty directories
So I am deploying a script to remove several directories of a program we no longer use. It was such a cluster though that not all directories are present on the computers. I am doing a simple rm -R ...
-2
votes
2
answers
741
views
Is there any way I can use rm -rf in PowerShell?
I know that I can use rm -r -fo to remove a folder and all its content in PowerShell. But is there any way I can use rm -rf in PowerShell?
I tried to add the below scripts into my $Profile, but both ...
0
votes
1
answer
225
views
nodejs fs.rm(path, { recursive: true, force: true }) throws "ENOTEMPTY: directory not empty"
import { existsSync } from "fs";
import fs from "fs/promises";
export async function makeFolder(path: string) {
if (existsSync(path)) {
try {
await fs.rm(path, { recursive: true, ...
0
votes
1
answer
927
views
node js rimraf delete dist folder in any of the subfolders of src
I have many dist folders inside src folder. It can be nested at any depth.
src
- dist
- main
- dist
- com
- dist
....
- test
- dist
-...
0
votes
1
answer
381
views
rm: cannot remove `dir-name': Directory not empty [closed]
ls -al .vscode-server
# . .. bin
ls -al .vscode-server/bin
# . ..
I tried to use rm -rf .vscode-server to remove .vscode-server, and got rm: cannot remove 'dir-name': Directory not empty.
I tried ...
0
votes
0
answers
570
views
Deleting folders and files from s3 bucket based on last modified date column and based on name prefix using AWS CLI
I want to delete folders from aws s3 my-bucket which are older than 2023年05月01日 and folder names which starts with "000". using AWS CLI
I can delete folders and files which starts with "...
0
votes
1
answer
77
views
Shell script - rm does not remove directory from variable set by external parameter
I would like to run a shell script test_shell.sh to delete a directory defined by a parameter set in another file test_config.txt.
test_config.txt:
var = testdir
test_shell.sh:
#!/bin/bash
vardel=$(...
0
votes
1
answer
372
views
Add-AzureRmVhd : Resource group 'ResourceGroupName' could not be found
I'm trying to import VHD via PowerShell in a Virtual Machine but am getting errors.
Add-AzureRmVhd : Resource group 'ResourceGroupName' could not be found.
At line:1 char:1
+ Add-AzureRmVhd -...
-1
votes
1
answer
46
views
How to remove special character filename in Linux?
I have a filename with -v. I try to remove it by
rm -v or rm "-v" or rm \-v
But it shows something like
rm: missing operand
Try 'rm --help' for more information.
1
vote
0
answers
206
views
Rightmove deliveryPointId does not match up with Royal Mail "CSV PAF.CSV" file
I have obtained a particular property's deliveryPointId from one of their pages. I then tried to match it up with its correct address from the PAF file but find that it matches a property in a ...