Search Results

Search: Posts Made By: Vi-Curious
3,191
Posted By Vi-Curious
:%s/<space>/<tab>/
:%s/<space>/<tab>/
1,008
Posted By Vi-Curious
That's what I get for not reading the entire...
That's what I get for not reading the entire perlre doc. :p
2,134
Posted By Vi-Curious
comm -23 File1 File2
comm -23 File1 File2
1,008
Posted By Vi-Curious
How to do equivalent of /(regexp){0}/ ?
I don't want to have to resort to

/([^s][^t][^r][^i][^n][^g])/

though that does work.

Effectively, I need to be able to implement

/(?:(?:regexp1){0}[^-0-9])(regexp2)\D/

to...
1,697
Posted By Vi-Curious
There may have been more than one thing happening...
There may have been more than one thing happening in the program but I managed to get past the problem without really knowing what the issue was.

As I said, I had unit tested all of the...
2,366
Posted By Vi-Curious
I suppose you could do something like ...
I suppose you could do something like


for i in `find /apps/lib/ -name *.jar`; do jar -tvf $i | grep LinkInfoImpl; done


or


find /apps/lib/ -name *.jar -exec jar -tvf {} \; | grep...
35,454
Posted By Vi-Curious
Try this: cd /usr/bin ls vi* If...
Try this:

cd /usr/bin
ls vi*


If you see vim.exe (every cygwin install I've seen has vim), then do

ln -s vim.exe vi
35,454
Posted By Vi-Curious
Before you re-install, just see if you have vim...
Before you re-install, just see if you have vim and, if so, add the softlink.
35,454
Posted By Vi-Curious
On my cygwin install, I have a soft link in...
On my cygwin install, I have a soft link in /usr/bin for vi which links to vim.


/usr/bin/vi -> vim.exe
1,697
Posted By Vi-Curious
Methods For Debugging Perl Problems
Note: Not a programmer by profession but occasionally have to program.

I am looking for general methods and freely/readily available tools employed to debug problems during development of perl...
997
Posted By Vi-Curious
Supporting Others' Scripts
Not a programmer by profession but job entails perl/expect scripting. Generally that means that I/others write scripts for what I/they want/need and I/they support mine/theirs.

Due to a recent...
1,420
Posted By Vi-Curious
I don't understand why you included ".*" at...
I don't understand why you included ".*" at all.
2,852
Posted By Vi-Curious
The problem is that "find" is going to look into...
The problem is that "find" is going to look into that "archive" directory which is in the target directory.

If you look in there, you should see the file IMF_ATRPU_12022010114110.csv.

And...
1,808
Posted By Vi-Curious
head -1 `ls /grid/abc*.txt | head -1`
head -1 `ls /grid/abc*.txt | head -1`
2,895
Posted By Vi-Curious
I don't believe you can direct the output back...
I don't believe you can direct the output back into your input file. Direct it to something other than sample.txt.
11,148
Posted By Vi-Curious
I would suspect the missing '
I would suspect the missing '
6,004
Posted By Vi-Curious
I did the while loop so that it would not be...
I did the while loop so that it would not be dependent on the array size but I see from your while loop that you were not concerned about that. So, for loop looks like this:

#/bin/sh

array=(...
73,622
Posted By Vi-Curious
Try something like cut -d'*' -f1-100 inputfile...
Try something like
cut -d'*' -f1-100 inputfile > outputfile

where * = your field separator.
6,004
Posted By Vi-Curious
Something like this should work: ...
Something like this should work:


#/bin/sh
array=( are you there )
i=0
j=${#array
}
while [ $i -ne $j ]
do
echo ${array[$i]}
i=`expr $i + 1`
done
3,962
Posted By Vi-Curious
The output you get from ps will be in the form ...
The output you get from ps will be in the form
pid dd-hh:mm:ss

You can take the ps output and pipe it through something else (such as perl) that will take the time info and convert it to...
1,373
Posted By Vi-Curious
Difficult to suggest anything w/o seeing the code...
Difficult to suggest anything w/o seeing the code generating the output.
7,482
Posted By Vi-Curious
Are you sure that the Cisco switch is ssh...
Are you sure that the Cisco switch is ssh enabled? If you just ssh to the box, without the script, can you get in?
Forum: Programming 09-13-2009
5,224
Posted By Vi-Curious
What's the definition of 'datetime'? It would be...
What's the definition of 'datetime'? It would be difficult to say without knowing anything about the data type.
7,774
Posted By Vi-Curious
One pitfall of not quoting... but my comment was...
One pitfall of not quoting... but my comment was directed at OP and not at you. It is obvious he mistyped the command.... better to use copy/paste.
7,774
Posted By Vi-Curious
As far as I can see there is only one "else" so...
As far as I can see there is only one "else" so it should be obvious which ; I mean. OP said he was getting syntax error at "else" and I am pointing out one possible reason for it. He would get the...
Showing results 1 to 25 of 151

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