Fulltext results:
- Compare directories
- h of the directories, generate a digest file: <code bash> find DIR -type f -exec shasum {} + | LC_ALL=C sort -d -k 2 > shasums.txt </code> It's important to use ''LC_ALL=C'' and the opti... After that, you can diff the two shasums.txt: <code bash> diff shasums1.txt shasums2.txt </code> Or you use Meld as graphical diff tool: <code bash> me
- DynDNS Updates without a Client
- ates without a Client ====== My new hosting provide Strato offers DynDNS. I was searching for a DynDN... ipt does the job as good as any other client. <code bash dyndns-update.sh> #! /bin/bash . ${HOME}/.... OGIN} "${UPDATE_URL}?hostname=${domain}" done </code> First, the login credentials (the ''$LOGIN'' variable) and the server's URL (''$UPDATE_URL'') are r
- Shell Script Variables
- acter ===== Get the last character of ''$a'': <code bash> ${a: -1} </code> ===== Remove Slash from the End of a Variable ===== Remove a trailing slash from ''$a'': <code bash> a=${a%/} </code> {{tag>scripting bash sysadmin variable}}
- root login with bash
- log in as ''root'' with a ''bash'' shell. ssh demo.lab.example.com -t "su - root -c /bin/bash"' I set it up as an alias in ''.bashrc'': alias demo_root='ssh demo.lab.example.com -t "su - root -c /bin/bash"' This enables me logging in with just: $ demo_root Password: # The ''Password'' prompt
- Change Encoding with iconv
- ===== Convert All Files in a Directory ===== <code bash> for f in $(find . -type f) do iconv -f is... {f}_$$_TEMP ${f} \ && mv ${f}_$$_TEMP ${f} done </code> {{tag>sysadmin convert encoding shell cli}}
- Command Line Tools Used in My Scripts
- e always installed are not listed. ===== Audio/Video ===== * cdda2wav * cdrecord * cdrdao * ... * nmap * rsync ===== System ===== {{tag>script scripting cli tool sysadmin audio video network}}
- andunix Infos
- ===== andunix Infos ===== {{indexmenu>info:#1 .:#1}} ===== Tags ===== ~~TAGCLOUD:50~~
- Scripting
- ====== Scripting ====== {{indexmenu>.#2}} {{tag>script scripting}}