Sponsored Content
Top Forums Shell Programming and Scripting Passing literal tab character from zsh to other program Post 303006938 by Scott on Thursday 9th of November 2017 08:27:41 AM
Old 11-09-2017
As far as I remember, $"..." notation is for language translation purposes.

Simply using "\t" woks for me.

Code:
imac5k% cat s1
#!/usr/bin/env zsh
./s2 "	" # literal tab
./s2 "\t"
imac5k% cat s2
#!/usr/bin/env zsh
echo "\"$1\""

Code:
imac5k% ./s1
"	"
"	"

 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

newline character, space and tab after a string

no problem (6 Replies)
Discussion started by: angelina
6 Replies

2. Shell Programming and Scripting

why convert 8 space to 1 tab character on unix?

Hi everybody, I'm using Hp unix tru64. I have generate one file from shell script. bus that file content pre "8 space char" convert one tab character. why? result file hex format: hex 20 20 20 20 20 to 09 (6 Replies)
Discussion started by: Tlg13team
6 Replies

3. Shell Programming and Scripting

Delete parts of a string of character in one given column of a tab delimited file

I would like to remove characters from column 7 so that from an input file looking like this: >HWI-EAS422_12:4:1:69:89 GGTTTAAATATTGCACAAAAGGTATAGAGCGT U0 1 0 0 ref_chr8.fa 6527777 F DD I get something like that in an output file: ... (13 Replies)
Discussion started by: matlavmac
13 Replies

4. Shell Programming and Scripting

Trying to display a tab character in variable

Hi, I'm trying to figure out a way to encapsulate a tab character, or four or five space characters into a string variable to be used in my script. I'm using the bash shell. I tried $variablename=" <string text>" but it didnt give me the output i wanted (output was still... (7 Replies)
Discussion started by: rowlf
7 Replies

5. Shell Programming and Scripting

Passing screen value to a program

Hi all, I have the following question. Apparently not very difficult, but I'm not any expert. I have a program, let's say program.x, and a bash script that execute it, let's say program.sh. When the program executes it asks for a value to continue. What I want is just passing the value throw... (2 Replies)
Discussion started by: josegr
2 Replies

6. UNIX for Advanced & Expert Users

Strange tab-completion behavior with zsh in screen

I'm running Mac OS, using the latest version of zsh. I've noticed that I have funny tab-completion behavior when inside a screen session. Specifically, once I press tab, the first part of my command seems to be duplicated before the completion results are inserted. For example, if I type... (14 Replies)
Discussion started by: marshaul
14 Replies

7. UNIX for Advanced & Expert Users

"╭─ " Character combo in $PATH causes strange autocompletion behavior in zsh

I've posted about this before, but only recently narrowed the problem down to a specific cause. Ok, first of all, the behavior: It occurs when autocompletion brings up its list (not when there is only a single option). Basically, if I were to type, say, cd ~/<TAB> I would get something... (2 Replies)
Discussion started by: marshaul
2 Replies

8. UNIX for Dummies Questions & Answers

Remove tab character from file

I am trying to remove the tab character from a file, which occurs on two places in every line. So far I have tried the following and most are from threads in this forum: sed -i '' -e 's/ / /' file.dat sed -i '' -e 's/*/ /' file.dat sed -i '' -e 's/\t*/ /g' file.dat sed -i '' -e 's/*//g'... (4 Replies)
Discussion started by: figaro
4 Replies

9. Shell Programming and Scripting

[Solved] SED - Bash - Inserting multi Tab character in the command

Hello. I am using : sed -i -e '/§name_script§/a#'"${MY_TAB11}"'# \ #'"${MY_TAB1}"'The Standard way'"${MY_TAB7}"'# \ #'"${MY_TAB1}"'==============='"${MY_TAB7}"'# \ ' "$CUR_FILE" Is there a better way to define "MY_TAB7","MY_TAB11" in other way than : MY_TAB1=$'\t' MY_TAB2=${MY_TAB1}$'\t'... (2 Replies)
Discussion started by: jcdole
2 Replies

10. Shell Programming and Scripting

How to avoid "Too many arguments" error, when passing a long String literal as input to a command?

Hi, I am using awk here. Inside an awk script, I have a variable which contains a very long XML data in string format (500kb). I want to pass this data (as argument) to curl command using system function. But getting Too many arguments error due to length of string data(payloadBlock). I... (4 Replies)
Discussion started by: cool.aquarian
4 Replies
OSPCAT(1)							     Reference								 OSPCAT(1)

NAME
ospcat - SGML print catalog SYNOPSIS
ospcat [-b name] [--bctf=name] [-C] [--catalogs] [-c sysid] [--catalog=sysid] [-f] [--error-file=file] [-D directory] [--directory=directory] [-R] [--restricted] [-v] [-h] [--help] [-P literal] [--public-id=literal] [-S literal] [--system_id=literal] [-p name] [--parameter-entity=name] [-d name] [--doctype=name] [-l name] [--linktype=name] [-e name] [--entity=name] [-n name] [--notation=name] [-s name] [--declaration=name] DESCRIPTION
ospcat prints effective system identifiers found in the catalogs on the standard output. It doesn't check that the system identifiers correspond to actual files. The return value is 0 if the last system identifier was successfully created and 1 otherwise. OPTIONS
The following options are available: -b name, --bctf=name Use bctf name for output. -f file, --error-file=file Append error messages to file file. -v, --version Display the program version. -h, --help Show this help text. -c sysid, --catalog=sysid Use catalog sysid. -C, --catalogs Arguments are catalogs, use DOCUMENT entry. -D directory, --directory=directory Search files in directory directory. -R, --restricted Restrict file reading (for use in Web apps). -P literal, --public-id=literal Print the effective system id for the public id literal. -S literal, --system-id=literal Print the effective system id for system id literal. -p name, --parameter-entity=name Print the effective system id for parameter entity name. -d name, --doctype=name Print the effective system id for the doctype name. -l name, --linktype=name Print the effective system id for the linktype name. -e name, --entity=name Print the effective system id for entity name. -n name, --notation=name Print the effective system id for notation name. -s name, --declaration=name Print the effective system id for the SGML declaration for doctype name. SEE ALSO
onsgmls(1), ospam(1), osgmlnorm(1), ospent(1) AUTHOR
Ian Castle <ian.castle@openjade.org> Author. COPYRIGHT
OpenSP September 2003 OSPCAT(1)
All times are GMT -4. The time now is 07:09 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy