cat a file and remove comments and blank lines
$ cat file.txt | grep -v "#" | grep -v "^$"
- Read more about cat a file and remove comments and blank lines
- Log in or register to post comments
$ cat file.txt | grep -v "#" | grep -v "^$"
$ git init
1.5) Save username and password for github
$ git config credential.helper store
$ git push http://example.com/repo.git
Username: <type your username>
Password: <type your password>
2) Add all the files in the currect folder
$ git add *
3) Commit the files/changes
$ git commit -m "first commit"
4) Add the remote repo
$ git remote add github https://github-url
5) Push the local repo to the remote repo
$ git push --set-upstream github master
After adding files f :%s/^M//g
3) Press enter
to the ^M you have to type CTRL+V and then CTRL+M# smartctl -t short /dev/sdb
2) Run a conveyance test ???
# smartctl -t conveyance /dev/sdb
3) Run a long test
# smartctl -t long /dev/sdb
4) Run badblocks
# badblocks -ws /dev/sdb
/etc/sysconfig/network-scripts/ifcfg-ens33
2) Add the network mask, and IP address.vi /usr/local/etc/pkg/repos/FreeBSD.conf
and press enter
If the file exists, look for a line with "FreeBSD: { enabled: no }
" and change the no to a yes
OR
If the file is empty type out "FreeBSD: { enabled: yes }
"
(if you are unfamiliar with vi, to edit just press the letter "a" then type the above stuff without the quotes)
To save, hit the escape button twice and type ":wq" wTheme by Danetsoft and Danang Probo Sayekti inspired by Maksimer