shell hacks
Hacky tools and ways to do things
July 23, 2024 · 1 min read · tech, programming
number of lines in a file
wc -l file.txt
split file into multiple files
split -l 1000 file.txt
append two files into one
cat file1.txt file2.txt > file3.txt
find pid of port
sudo lsof -i :<portnumber>