Tag:Newline character

  • Run shell command in go language

    Time:2021-12-26

    //Run shell command in go language package main import ( “os/exec” “fmt” “os” “strings” ) func main() { var ip, whoami []byte var err error var cmd *exec.Cmd //When executing a single shell command, you can run it directly cmd = exec.Command(“whoami”) if whoami, err = cmd.Output(); err != nil { fmt.Println(err) os.Exit(1) } //The […]

  • Solutions to problems caused by the difference of line breaks between windows and Linux

    Time:2021-12-25

    The newline characters under windows and Linux are different. The runtime on the general operating system will automatically determine the line feed format of the text file For example, a program running on Windows generates a CR / LF line feed text file, while running on Linux generates a LF line feed text file Using […]

  • Rust basic notes: getting input from the console

    Time:2021-12-3

    An example Rust can get user input from the console like other programming languages, but the processing method of rust is very different from other languages, which has a lot of things worth learning and thinking about.Start with a small example: let mut buf = String::new(); io::stdin().read_line(&mut buf); analysis Let’s take a look at what […]

  • Vue – handles \ nproblems that cannot wrap lines

    Time:2021-11-20

    Problem description When developing Vue components, you will always encounter components with large text. At this time, if the large text is used as a parameter, the line break character (\ n) of the text cannot wrap normally, but is replaced with a space. resolvent We can take advantage of thewhite-space, set the style of […]

  • Shell script introduction

    Time:2021-9-20

    Shell brief introduction Bash is adopted in the whole blog series. It is the default shell environment of most gun / Linux systems, so most cases and discussions are based on this assumption. User classification $   It represents ordinary users #   Represents the administrator user root shebang Shell scripts are usually text files […]

  • Debugging redis code under windows using clion

    Time:2021-9-7

    Debugging mode This tutorial uses remote debugging (not remote desktop), the code is compiled and run under Linux, and the debugging client is on windows (or Mac, hereinafter referred to as windows). The advantage of such debugging is that the debugging environment is consistent with the real environment and runs on Linux. Configuration requirements A […]

  • How to use flowable in SQL statements?

    Time:2021-8-28

    Add a configuration sentence in application.properties logging.level.org.flowable.ui.modeler.domain.Model=debug1.2.gameLogback.xml in<?xml version=”1.0″ encoding=”UTF-8″ ?> <configuration><!– Define the storage address of the log file. Do not use the relative path fhadmin. Org — > in the configuration of logback <property name=”LOG_HOME” value=”${catalina.base}/logs/” /> <!– Console output fhadmin. Org — > <appender name=”Stdout” class=”ch.qos.logback.core.ConsoleAppender”> <!– Log output code fhadmin. Org […]

  • Cloudquery v1.3.4 update!

    Time:2021-8-19

    Hello, long time no see!The previous version (v1.3.3) was released before the Spring Festival. This v1.3.4 is the first release of cloudquery community version in the year of the ox. This update adds new functions and optimizes the original function points. At the same time, we fixed some problems raised by community users.Let’s expand it […]

  • Django 1.8 official document translation: 3-3-2 file object

    Time:2021-8-11

    File object django.core.filesModule and its sub modules contain some built-in classes for basic file processing. File class class File(file_object) FileClass is pythonFile objectA simple package with Django specific additional functions. Django uses this class internally when it needs to represent files. The file object has the following properties and methods: name containMEDIA_ROOTThe file name of […]

  • Linux uses the echo command to output content

    Time:2021-8-11

    #Displays a string on standard output echo hello #Line breaks at the end of lines are not output echo -n hello #Interpret characters escaped with backslashes echo -e ‘hello\nworld’ echo -e ‘hostname\nhello’ > 1.sh #View file contents cat 1.sh hostname hello

  • The flowable console prints SQL statements from tables

    Time:2021-8-10

    It is actually very simple to see the SQL statements executed by the internal table of flowable on the console 1. Add a configuration sentence in application.properties logging.level.org.flowable.ui.modeler.domain.Model=debug 2. logback.xml <? xml version=”1.0″ encoding=”UTF-8″ ?> This work adoptsCC agreement, reprint must indicate the author and the link to this article

  • Bash: String

    Time:2021-8-3

    \Backslash (escape) Follow closely\The literal amount of characters will be retained and removed when outputting\。 A special case is\newline(backslash + newline character), this combination will be regarded as a long string newline, and will be used when outputting\newline(backslash + newline) remove, ignore. $ echo \a a $ echo \aaa aaa $ echo aaa\ > ssss […]