Linux Tutorials | cut command | Splitting a file vertically | GeeksforGeeks
Вставка
- Опубліковано 5 жов 2024
- This video is contributed by Anant Patni.
Please Like, Comment and Share the Video among your friends.
Install our Android App:
play.google.co...
If you wish, translate into local language and help us reach millions of other geeks:
www.youtube.com...
Follow us on Facebook:
/ gfgvideos
And Twitter:
/ gfgvideos
Also, Subscribe if you haven't already! :)
#likethisvideos #linux #geeksforgeeks
You just got me a bonus point on my Homework. THANK YOU!!!!
Simple n precise. Thanks GFG!
Thankyou, but it seems there is no difference b/w -b and -c
yeah because a char is written on one byte.
Yes
Thankyou for sharing tutorial. this helped me understand better
very good explaination...... thanku u cleared my confusion.
I understand all of the things that you explain ,Thanks
Very easy to understand, Thanks
Thank you so much 🙏
What is the different between '-b' and '-c' option ?
Both seem to specify character positions to cut at.
Please provide example showing different output for 'cut -b M' and 'cut -c M'
they mean the same thing, but the -c is there to work with utf-16 / utf-8 chars like the greek dictionary while the -b only works with ascii chars
@@rikkoo Thanks 🙏🏻🙏🏻
can't thank you enough u saved me a lot of time ♥
Thanks a lot! Just one question: Why in the 2nd example "Ankr" which has 4 letters is included among the 1-3, and 5-7? How the 4 got filtered?
Hi, so you see we're working here with two ranges :
1. 1-3
2. 5-7
A range has two factors :
1. Lower bound/starting point
2. Upper bound/ending point
One thing which is missed in most of the tutorials is to mention the fact that WITHIN THE DEFINED RANGES THE LOWER AND UPPER BOUNDS ARE BOTH "INCLUSIVE"
This means that when I write 1-3 that would cut out characters ranging from the "1st" character to the "3rd" character where inclusiveness means both the 1st and 3rd character will be found in the result of cut command. Similarly, for 5-7 range the 5th and 7th character will be there in the result including the characters between 5th and 7th characters as well.
Now, the 4th character isn't a part of either 1st range (1-3) or the 2nd range (5-7) hence it is ignored in the result string. This is why considering the word you have mentioned :
Ankur
It's a word with 5 characters. So for the 1st range (1-3) the following characters are picked or cut off : {'A', 'n', 'k'} and similarly for the 2nd range (5-7) only one character is picked or cut off : {'r'}, now notice that the 4th character is not picked through either of the defined ranges. That'd why the result string is : Ankr (combine the characters obtained through both the defined ranges).
Hope this helps in understanding the cut command's working better. Let me know if you any other doubt's I'll be happy to help.
Thank you sir. Love the accent btw
thank's for the video is so helpful i subscribe keep the good work
thank you sir, that was very clear !
Thanks a lot✔️
absolutely fantastic
nice explanation
What if I want not just first field , bust also last one?
How cut -d works?
Thank you so much!!
how can we find the fields in any randomly written text file..
Thanks a lot sir
Thank you very much for this wonderful video
Thank u❤❤
dude who will explain what exactly -f does
Thanks for this
Well explain d
This 5min video can take anyone in comma. You were sounding that lethargic.
olahy mrgalh 3la alm863.
can't you talk normally ? 😪