heredoc
Heredoc <<< or <<?
Well I am wondering what is the right way to do the Heredoc syntax? In my code editor, which is \'e-text editor\' doing <<< totally throws off the syntax highlighting.[详细]
2023-04-05 03:23 分类:问答if/else with heredoc not behaving as expected
I am using heredoc to build a simple text email, but for some reason I am getting strange results around my if/else conditional:[详细]
2023-03-30 09:15 分类:问答Multiline syntax for piping a heredoc; is this portable?
I\'m familiar with this syntax: cmd1 << EOF | cmd2 text EOF 开发者_StackOverflow but just discovered that bash allows me to write:[详细]
2023-03-28 07:27 分类:问答What are <-- Ruby Strings called? And how do I insert variables in them?
<-- Seems to be unsearchable on the web so had to ask the question here.开发者_JS百科 What is their searchable name, and how do I add variables inline?That syntax is for declaring a HERE DOCUMENT[详细]
2023-03-26 05:50 分类:问答Java command line input with heredoc
I have a frustratingly simple problem: I need to write a program that accepts input of the form: cat << EOF | java myProgram.java[详细]
2023-03-20 12:32 分类:问答Where must variables in PowerShell here-strings be initialized?
I have a rather complex SQL query I want to use in a here-string in a PowerShell script. Inside the query, I want to replace certain values with PowerShell variables. I\'m trying to understand exactly[详细]
2023-03-18 11:42 分类:问答Unexpected end of file in BASH
Writing a simple bash script to do some checks for me in the morning: One part is pulling down some html files and making sure that they exist.[详细]
2023-03-16 06:17 分类:问答Use cases for Ruby's EOB construct
I recently came across the Ruby EOB / -EOB construct within this context (from the Ruby id3 library) :[详细]
2023-03-15 07:57 分类:问答I don't understand why string.size returns what it does
long_string = <<EOS It was the best of times, It was the worst of times. EOS that returns 53. Why? The whitespace counts? Even still. how do we get 53?[详细]
2023-03-12 10:58 分类:问答Can someone explain this ruby code?
From the rails postgresql_adapter.rb.I get what it\'s trying to do, I just don\'t get how it happens.It\'s really to do with the <<-SQL that I\'m lost.[详细]
2023-03-11 17:03 分类:问答