Blog
Page 565 of my articles, tutorials, and thoughts
Latest Articles
How to pass password to scp?
# How to Pass Password to SCP? 😮🔑 Do you find yourself in a situation where you need to copy files via `scp` in a batch job, but the receiving server does not support key-based authentication and requires a password 🤔? Although it is not recommended du
Extract file basename without path and extension in bash
# Extracting File Basename without Path and Extension in Bash So you have some file names with paths and extensions, and you just want to extract the base name of the file without the path and extension, right? Well, you've come to the right place! In thi
Using awk to print all columns from the nth to the last
# 💻 Unleashing the Power of Awk: Printing Columns Like a Pro! 💪 Are you tired of struggling with extracting columns from your data using awk and getting stuck with whitespace issues? 🤔 Say no more! In this post, I'll show you a simple yet powerful way
Get program execution time in the shell
# Get program execution time in the shell 🚀⏱️ Are you looking for a quick and easy way to measure program execution time in your Linux shell? Look no further! In this blog post, we'll dive into the problem of timing program execution in the shell, explor
Tar a directory, but don"t store full absolute paths in the archive
## How to Tar a Directory without Storing Full Absolute Paths in the Archive Have you ever encountered the issue of wanting to tar a directory but not store the full absolute paths in the archive? It can be quite cumbersome to deal with long and unnecessa
Get line number while using grep
📢 **Get Line Number While Using Grep: A Complete Guide** 📢 Have you ever used `grep` to search for a string in your files and wished you could also get the line numbers of those lines? 🤔 Don't worry, we've got you covered! In this blog post, we'll show
Add a prefix string to beginning of each line
# How to Add a Prefix String to the Beginning of Each Line: A Guide for Easy Modification 🚀 So, you have a file, and you need to add a prefix string to the beginning of each line? No worries! I'm here to help you tackle this task without breaking a sweat
./configure : /bin/sh^M : bad interpreter
## 💡 Easy Fix for "/bin/sh^M: bad interpreter" Error If you are trying to install a package on your Linux system and you encounter the error message "/bin/sh^M: bad interpreter", don't worry! This is a common issue with a simple solution. In this guide,
How to find out line-endings in a text file?
# How to Find Out Line-Endings in a Text File Are you struggling to determine the line-endings in a text file? 📝 Don't worry, you're not alone! Many developers face this issue when working with different operating systems or when transferring files betwe





