cut first two fields
Use f fields flag and d delimiter flag to achieve cut result of your code:
echo "1 2 3 4 5 6 7" | cut -d ' ' -f '2-4,6-'
2 3 4 6 7 # field specifies to cut 2th to 4th and 6th until last fields
Also in C++:
- cpu core command linux
- installing mysql on aws using putty terminal
- how to add program to command line linux
- sed remove space
- debian install killall
- react-github-contribution-calendar
- powershell delete files older than 15 days
- install haproxy centos 7
- github add image to readme
- nonexistentpath data directory /data/db not found
- powershell delete local user
- how to use openvpn linux terminal
- zsh compinit: insecure directories, run compaudit for list.
- recutils add field in record
- linux show server time
- -bash: jupyter: command not found linux
- linux install toilet
- mongodb restart command ubuntu
- how to remove sensitive data from github history
- how to remove folder and its contents in linux
- change wallpaper command line linux
- npm install webpack server
- osp it digital solutions
- linux download youtube mp3