JIYIK CN >

Current Location:Home > Learning > OPERATING SYSTEM >

All

Ignore case in Linux grep

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

In this tutorial, we will learn grep to ignore case in file names using . But first, let's grep start with . Use grep to search each file for a pattern. Patterns lists the patterns separated by newlines, grep outputting each line that match...

Full

Error handling in batch scripts

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

Every scripting and programming language contains error handlers, for example Java contains try-catch for error handling. In batch scripts, there is no direct way to do this, but we can create error handlers in batch scripts using the built...

Full

Difference between % and %% in batch files

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

Batch programmers often confuse single percent signs (%) and double percent signs (%%) when used in batch files. The FOR command uses %f when executed on the command line, but in a batch file, it uses %%f instead of a single percent sign. T...

Full

Running multiple files in a batch script

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

Large scripts contain multiple files because it is easy to maintain the code. When working with larger scripts, you may want to divide them into modules to make it easier to detect any coding errors or problems. However, Batch does not have...

Full

Run the batch file as administrator

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

Batch files consist of commands that are executed by the Command Prompt. Some of these commands cannot be run without administrator privileges; therefore, it is important to run batch files as an administrator. You can manually run a batch...

Full

Check if a file exists using batch processing

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

This article will demonstrate how to use a batch script to check if a file exists through sample code. Check if a file exists using batch script The general format or syntax of the code to check if a file exists is provided below. IF EXIST...

Full

Concatenate multiple files using batch script

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

In this article, we will see how to concatenate multiple files into one file. Concatenate multiple files using batch script The general format of the commands we will use is shown below. type FileONE.txt FileTWO.txt ConcatFile.txt There are...

Full

Deleting files using batch script

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

This article will demonstrate how to delete files using a batch script. Deleting files using batch script Generally, we can easily delete files by clicking on delete or pressing the delete button on the keyboard. But in Batch, we have to fo...

Full

Deleting files older than N days using batch script

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

In this article, we will use a batch script to delete files older than N days. Deleting files older than N days using batch script The general format of the code to perform this task is shown below. FORFILES /p "D:\DIRECTORY" /S /M *.* /D -...

Full

Run .exe file from command prompt using batch script

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

This article will show you how to use a batch (.bat) script to run a .exe type file. You can use two different commands to achieve this. Let’s discuss each method in the following sections. Run .exe file from command prompt using title an...

Full

Batch merge XML files

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

This article will first discuss and understand the XML file format. After that, we will discuss merging two or more XML files into one file using batch commands and scripts. XML File XML, also known as Extensible Markup Language, is a marku...

Full

Batch set command timeout

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

Batch set command timeout

This article will first discuss the concept of timeout command in batch scripting. After that, we will discuss setting timeout command for any other command. Timeout command in batch script A timeout is a utility that pauses or delays for a...

Full

Changing CMD text color using batch script

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

This article will first discuss the basic concepts of batch scripts or batch files. After introducing the Batch script, let's discuss how to use the Batch script to change the text color of CMD every second. Batch script or file A batch scr...

Full

Scan to Read All Tech Tutorials

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

Hottest

Tags

Scan the Code
Easier Access Tutorial