Results 1 to 2 of 2

Thread: Help i'm a newbie, i have a question

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    2020-Feb
    Posts
    1

    Red face Help i'm a newbie, i have a question

    how to edit this txt file. using cli commands

    5 192.168.1.14 open 22/tcp
    6 192.168.1.14 open 443/tcp
    7 192.168.1.14 open 53/tcp
    8 192.168.1.14 open 80/tcp

    i used this commands : awk '{print $6 "\t" $2, "\t" $4}' | sort -k1 | cat -n

    into this >

    5 192.168.1.14 open 22/tcp 443/tcp 53/tcp 80/tcp

    thanks in advance.

  2. #2
    Join Date
    2020-Feb
    Posts
    1
    Depends what you mean by "edit" I mean if you want to manually do it, use Nano, if you want to automatically do it, you could use a mixture of cut, grep, and echo.

Similar Threads

  1. Kali newbie question
    By ahkah in forum General Archive
    Replies: 8
    Last Post: 2016-12-31, 16:04

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •