How to using multiple delimiters in awk and sed
Multiple delimiter-separated fields in awk or sed.
Using awk command:
➜ awk -F'[:=|]' '{print $1, $2, $3}' test.log;
Using sed command:
➜ sed 's/[:=|]/ /g' test.log...
How to modify the host name in Ubuntu
How to change the host name? The answer is to use Linux hostname command. About the hostname command.About the /etc/hostname file.About the /etc/hosts file....
How to grep folder name in linux
How to grep folder name in Linux? Example: Use the find and grep commands grep folder name, Use the ls and grep commands grep...
How to search all files with specific text on Linux?
How to search all files with specific content in Linux system? Use the grep to search for specific content, Use the find and grep to...
How to sort by size, type, time, name using linux ls command
Linux ls command can use command options to sort files or directories. This article describes: ls sort by size, ls sort by time, ls sort...
How to split large files by line or by file size in Linux
When Linux splits large files, we usually use the linux split command to split files by line or by size.
When you split the file,...
How to count using the grep command in Linux/Unix
linux grep count * ; - grep count lines; - grep count words; - grep count files; - grep count sort; - grep two words...