Have you tried:
echo "12|23|11" | awk '{split($0,a,"|"); print a[3],a[2],a[1]}'
Related Posts:
- How to Sum a column in AWK?
- How does strtok() split the string into tokens in C?
- How to split a string in Java
- How to pretty print XML from the command line?
- What are file descriptors, explained in simple terms?
- Java split string to array [duplicate]
- How can I split and parse a string in Python?
- Split string into array
- Split a string using C++11
- string to string array conversion in java
- How to kill a process running on particular port in Linux?
- How do I iterate over the words of a string?
- Display exact matches only with grep
- How do I iterate over the words of a string?
- Split a string into 2 in Python
- How to split a String by space
- Split string with multiple delimiters in Python [duplicate]
- Split string on whitespace in Python
- Display exact matches only with grep
- How to split a string in Java
- How do I tokenize a string in C++?
- What does ^M character mean in Vim?
- What does regular expression \\s*,\\s* do?
- What does it mean to write to stdout in C?
- What do ‘real’, ‘user’ and ‘sys’ mean in the output of time(1)?
- mkdir’s “-p” option
- wait(null) and wait(&status) C language and Status
- Shell script “for” loop syntax
- Java split string to array
- How to get the current directory in a C program?
- When could or should I use chmod g+s on a file or directory?
- Split string with delimiters in C
- Equivalent of *Nix ‘which’ command in PowerShell?
- What is the difference between SIGSTOP and SIGTSTP?
- How to colorize diff on the command line
- How to colorize diff on the command line
- AttributeError: ‘list’ object has no attribute ‘lower’ gensim
- How to read a file into a variable in shell?
- gpg decryption fails with no secret key error
- What is the difference between tar and zip?
- Split string in jquery
- Display current path in terminal only
- How to split one string into multiple strings separated by at least one space in bash shell?
- What do the dup() and dup2() systems really do?
- What generates the “text file busy” message in Unix?
- Reasoning behind C sockets sockaddr and sockaddr_storage
- Split string with multiple delimiters using strtok in C
- How can I send an email through the UNIX mailx command?
- Rename multiple files based on pattern in Unix
- What is the difference between a symbolic link and a hard link?
- SCP Permission denied (publickey). on EC2 only when using -r flag on directories
- binary operator expected error when checking if a file with full pathname exists
- What is special about /dev/tty?
- How do I do ‘mount –bind’ in /etc/fstab?
- How to read backward from the end of file in less or more?
- Getting the last match in a file using grep
- How do I lowercase a string in Python?
- How do I convert a String to an int in Java?
- How to format strings in Java
- How do I get a substring of a string in Python?
- Substring in excel
- Does Python have a string ‘contains’ substring method?
- Why the switch statement cannot be applied on strings?
- Convert bytes to a string
- Java – Convert integer to string [duplicate]
- Replacing instances of a character in a string
- Changing one character in a string
- How to read a file line-by-line into a list?
- What is lexicographical order?
- strip(char) on a string
- How do I pause my shell script for a second before continuing?
- How to convert string to char array in C++?
- How can I convert a std::string to int?
- How to convert list to string [duplicate]
- Easiest way to convert int to string in C++
- TypeError: a bytes-like object is required, not ‘str’ when writing to a file in Python3
- How to check whether a string contains a substring in JavaScript?
- Check if a string has a certain piece of text [duplicate]
- Converting integer to string in Python
- Reverse a string in Python
- How do I compare strings in Java?
- How to replace all occurrences of a string in JavaScript
- How do I compare two strings in python?
- std::string to char*
- How can I convert String to Int?
- How to convert a string to an integer in JavaScript?
- How to convert string to char array in C++?
- How do I split a string on a delimiter in Bash?
- How to convert an int to string in C?
- C++ — expected primary-expression before ‘ ‘
- How can I do string interpolation in JavaScript?
- How to convert a char to a String?
- Regex not operator
- How to convert/parse from String to char in java?
- C++ string to double conversion
- How do I make the first letter of a string uppercase in JavaScript?
- How to split a string into an array in Bash?
- Reverse a string in Java
- working of \n in python [duplicate]
- ValueError: could not convert string to float: id