Most powerful examples of Unix commands or scripts every programmer should know

后端 未结 25 1472
遇见更好的自我
遇见更好的自我 2021-01-29 18:14

There are many things that all programmers should know, but I am particularly interested in the Unix/Linux commands that we should all know. For accomplishing tasks that we may

25条回答
  •  闹比i
    闹比i (楼主)
    2021-01-29 18:59

    The tr command is the most under-appreciated command in Unix:

    #Convert all input to upper case
    ls | tr a-z A-Z
    
    #take the output and put into a single line 
    ls | tr  "\n" " "
    
    #get rid of all numbers
    ls -lt | tr -d 0-9
    

提交回复
热议问题