Hi, I used to work on UNIX systems and moved to windows utility. Needless to say, I feel quite restricted due to lack of typical utilities on Windows. I've downloaded a few .exes which mimic standard UNIX utilities but haven't been able to find a rev.exe (to reverse the characters of a line)...
Hi, is there a vi for windows which can be run at the dos command prompt as vi for UNIX? I'm a programmer who moved from UNIX to Windows due to a job change and am badly missing the simple ability to be able to type vi at the prompt, go into a file, make changes and come out. GVim, WinVi etc are...
Marc, Loopyloo's answer is good enough for me. I know about making the REM statement not show up. I was looking for a way to include multiline comments.
Thanks, everyone!
Sashi
Hi, I have a file with integers on each line and I want to sum them up.
What's wrong with the following code?
for x in `cat myfile.txt`
do
total=`expr $total + $x`
done
echo $total
I keep getting "expr: Systax error"
Thanks,
SM
Hi, I'm using VIM on UNIX system and I see that certain lines (macros, typedefs etc) are shown underlined. How do I get rid of these underlines?
THanks,
Sashi
Hi, I'm trying to concatenate strings using the 'tr' command.
$ echo "John Doe" | tr ' ' ''
What I want to do is delete the space between John and Doe.
What am I doing wrong?
Thx,
-S
Hi, I need to cut the last character of a string in a shell script.
For example, I do an
$ls *.c
and from the output produced, I need to cut out the last character. Obviously, the string sizes would be different so I can't use "cut".
How can this be done?
Thanks,
Sashi
Hi, How can I force grep to return unique results? I mean, if the output has duplicate lines, how do I get grep to print only one line for all these duplicate lines?
Thanks,
Sashi
Hi, I have a file as follows
ABC_value1
..
..
MY_LINE
....
....
ABC_value2
...
..
MY_LINE
....
...
ABC_value3
...
...
MY_LINE
....
and so on. I want to search this file and output wherever MY_LINE occurs, prefixed by the ABC_ value that goes ahead of MY_LINE. There might be an ABC_valuei that...
Hi, I'm writing a shell script in which I need to solve this situation:
I have a string:
my_string="some_very_long_string" and I need to replace the last character of this string with a '0'. How can I do that?
And when I run this script, i read this string from the command line...
hmm, cl.ex.. what wah that? too much work...
I was just looking for something that will put nested lines on the left margin for easy identifaction of code blocks. But that's ok, I got my bug fixed (which caused my detour to tek-tips in the first place).
Thanks for your help, though.
Sashi.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.