Learn about Centmin Mod LEMP Stack today
Register Now

AWK Command in Unix!

Discussion in 'Introductions' started by Adi Sharma, Dec 16, 2019.

  1. Adi Sharma

    Adi Sharma New Member

    Aug 2, 2019
    Local Time:
    5:04 PM
    MariaDB 10
    Hello Everyone, I am looking to awk command in Unix and I know the basic commands like Printing the table line by line, Printing Columns, IF Command, String Operations, Length, Count, For, Non-empty Line, Arithmetic Operations and I want to explore more commands, I have search on google to find awk command in Unix with examples but I can't found some more commands in Unix. If anyone knows more, Please share with me
  2. eva2000

    eva2000 Administrator Staff Member

    May 24, 2014
    Brisbane, Australia
    Local Time:
    9:34 PM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    welcome @Adi Sharma to Centmin Mod Community. This forum is for community support for Centmin Mod LEMP stack not general Linux help. Though there is this https://community.centminmod.com/threads/understanding-and-using-awk-command.7785/. But you should be able to find awk command tutorials via Google search anyway :)

    There's 6 steps to learning more about Centmin Mod ;) And to modifying config files and manage services more quickly, check out Centmin Mod Command Shortcuts.

    Might also be interested in reading up on latest LEMP stack comparison benchmarks tagged here.

    You might want to try the 123.09beta01 build as it will be next stable release and well has alot of improvements if you check 2nd post change log at Beta Branch - Centmin Mod .09 beta branch Testing. And you can share your initial install times here.

    Threads you might want to participate in ;)

    Quick Tips

    Threads & Info To Bookmark

    Threads to read, pages to bookmark and threads to watch/subscribe to get to know Centmin Mod would include:

    Centmin Mod Insights Forum

    The Centmin Mod Insights forums digs deeper into the inner workings of Centmin Mod so some useful threads in this forum include:

    Security Related Developments

    A few security related developments you might be interested reading about

    Premium Membership

    Centmin Mod Donations

    You now can show your love and support for Centmin Mod via
  3. Rohan Joshi

    Rohan Joshi New Member

    Aug 9, 2019
    Local Time:
    5:04 PM
    1. -F or --: field-separator Input Field Separator (FS)
    2. -f or --: file program file
    3. NR: The total number of input records (Rows)
    4. NF: The total number of fields(columns) in the current input record
    5. -v var=val --assign var=val: Assign the value val to the variable var, before execution of the program begins.
    6. $0: The whole line
    7. $1, $2...$n: Fields from 1 to n.
    8. RS: Record Separator, a newline by default.
    9. OFS: Field separator of the outputted data (default whitespace)
    10. ORS: Record separator of the outputted data (default newline)
    11. index(s,t): Position in string s where string t occurs, 0 if not found
    12. length(s): Length of string s (or $0 if no arg)
    13. int(x): Truncate x to integer value
    14. split(s,a,fs): Split string s into array a split by fs, returning length of a
    15. system(cmd): Execute cmd and return exit status
    16. tolower(s): String s to lowercase
    17. toupper(s): String s to uppercase
    18. BEGIN: Preprocessing (Executes before processing the data)
    19. END: Postprocessing (Executes after processing the data)

    These are only a few commands for more list of commands visit here.