05-18-2017
\\ worked in .netrc file!
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hello! I am writing a program that reads a bunch of arguments from the command line,then read information from a file(passed as one of the arguments) and do some computation. The problem I am facing is when a backslash(\) is present as one of the arguments, suppose $ myprog \ abc xyz,the backslash... (2 Replies)
Discussion started by: rossi143
2 Replies
2. UNIX for Dummies Questions & Answers
I have a variable containt something like this, c:\mask\mask. How can I escape "\" in the values? I want the value as it it. (9 Replies)
Discussion started by: swmk
9 Replies
3. UNIX for Dummies Questions & Answers
Hi,
I would like to display the following message from my shell (Korn) script
Copy "old_file.txt" to "new_file.txt"
My code looks as follows
print "Copy "old_file.txt" to "new_file.txt""
However, when I execute the script, I get the following output
Copy old_file.txt to... (6 Replies)
Discussion started by: rogers42
6 Replies
4. Shell Programming and Scripting
Hi all,
I have wriiten an expect script that genearates a public private key pair through ssh-keygen and then copies that key to the authorized keys file of the remote system . The problem i am facing is when i get a password for the remote machine containg a trailing backslash , the send command... (4 Replies)
Discussion started by: pradeeptyagi23
4 Replies
5. Shell Programming and Scripting
I have a shell script that I have written to be a kind of to-do/notepad that's quickly executable from the command line. However, special characters tend to break it pretty well.
Ie: "notes -a This is an entry." works fine.
"notes -a This is (my) entry." will toss back a bash syntax error on... (5 Replies)
Discussion started by: skylersee
5 Replies
6. Shell Programming and Scripting
Hi there,
I'm fairly new to bash scripting and already having some troubles. I'm making a script that can print some series of strings in colors based in the information of a file, for simplicity let's say it only does:
#!/bin/bash
printf "\eWhen you execute this in the command line it... (1 Reply)
Discussion started by: Arashi
1 Replies
7. Shell Programming and Scripting
If I echo "\\" I get a backslash returned
~$ echo "\\"
\
Why doesn't this work:
string=`echo "\\"`
echo $string
I get the error message:
bash: command substitution: line 1: unexpected EOF while looking for matching `"'
bash: command substitution: line 2: syntax error: unexpected end... (2 Replies)
Discussion started by: locoroco
2 Replies
8. Shell Programming and Scripting
I found that
echo "aaa" | awk '{print ",\\";}'
works, and it will give "\".
but
ddd=`echo "aaa" | awk '{print ",\\";}'`; echo $ddd
will not work.
Could anyone tell me why? thank you. (8 Replies)
Discussion started by: wxuyec
8 Replies
9. Shell Programming and Scripting
This is a bit off the wall, but I often need to run scripts where there are argument values that contain special characters.
For example,
$ ./process.exe -t M -N -o temp.mol.s -i ../molfiles/N,N\',N\'\'-trimethylbis\(hexamethylene\)triamine.mol && sfile_space_to_tab.sh temp.mol.s temp.s
It... (1 Reply)
Discussion started by: LMHmedchem
1 Replies
10. Shell Programming and Scripting
Heyas
Figured me had a 'typo' in tui-conf-set, i went to fix it.
Now, i also figured, it might be nice to have tui-conf-set report (to console, not only exit code) wether it could save the variable to the file or not.
This said, I appended this code: (the tui-title and tui-echo lines are... (3 Replies)
Discussion started by: sea
3 Replies
LEARN ABOUT DEBIAN
cvsconnect
CVSCONNECT(1) CVSCONNECT(1)
NAME
cvsconnect - CVS connection minimizer
SYNOPSIS
cvsconnect cvsroot [command-to-run ...]
DESCRIPTION
CVSconnect enables you to do multiple CVS operations on single network connection. CVSconnect sets up special environment using
$CVSRSH/$CVSROOT for the command line CVS client. In the environment, the command line CVS client reuses a network connection.
CVSconnect is especially designed to use with CVSsuck. And CVSconnect (or similar) will be integrated to a future version of CVSsuck.
However, it is planned that CVSsuck directly connects to a cvs server without cvs command.
EXAMPLES
cvsconnect $HOME/.cvsroot
BUGS
o The global option -z for compression cannot be used. If you use SSH via ext method, you can use compression by SSH instead.
o CVS client must be run at a time. Running two or more clients at a same time will make a trouble. (will be fixed in future release.)
o Some static variables in a CVS server may confuse you. It's a CVS bug. Report it to CVS developer :-).
o Command line CVS client must request `Root' first. Don't mind. There is no implementation which violates this assumption, however I
know. At least, CVS-1.10 and CVS-1.11 should work.
NOTES
o When CVS command is failed, CVSconnect automatically re-run the command with reconnected connection when CVS command is failed.
Especially the failure is caused by a long running CVS-1.10 server. Since CVS-1.10 doesn't close some file descriptors, a long running
CVS server will exceed a limit of file descriptors.
o /bin/sh should be POSIX sh because this script uses ${parameter#pattern}, etc. If your /bin/sh is ancient Bourne shell, use ksh or
bash.
SEE ALSO
cvs(1), cvssuck(1).
AUTHOR
This manpage is written by Piotr Roszatycki <dexter@debian.org> for Debian distribution and can be freely redistributed.
Debian 2011-08-30 CVSCONNECT(1)