JIYIK CN >

Current Location:Home > Learning > OPERATING SYSTEM >

All

Stop a running process from a batch file

Publish Date:2025/03/21 Author:JIYIK Category:OPERATING SYSTEM

This article explains how to stop a running process from a batch file in Windows. We use Batch's taskkill command to terminate the running process. 请注意 , the command will be executed only if the specified process is open. Batch file t...

Full

Extract or unzip files in batch script

Publish Date:2025/03/21 Author:JIYIK Category:OPERATING SYSTEM

In this article, we will see how to create a batch script to extract files from a zip file. Create a batch script to unzip the files We can extract or decompress files using batch scripts which need to contain the destination directory wher...

Full

Running batch scripts in C#

Publish Date:2025/03/21 Author:JIYIK Category:OPERATING SYSTEM

In this article, we will see how to write a C# program that can run a batch file from a directory. Running batch scripts in C# In C#, when we want to execute a batch file, it acts as a process. You can follow the sample code below to run a...

Full

Replace text in a file in batch script

Publish Date:2025/03/21 Author:JIYIK Category:OPERATING SYSTEM

In this article, we will look at some ways to replace text in a file. We will look at two different ways. Our first approach consists only of a batch script to perform the task, while the second approach provides a solution through Windows...

Full

Echoing to stderr in Bash

Publish Date:2025/03/21 Author:JIYIK Category:OPERATING SYSTEM

The default error message variable for built-in Bash scripts is called stderr. It is also called standard error and is the default output device for errors. Sometimes we have to redirect the error to an output channel. The Linux environment...

Full

Echo Tab Character in Bash Script

Publish Date:2025/03/21 Author:JIYIK Category:OPERATING SYSTEM

This article explains how to echo one or more tab characters when using Bash scripts. Echo Tab Character in Bash Script echo The command is simple: it prints whatever is passed to the terminal. Normally, if you save a variable as: example=...

Full

Parsing XML in Bash

Publish Date:2025/03/21 Author:JIYIK Category:OPERATING SYSTEM

It's almost impossible to find a developer who still doesn't use XML. It's a popular markup language that's widely used to structure and transmit data. This article will show how we can parse XML with Bash. We will discuss two libraries her...

Full

Passing all arguments in Bash

Publish Date:2025/03/21 Author:JIYIK Category:OPERATING SYSTEM

In Bash scripts, we mainly use the syntax $1 $2 $3 ... $N to pass variables in functions. Here N is a non-negative integer such as 1, 2, 3, .... But there is a shortcut to accomplish the same task of passing all the arguments. This article...

Full

Sum a list of numbers in a text file using Bash

Publish Date:2025/03/21 Author:JIYIK Category:OPERATING SYSTEM

This article will show you multiple ways to sum a list of numbers in a file using Bash scripts. The first method involves using the paste command, and we will discuss two cases: using an existing file and reading a file using standard input...

Full

Checking Syntax in Bash

Publish Date:2025/03/21 Author:JIYIK Category:OPERATING SYSTEM

This article discusses methods for checking Bash scripts for syntax problems without running the script. Syntax errors are caused by some grammatical or spelling mistakes in the code. In modern compilers of other programming languages, the...

Full

Start a new terminal session in Bash

Publish Date:2025/03/21 Author:JIYIK Category:OPERATING SYSTEM

In various situations when using Bash or another shell, you may need to run a script or program in a new terminal instance or in another tab in the same terminal. Opening a new terminal instance or tab from within Terminal is simple; we'll...

Full

timeout command in Bash

Publish Date:2025/03/21 Author:JIYIK Category:OPERATING SYSTEM

This article is a simple guide to setting a timeout for a specific program using the timeout command from GNU's coreutils package in Bash. timeout command in Bash In many cases, such as fetching data from a server or running a function or p...

Full

Exit Bash Script

Publish Date:2025/03/21 Author:JIYIK Category:OPERATING SYSTEM

This article provides a brief introduction to Bash scripting and discusses exiting a Bash script when an error occurs. It further discusses the limitations and benefits of Bash scripting. What is Bash Scripting A computer script/program tel...

Full

eval command in bash script

Publish Date:2025/03/21 Author:JIYIK Category:OPERATING SYSTEM

eval command in bash script

This article is about using strings as commands in Bash scripts. For this purpose, the eval command is used. Eval Command in Bash Scripts In some Bash scripts, you have to create a string using variables or input values ​​(for example)...

Full

Scan to Read All Tech Tutorials

Social Media
  • https://www.github.com/onmpw
  • qq:1244347461

Hottest

Tags

Scan the Code
Easier Access Tutorial