Reading a file word by word in bash can be done in the following two steps :-
Step 1:- Read the file one line at a time and buffer it
Step 2:- Read the buffered line one word at a time
So, combining the two, we can read a file word by word. The final code is :-
No comments :
Post a Comment