Horje
alternative to awk Code Example
alternative to awk
$ echo "0 1111 my file 102.00 1003.00 2.99" | cut -d" " -f 7
2.99

Try this if we have more than a one embedded space between the fields

Code:
$ echo "0 1111 my file 102.00 1003.00 2.99" | tr -s " " | cut -d" " -f 7
2.99
Source: www.unix.com
alternative to awk
$ echo "0 1111 my file 102.00 1003.00 2.99" | cut -d" " -f 7
2.99

Try this if we have more than a one embedded space between the fields

Code:
$ echo "0 1111 my file 102.00 1003.00 2.99" | tr -s " " | cut -d" " -f 7
2.99
Source: www.unix.com
alternative to awk
$ echo "0 1111 my file 102.00 1003.00 2.99" | cut -d" " -f 7
2.99

Try this if we have more than a one embedded space between the fields

Code:
$ echo "0 1111 my file 102.00 1003.00 2.99" | tr -s " " | cut -d" " -f 7
2.99
Source: www.unix.com
alternative to awk
$ echo "0 1111 my file 102.00 1003.00 2.99" | cut -d" " -f 7
2.99

Try this if we have more than a one embedded space between the fields

Code:
$ echo "0 1111 my file 102.00 1003.00 2.99" | tr -s " " | cut -d" " -f 7
2.99
Source: www.unix.com




Shell

Related
tar a folder with subfolders Code Example tar a folder with subfolders Code Example
What is the difference between git push origin and git push origin master Code Example What is the difference between git push origin and git push origin master Code Example
where are fonts on linux Code Example where are fonts on linux Code Example
room showing data after reinstall the app problem Code Example room showing data after reinstall the app problem Code Example
install kibana 7.17 ubuntu Code Example install kibana 7.17 ubuntu Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
11