shell script to count number of lines in a file
$ wc -l < /dir/file.txt
3272485echo Enter the filename
read file
w=`cat $file | wc -w`
c=`cat $file | wc -c`
l=`grep -c "." $file`
echo Number of characters in $file is $c
echo Number of words in $file is $w
echo Number of lines in $file is $l
Also in C++:
- grep ignore repeated lines
- how to read temperature in linux
- The application could not be installed: INSTALL_FAILED_CONFLICTING_PROVIDER
- how to save a text file with a terminal command
- vendor/autoload.php download
- bash if
- kill process ubuntu
- react native cannot load
- sudo apt install openjdk-14-jdk
- add remote branch git
- linux hide mounted drives from favourites
- pyinstaller
- allintext:ubuntu "new user"command
- github go to a branch
- installer pip3 linux
- git rebase is not working
- pycharm ubuntu download
- github See branches (in your local machine)
- The following packages have unmet dependencies: nginx : Depends: libssl1.0.0 (>= 1.0.2~beta3)
- anaconda for ubuntu 20.04
- list database in ubuntu
- git set description branch
- uninstall utorrent buntu
- wait n seconds in shell script