路叶wangtsingx.hashnode.dev·Dec 27, 2024在Makefile中优雅添加帮助信息在软件开发的世界里,Makefile 是一个不可或缺的工具,它用于定义一系列规则来编译程序。然而,随着项目的增长,Makefile 也会变得复杂起来,对于新加入团队的成员或者偶尔访问项目的人来说,理解如何使用 Makefile 中提供的命令可能会成为一个挑战。因此,在 Makefile 中添加清晰的帮助信息不仅提高了可维护性,也增强了用户体验。 输出示例 Usage: make <target> [VARIABLE=value...] Targets: build ...Makefile
Amitabh soniforamitabhdevops.hashnode.dev·Nov 2, 2024GREP and AWK: Essential Techniques for Log File AnalysisExploring Log Files with Bash: Practical Command Guide for DevOps Hey DevOps enthusiasts! 👋 In today’s post, I’m diving into some practical Bash commands for managing log files, inspired by my learnings in DevOps Batch 8 led by Shubham Londhe. These...10 likes·54 readsDevops
Amitabh soniforamitabhdevops.hashnode.dev·Nov 1, 2024Linux Advanced ConceptsLecture-07 : Linux Advanced of DevOps batch-8 In this blog, we’ll dive into advanced Linux concepts, covering user management, file permissions, SSH, SCP, software installation, and practical usage of commands like grep, awk, sed, and find. This know...1 like·57 readsDeveloper
Bilalbilalansari.hashnode.dev·Sep 9, 2024Filtering the ColumnsUsing awk command we can filter the columns and show the result. It works on CSV file. Also it checks the pattern and print the line on the basis of column wise. Syntax: awk '/keyword-name'/ filename Eg: ubuntu@ip-172-31-25-118:~$ awk '/TRACE/' appli...awk
Prakhar tripathiprakhartripathi.hashnode.dev·Jun 1, 2024Log Parsing Tools Compared: Choosing Between Grep, Awk, and SedLog parsing is an essential task in system administration, monitoring, and data analysis. It helps in identifying issues, understanding system behavior, and gaining insights from log files. In this blog, we will explore the popular log parsing comman...48 readslog analysis
Cloud Tunedcloudtuned.hashnode.dev·Apr 24, 2024Daily Hack #day21 - AWKThe awk command is a powerful text processing tool that's perfect for manipulating data files in Unix environments. Here are some useful tricks and hacks with awk: File called data.txt contents: banana, apple, avocado orange, grapes, tomato spinach, ...Daily Hacksawk
KORLA GOUTHAMkorla.hashnode.dev·Apr 9, 2024Sed , Awk , CutHello Every One , today I would like to explain basics of these 3 Linux commands. SED sed command is used to replace one word in a file with any word specified. Suppose content of file.txt is cats are nice pets Suppose we want to replace cats with do...awk
Karlygash Yakiyayevakarlygash-yakiyayeva.dev·Apr 3, 2024The awk Command in Linuxawk is a powerful programming language used for text processing and manipulation in Unix/Linux environments. It's particularly well-suited for tasks involving structured text files, especially when those files are data files or CSV files. It gets its...ToolsDevops
Abinash Mishraabinash005.hashnode.dev·Feb 12, 2024Linux commands : awk, sed, grep, expectawk: awk command treats the spaces as a delimiter for fields by default. awk 'command' <file-name> awk '{print}' awkcommand.txt awk '{print $1}' awkcommand.txt # it will show the first field here we put $1 to get the first field of each line. reme...linux for beginners
Sanyanyxofweb.hashnode.dev·Jan 14, 2024Text Processing on Linux using grep, awk, and sedWhen it comes to text processing on Linux, every user should be familiar with three essential tools: grep, awk, and sed. We'll explore some common scenarios and provide examples of how to use grep, awk, and sed to solve them efficiently. This article...Linux