Search Results

Search: Posts Made By: polyglot0727
15,229
Posted By methyl
Brilliant deduction gentlemen. 1) I...
Brilliant deduction gentlemen.

1) I originally did the cut/paste with IE8 into Reflections 14 telnet which somehow sorted the mess and gave me the correct character.

2) Now if I use IE8 and...
15,229
Posted By CarloM
fwiw, I get the same results as Scrutinzer on...
fwiw, I get the same results as Scrutinzer on Windows 7 to RHEL or Solaris (putty).
15,229
Posted By Scrutinizer
Right now, if I cut and paste this: echo...
Right now, if I cut and paste this:
echo hello:boss | cut -d: -f2
I do not get the error.

If I cut-and-paste this:
echo hello:boss | cut -d: -f2
I do get the error.

I have tried this on...
15,229
Posted By methyl
@Scrutinizer I can't reproduce that effect....
@Scrutinizer
I can't reproduce that effect. Perhaps your own computer or the O/P's is using Unicode not ASCII and my cut/paste is correcting the character? Or, as you suggest the O/P has used a...
15,229
Posted By Scrutinizer
I cut-and-pasted some of the code and to my...
I cut-and-pasted some of the code and to my surprise the Unix "cut"-command was giving me a similar error. Things looked kinda spooky for a moment:
$ echo hello:boss | cut -d: -f2
boss
$ echo...
15,229
Posted By Scrutinizer
Interestingly, the POSIX specification also says...
Interestingly, the POSIX specification also says this:
SYNOPSIS

cut -b list [-n] [file...]

cut -c list [file...]

cut -f list [-d delim] [-s] [file...]

cut...
15,229
Posted By methyl
Please post the current version of the script and...
Please post the current version of the script and any error messages verbatim.

Please post the O/S version, blotting anything confidential with X's,
uname -a

Well spotted Scrutinizer. My cut...
15,229
Posted By Scrutinizer
Hi, try flipping "-f1" and "-d%" around $...
Hi, try flipping "-f1" and "-d%" around

$ cut
usage: cut -b list [-n] [file ...]
cut -c list [file ...]
cut -f list [-s] [-d delim] [file ...]
15,229
Posted By methyl
A few minor corrections. 1) Lose the $ from...
A few minor corrections.
1) Lose the $ from $output on the "while read" line. We only have the $ when referring to the value of a variable.
2) Put double quotes round your string variable $output....
15,229
Posted By methyl
Reference agama's point 3. You can use a...
Reference agama's point 3.

You can use a single backslash at the end of the line to make the two lines be read as one line by the Shell.
Don't forget the email address on the "mail" line. If you...
15,229
Posted By agama
A few things I noticed: 1) you need to read...
A few things I noticed:

1) you need to read into a variable (I assume output). The syntax would be something like command | while read output. Possibly this is a cut/past error when sharing your...
Showing results 1 to 11 of 11

 
All times are GMT -4. The time now is 01:31 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy