Clean special characters from csv

Removing Special Characters from a File Using Bash This Bash script is designed to remove special characters from a file and save the cleaned content to another file. Step 1: Understand the Script’s Purpose The script aims to clean a file named “temp-dialog.csv” by removing special characters from each line. Step 2: Set Up the Script Open a Text Editor: Use any text editor like Notepad, Sublime Text, or Visual Studio Code....

April 14, 2024 · 2 min · 361 words · Saman Wijesinghe

Retrieve File and Directory Permissions in Octal Format Using Bash

find . -maxdepth 1 -exec stat -c '%a %n' {} + let’s break down this bash command step by step find .: This command starts searching in the current directory (.). -maxdepth 1: This option restricts the search to only the current directory, not any subdirectories. So it won’t go deeper than one level down. -exec: This option executes a specified command for each matched file. stat -c '%a %n' {} +: This is the command that will be executed for each file found....

April 9, 2024 · 1 min · 182 words · Saman Wijesinghe

How to Rename Multiple Files in Linux Terminal

Method 1: Using mv and Wildcards Step 1: Open the Terminal Open your terminal application. You can do this by pressing Ctrl + Alt + T or searching for “Terminal” in the application menu. Step 2: Navigate to the Directory Navigate to the directory containing the files you want to rename using the cd command: cd /path/to/your/directory Step 3: Rename Files with a New Extension To rename files with a new extension, use the following command:...

January 9, 2024 · 2 min · 299 words · Saman Wijesinghe