About 139,000 results
Open links in new tab
  1. How to define 'tab' delimiter with 'cut' in Bash?

    Oct 17, 2021 · Here is an example of using cut to break input into fields using a space delimiter, and obtaining the second field: cut -f2 -d' ' How can the delimiter be defined as a tab, instead …

  2. How do I use cut to separate by multiple whitespace?

    You can't separate multiple occurrence of whitespaces using cut as per manual: Output fields are separated by a single occurrence of the field delimiter character. unless the text is separated …

  3. How to remove a column or multiple columns from file using shell ...

    Aug 9, 2015 · The best way to delete columns is with cut: cut --complement -d' ' -f6,8 file Explanation: -d specifies the delimiter; in this case, a space --complement keeps the columns …

  4. How to make xargs handle spaces and special characters?

    Use -d '\n' with your xargs command: cat file | xargs -d '\n' -l1 mkdir From manpage: -d delim Input items are terminated by the specified character. Quotes and backslash are not special; every …

  5. What is the meaning of read -r? - Unix & Linux Stack Exchange

    Mar 27, 2015 · There is no stand-alone read command: instead, it is a shell built-in, and as such is documented in the man page for bash: read [-ers] [-a aname] [-d delim] [-i text] [-n nchars] [-N …

  6. What does the "-d" option of the "read" shell command do when I …

    May 7, 2022 · The first character of delim is used to terminate the input line, rather than newline. If delim is the empty string, read will terminate a line when it reads a NUL character.

  7. Using cut/awk/sed with two different delimiters

    Not sure what you're really doing with this but your could do it like so with sed: $ sed 's/\(case\).*\(@test.com\)/\1\2/' 87529.txt [email protected] [email protected] [email protected] This …

  8. How to read each line in a file separated by delimiters and spaces

    Sep 2, 2020 · I have written a small shell script to get some values from a text file and have them in a for loop to use them as a variables which I will be using as an input to a wsadmin …

  9. Awk - How to use a variable as part another variables name

    Oct 30, 2019 · The above code takes the string together with a variable, delim, that specifies what delimiter is being used in the string. This would work with any implementation of awk.

  10. How to remove the comma (,) between two words using Bash

    Aug 9, 2017 · How to remove the comma (,) between two words? How can I place those two words in two different rows? This is my input: ent0 ent4 ent1,ent5 ent2,ent6 ent3,ent7 …