My boss came to me with a question about how to embed a CRLF sequence into his shell script (for piping through some sort of netcat or telnet stuff he's doing) in a reasonably portable and robust way.
How do I embed CRLF or other unprintable characters in my shell script?
961 views Asked by Jim Dennis At
2
There are 2 answers
Related Questions in SHELL
- macOS - Most secure way of a GUI SUDO_ASKPASS
- When does Bash read heredocs?
- Why `set -o pipefail` gives different output even though the pipe is not failing
- Run multiple shell scripts in Dockerfile
- Alias does not take effect when I use Vim to execute external commands
- why variable substitution is so different?
- Error: fish: ${ is not a valid variable in fish
- Custom Bash functions & custom statements - Need some advice
- unexpected operator == in square brackets when trying to use gum lib
- Delete first three lines containing a certain word
- Keep the log for the last 14 days
- Iterate over items in one array and groups of items in second array
- Keep multi-version of a static-lib like what we do for shared-libs
- How to write function in bash for reuse shell commands inside using osascript?
- Why is it that when I pass certain directory names to `ls`, sometimes it does not list their contents?
Related Questions in WHITESPACE
- Wrote an Invisible whitespace in VScode, but showed in command line
- First whitespace doesn't trigger the onEditorChange function in react JS TinyMCE version 6.8.2
- How can I get rid of the large blank space at the bottom of my website pages?
- White Space appearing on the right side of my app when opening from mobile
- White space pushing website elements out of format
- white bar on-top of keyboard on focusing TextInput :React Native
- changing white space character in IAR embedded
- Text automatically double spaced when there are no spaces or breaks in the code
- In HTML4.01, are comments enclosed between “<!--” and “-->” or between “<!-- ” and “ -->”?
- I can't figure out how to fix the whitespace in my java code for a class project. I'm sure that the code should provide the intended output
- How Do You Skip Whitespace In ANTLR Parser Rules?
- Spacing in Java - 3.27.1: LAB: Number pattern
- Existing list of all punctuation/whitespace chars in C#
- Limit more than one linebreak, limit double space, RegEx replace
- Large white space on email in iphone
Related Questions in SH
- Bitbucket pipeline script failure
- what is the role of the backslash in this command why it is used and the dollar sign?
- Script shell execution failing escaping problem
- Shell script appending filenames more than once?
- How to ensure proper order of single command outputs in a Linux shell (dash, bash) script run by Textadept F5?
- How to write shell script on website login
- BASH - Read - How to require [enter] to complete input? Example [y] + [enter]
- Dinamic Table in Bash (Shell)
- Bash script that goes trough folder and uses dd
- How i can set swarm environment variables in the kafka-ui docker image
- Capturing first line from shell command output and continue processing rest
- Jenkinsfile. I want to use objects. How to run shell script from method of object?
- Convert a file of decimal numbers to the ASCII equivalent
- unable to set permission read and write to volumes directory in macos 10.15
- How i can embed my script into the image kafka-ui
Related Questions in NON-PRINTING-CHARACTERS
- Is it safe to output a NULL char to std::cout?
- Non-Printable Character when creating directory with WSL
- Remove non-printable characters from a converted string
- String at specific address with non-printable ASCII values
- Python replace unprintable characters except linebreak
- Tool to create and copy special and non-printable character string to Clipboard for testing
- How would I change/remove 'non-printable' characters e.g  from df.columns values incorporating the regex statements already in place
- Print non-printable character (VS Code)
- # in Material Description for some materials which is causing alignment issue in SAP ABAP
- txt file rendered perfectly from pdf, opens with perfect alignment in text editor, can not load into dataframe
- How do I write a single backslash (\) in a string?
- Why does fgetc() in C always reads extra, non-existent characters whenever I try to read non-printable characters from txt files?
- How to display non printable characters (ASCII codes 0 - 32) in WPF
- SSMS v18.8 replaces non-printing characters with blanks
- Is there a way to get a symbol of a non-printable character?
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
My suggestion for him:
... but I'm open to other comments. It's certainly fine with modern versions of GNU
trandbash.