Easy Bug Fix

Fixing errors with step by step instructions.

Home Tag: awk

Tag: awk

Linux / January 4, 2023 / Leave a comment

[FIXED] Output all column numbers for a particular character

Issue I have a matrix(about 10,000×10,000), and I want to find the column number that contains ‘0’. Matrix (test.txt) :…

Read More →

Linux / January 3, 2023 / Leave a comment

[FIXED] Check if a word from one file exists in another file and print the matching line

Issue I have a file which is having some specific words. I have another file having the URLs which contains…

Read More →

Linux / December 30, 2022 / Leave a comment

[FIXED] REGEX using gawk command

Issue In Linux, I’m running the command pmap -x $PID | tail -n 1 This gives me a line like…

Read More →

Linux / December 29, 2022 / Leave a comment

[FIXED] Rearrange rows of a csv based on a column value

Issue I am trying to rearrange the rows in a csv based on the key given in 5th column of…

Read More →

Linux / December 29, 2022 / Leave a comment

[FIXED] Filtering Linux output using AWK

Issue I am trying to filter out content from a file but some-why it’s not working. My goal is to…

Read More →

Linux / December 28, 2022 / Leave a comment

[FIXED] Sed/Awk join odd and even lines – platform independent

Issue hi all im trying to make this 2022-11-14 18:49:59 Indicator is < 3 1 No 2022-11-14 18:49:59 Indicator is…

Read More →

Linux / December 28, 2022 / Leave a comment

[FIXED] Convert .txt to .csv in shell

Issue I have a text file: ifile.txt 1 4 22.0 3.3 2.3 2 2 34.1 5.4 2.3 3 2 33.0…

Read More →

Linux / December 28, 2022 / Leave a comment

[FIXED] split the file based on header and footer lines

Issue I have a text file structured like this: [timestamp1] header with space [timestamp2] data1 [timestamp3] data2 [timestamp4] data3 [timestamp5]…

Read More →

Linux / December 27, 2022 / Leave a comment

[FIXED] How to replace specific field with sed between two paterns with other file content?

Issue I want that file : #ansible_python_interpreter=/usr/bin/python3 [win] #s1 192.168.1.148 #s2 to be like this : #ansible_python_interpreter=/usr/bin/python3 [win] #s1 127.0.0.1…

Read More →

Linux / December 27, 2022 / Leave a comment

[FIXED] Awk output as input parameter in pipe

Issue I’m new to shell scripting and trying to figure out why my code won’t work. I am trying to…

Read More →

Linux / December 26, 2022 / Leave a comment

[FIXED] Strip a part of string in linux

Issue Apps-10.00.00R000-B1111_vm-1.0.3-x86_64.qcow2 is my string and the result I want is vm-1.0.3 What is the best way to do this…

Read More →

Linux / December 26, 2022 / Leave a comment

[FIXED] Linux Command to get fields from CSV files

Issue In csv files on Linux server, I have thousands of rows in below csv format 0,20221208195546466,9,200,Above as:2|RAN34f2fb:HAER:0|RAND8365b2bca763:FON:0|RANDa7a5f964900b:ION:0| I need…

Read More →

Linux / December 26, 2022 / Leave a comment

[FIXED] How to use awk for multiple character delimiter?

Issue I have a log file with lines like : Insert request received from system 1 Modify request received from…

Read More →

Linux / December 26, 2022 / Leave a comment

[FIXED] Remove whitespace before a field using AWK

Issue (Almost exact duplicate of Keeping original format POST passing through AWK submitted by same person.) I have a simple…

Read More →

Linux / December 25, 2022 / Leave a comment

[FIXED] How to find the position of specific word in a txt file using awk?

Issue I need to find the position of a certain word in a text file I tried to do something…

Read More →

Linux / December 25, 2022 / Leave a comment

[FIXED] Bash script for replacing texts

Issue I have a file.txt file as in the following example: Part 1 Some texts #abc d#ae}gd1 l2#4. Part 2…

Read More →

Linux / December 24, 2022 / Leave a comment

[FIXED] extracting text from one file and creating new file with that text using linux/bash

Issue I have a sequence file that has a repeated pattern that looks like this: $>g34 | effector probability: 0.6…

Read More →

Linux / December 24, 2022 / Leave a comment

[FIXED] Remove linse before and after giving string (sed?)

Issue I’m tring to parsing a file in Ubuntu. The file looks like that: — 13:21:11_09/11/22: Sync between <Repo Name>…

Read More →

Linux / August 27, 2022 / Leave a comment

[FIXED] How to truncate rest of the text in a file after finding a specific text pattern, in unix?

Issue I have a HTML PAGE which I have extracted in unix using wget command, in that after the word…

Read More →

Unix / August 23, 2022 / Leave a comment

[FIXED] Melted distance table into distance matrix

Issue I have a table like this: Var score 1 1.00 1 1.06 1 1.03 1 0.65 1 0.68 2…

Read More →

Page 1 of 8
  • 1
  • 2
  • 3
  • 4
  • ...
  • Last
  • →
Grid List

android android-studio angular angularjs arrays awk bash c css dart django docker eloquent express flask flutter flutter-layout html ionic-framework java javascript jquery json keras kotlin laravel linux mongodb mysql node.js pandas photoshop photoshop-script php python python-3.x reactjs sed shell sql tensorflow typescript ubuntu unix vue.js

Categories

  • Android
  • Android-studio
  • Angularjs
  • Css
  • Django
  • Express
  • Flask
  • Flutter
  • Git
  • Html
  • Ionic
  • Java
  • Laravel
  • Linux
  • Mysql
  • Photoshop
  • Php
  • Python
  • Selenium
  • Spring
  • Tensorflow
  • Typescript
  • Ubuntu
  • Uncategorized
  • Unix
  • Windows
© EasyBugFix is powered by UnifacePlus