Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: malladisk
  • Order by date
  1. malladisk

    rev utility for windows

    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)...
  2. malladisk

    Vi for windows

    Thanks, all! Gvim 6.3 does it (on vim.org) and I'm coding away to glory! :-) Sashi
  3. malladisk

    Vi for windows

    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...
  4. malladisk

    Batch files multiline comment

    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
  5. malladisk

    Batch files multiline comment

    Well, nothing's wrong with it per se, but I'm a little lazy to put in a rem at the beginning of each line, that's all. Thanks anyway, Sashi
  6. malladisk

    Batch files multiline comment

    Hi, is there a way to include a multiline comment into batch files other than repeated REM statements? Thanks, Sashi
  7. malladisk

    expr

    Thanks, guys! :-) I find Vlad's tip extremely useful, that of using typeset so that I don't have to use expr again! Sashi
  8. malladisk

    expr

    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
  9. malladisk

    VIM

    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
  10. malladisk

    tr command

    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
  11. malladisk

    Cut last character of string

    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
  12. malladisk

    grep

    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
  13. malladisk

    grep

    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...
  14. malladisk

    Shell scripting: String manipulation

    THanks a lot, guys! Sashi
  15. malladisk

    Shell scripting: String manipulation

    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...
  16. malladisk

    #define default value

    Ok. Thanks, Sashi
  17. malladisk

    #define default value

    Hi, If I'm using a macro #define VAR what would be the default value assigned to VAR? Thanks, Sashi
  18. malladisk

    grep

    Thanks, Dan! Sashi
  19. malladisk

    grep

    Hi, How do you use grep to find files for a word such that the search includes subdirectories? Thanks, Sashi
  20. malladisk

    parser

    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.

Part and Inventory Search

Back
Top