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
- What is the difference between \r\n, \r, and \n? [duplicate]
- Connect: Socket operation on non-socket
- How can I use “:” as an AWK field separator?
- Python TypeError: not enough arguments for format string
- How to convert a Binary String to a base 10 integer in Java
- C++ deprecated conversion from string constant to ‘char*’
- sprintf like functionality in Python
- C# List
to string with delimiter - Converting a vector
to string - Check if a string contains another string
- std::string formatting like sprintf
- Sorting Characters Of A C++ String
- How can I remove a character from a string using JavaScript?
- Convert a list of strings to a single string
- In Java, how to append a string more efficiently?
- How can I match a string with a regex in Bash?
- How to trim whitespace from a Bash variable?
- How to check if type of a variable is string?
- Return char[]/string from a function
- What does ${} (dollar sign and curly braces) mean in a string in Javascript?
- Convert Int to String in Swift
- How can I get the last character in a string?
- Find the nth occurrence of substring in a string
- How to convert ‘binary string’ to normal string in Python3?
- java.lang.NumberFormatException: empty String
- jQuery removing ‘-‘ character from string
- Ruby array to string conversion
- Why I cannot cout a string?
- Split text file into smaller multiple text file using command line
- Split function add: \xef\xbb\xbf…\n to my list
- difference between equals() and hashCode()
- How do I convert a String to a BigInteger?
- Converting String to Cstring in C++
- How to format a string as a telephone number in C#
- .NET String.Format() to add commas in thousands place for a number
- Insert string at specified position
- convert string to arraylist
in java - How to format strings using printf() to get equal length in the output
- Restarting cron after changing crontab file?
- Split string into array of character strings
- cd into directory without having permission
- Converting bool to text in C++
- with PHP within splits the link