shell tag

84 questions


2 answers
448 views
0
I manage the file name as a number like 111.jpeg, and I want to re-number it all at once with xargs-n2mv, but some files will disappear.

ls1.jpeg2.jpeg3.jpeg11.jpeg12.jpeg13.jpeg101.jpeg102.jpeg103.jpegI want to increase the number by 2ls|seds/\.jpeg//|awk'{print$1.jpeg$1+2.jpeg}'1.jpeg 3.jpeg101.jpeg 103.jpeg102.jpeg 104.jpeg103.jpeg ...

1 years ago

2 answers
302 views
0
I want to treat the comment symbol `<##>` in the shell as a string

I want to replace the <#CLIENT_KEY#> string in the source code with 12345789 in the shell script, but I got an error and I can't run it../ci_post_clone.sh:13:parse error near`\n'What should I do...

1 years ago

1 answers
352 views
0
Understanding docker container run invalid reference format

I built a Dokerfile, created an image, and ran a docker run.The following error cannot be resolved: docker: invalid reference format.See'docker run --help'.When I looked into it, I looked at the artic...

1 years ago

1 answers
418 views
0
Understanding docker container run invalid reference format

I built a Dokerfile, created an image, and ran a docker run.The following error cannot be resolved: docker: invalid reference format.See'docker run --help'.When I looked into it, I looked at the artic...

1 years ago

1 answers
435 views
0
Do I need to install PowerShell?+ Why is the name not defined?

I'm a beginner in programming.I participated in the workshop and decided to use the list named results.The instructor shared the list on Google Collaboration, so the first thing I copied the list to V...


1 answers
396 views
0
How to Coexist Powershell Debugs and Python Debugs in VScode

Window 10proVscode 1.70.2Python 3.9.10<-python interpreter selected under virtual environment/ENV folder by python venvPowershell Extension v2022.7.2Vscode enhancements PowerShell Python  Python Ex...


1 answers
408 views
0
Does PowerShell's Get-Content lock the target files?

View the log files that the script or RPA outputs in real time with the Get-Content option in PowerShell.Sometimes, the script and RPA terminate abnormally due to the error of not opening the log file...

2 years ago

2 answers
410 views
0
I want to exclude only certain folders when I delete files in folders in Powershell

As you can see in the title, I don't want to delete only certain folders as below.It's not working.Is there any way?$filePath='C:\temp\# folder to be deleted$excludeItem='Processed'# Folder you want t...

2 years ago

1 answers
436 views
0
I would like to export PowerPoint to PDF via powershell.

I would like to export PowerPoint to PDF via powershell.I tried writing as below, but PowerPoint.Application.PpFixedFormatType:TypeName doesn't recognize it well.$Path=.\testpdf.pdf$mtrue=[Microsoft.O...


1 answers
403 views
0
I want to separate each new line with awk and extract a record with a specific string in grep.

How do I extract a record from address.txt that is separated by line breaks to four records and contains the string Pass?If you enter the following command, you will see all output.cat address.txt |aw...

2 years ago
« - 3 - »

© 2024 OneMinuteCode. All rights reserved.