From 4c1da007c0802e9813af5e22e9e91626c2bfafb1 Mon Sep 17 00:00:00 2001 From: rparwaiz <78734549+rparwaiz@users.noreply.github.com> Date: Thu, 9 Dec 2021 15:59:43 +0000 Subject: [PATCH] Update bash.sh --- languages/bash.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/languages/bash.sh b/languages/bash.sh index 21204cd..8edab8a 100644 --- a/languages/bash.sh +++ b/languages/bash.sh @@ -92,6 +92,7 @@ touch # creates or updates (edit) your file mktemp -t # make a temp file in /tmp/ which is deleted at next boot (-d to make directory) cat # displays file raw content (will not be interpreted) cat -n # shows number of lines +nl # shows number of lines in file cat filename1 > filename2 # Copy filename1 to filename2 cat filename1 >> filename2 # merge two files texts together any_command > # '>' is used to perform redirections, it will set any_command's stdout to file instead of "real stdout" (generally /dev/stdout)