Skip to content

Instantly share code, notes, and snippets.

@Forest-Dewberry
Last active June 15, 2022 14:35
Show Gist options
  • Save Forest-Dewberry/2f91ae160e214c14839c290c9cb38dc5 to your computer and use it in GitHub Desktop.
Save Forest-Dewberry/2f91ae160e214c14839c290c9cb38dc5 to your computer and use it in GitHub Desktop.
command uses
tee example.txt <<EOF to paste in the contents of example.txt
mkdir -p path/to/directory to create all the folders in a whole path
grep -n -m 1 -r 'searchText' fcinj.json | head -1 to view the first hit of searchText
cat -n file.txt to cat the file with numbers
cat -n file.txt | grep -C 10 -B 11 -A 11 '^\s*44\s' view the 44th line and C for 10 before and after- A and B are after and before
mkdir /mnt/m; sudo mount -t drvfs M: /mnt/m mount windows network drives in wsl
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment