安裝中文字典英文字典辭典工具!
安裝中文字典英文字典辭典工具!
|
- Comparing two files in Linux terminal - Stack Overflow
$ cat a txt one two three four four $ cat b txt three two one The awk: $ awk ' NR==FNR { # process b txt or the first file seen[$0] # hash words to hash seen next # next word in b txt } # process a txt or all files after the first !($0 in seen)' b txt a txt # if word is not hashed to seen, output it
- git - How do I access my SSH public key? - Stack Overflow
On terminal cat ~ ssh id_rsa pub explanation cat is a standard Unix utility that reads files and prints output ~ Is your Home User path ssh - your hidden directory contains all your ssh certificates
- How to set environment variables from . env file - Stack Overflow
I'm using the Windows machine to run the WSL Here is what I do to set environment variables from env file that is created by Windows and made that an alias in ~ zshrc
- Encode to Base64 a specific file by Windows Command Line
cat <file_name>| base64 to obtain the file's contents encoded as base64 On Windows I'm not able to have the same result I have found this solution: certutil -encode -f <file_name> tmp b64 findstr v c:- tmp b64 del tmp b64 But this needs the system to generate a temporary file and so, at the end, go to destroy it
- How does an SSL certificate chain bundle work? - Stack Overflow
Unix: cat cert2 pem cert1 pem root pem > cert2-chain pem Windows: copy A cert1 pem+cert1 pem+root pem cert2-chain pem A 2 2 Run this command openssl verify -CAfile cert2-chain pem cert3 pem 2 3 If this is OK, proceed to the next one (cert4 pem in this case) Thus for the first round through the commands would be
- linux - How can I copy the output of a command directly into my . . .
cat file | xclip Paste the text you just copied into a X application: xclip -o To paste somewhere else other than an X application, such as a text area of a web page in a browser window, use: cat file | xclip -selection clipboard Consider creating an alias: alias "c=xclip" alias "v=xclip -o"
- linux - Retrieve last 100 lines logs - Stack Overflow
You can simply use the following command:-tail -NUMBER_OF_LINES FILE_NAME e g tail -100 test log will fetch the last 100 lines from test log
- How to cat lt; lt;EOF gt; gt; a file containing code? - Stack Overflow
cat with <<EOF>> will create or append the content to the existing file, won't overwrite whereas cat with <<EOF> will create or overwrite the content cat test txt hello cat <<EOF>> test txt > hi > EOF cat test txt hello hi cat <<EOF> test txt > haiiiii > EOF cat test txt haiiiii
|
|
|