Search Results

Search: Posts Made By: vas28r13
1,284
Posted By vas28r13
Perl script: extracting numbers from a date formatt
Hi I want to basically sort some data files that I have based on the date.
Here is my issue, the date is in the form of "2010-05-24T09:48:55-04"

All I really need is the date so perhaps I could...
2,044
Posted By vas28r13
Woah thank very much, honestly I have not tried...
Woah thank very much, honestly I have not tried it out yet since I have to integrate that into my script first.

What does the '-nlae' mean, or could you give a brief explanation on what is going...
2,044
Posted By vas28r13
yeah sry bout that. the messages go like this ...
yeah sry bout that. the messages go like this
"Last acessed 2011-06-24 by username at 07:32:55"

Basically right now I just get these files in an array and grep a certain argument like 2011-06. I...
2,044
Posted By vas28r13
Perl regex and sort trouble
Hi so I have these files where the first thing in them says something along the lines of "This document was accessed 'date' blah blah", I was thinking of a way to extract that date and then sort the...
1,450
Posted By vas28r13
Perl regular expression help!
Hi I am doing something basic like...

if ($stringvariable =~ /have not typed/)

I have a little problem because the 'not' in the expression gets highlighted as a kind of a '!'..what am I...
2,519
Posted By vas28r13
Perl script timer on program launch
So I am attempting to get a short but complex perl script to be able to time out an application that I will launch from a command line. The terminal I use is MKS C SHELL and I am having trouble doing...
945
Posted By vas28r13
yeah looks like it.. i hear about csh, there is...
yeah looks like it.. i hear about csh, there is already a library of scripts so i cannot just switch like that.
ill try that out thanks
945
Posted By vas28r13
Doing a command in the if statement
Im using MKS Toolkit c shell

I want to check if a command will nit return a certain message. If so....blah blah blah.

if ( `command argument` != "ERROR!" ) then
that did not work for me
...
4,311
Posted By vas28r13
if ( "$path" !~ "c:/PROGRA~1/blah/blah" ) then ...
if ( "$path" !~ "c:/PROGRA~1/blah/blah" ) then

worked for me
4,311
Posted By vas28r13
if PATH contains a certain string problem!
Hi I am using MKS Toolkit c shell.

I want to basically check if my PATH variable already contains a certain path directory so I tried this (it didnt work!): if: Expression Syntax

if ( echo...
5,158
Posted By vas28r13
O wow ya that worked like a charm. it was...
O wow ya that worked like a charm. it was PROGRA~1 for me but it worked well.
btw do you know where those initial PATH variables come from the shell has before I even source any script? I'd like to...
5,158
Posted By vas28r13
Ya I am almost positive its suppose to be set...
Ya I am almost positive its suppose to be set like this. But! I actually found the problem...well at least theoretically.
You were right the \ does work to espace the character it just that...
5,158
Posted By vas28r13
Ha ya I thought the same thing. The first one is...
Ha ya I thought the same thing. The first one is ignored and the second one remains. The space is not escaped and is intepreted at a type of seperator for the next variable. I'm trying different...
5,158
Posted By vas28r13
yes I tried that it didnt work for me...:(
yes I tried that it didnt work for me...:(
5,158
Posted By vas28r13
Setting path variable with a space.
Hi I am using MKS Toolkit c shell.

I am trying to set a path variable something like c:/Program Files/blah/blah

so
set path=(c:/Program Files/blah/blah)

this, however, does not work as...
8,859
Posted By vas28r13
Debugging csh scripts!?
:wall:
So I have to debug some csh scripts, which to me seems like the most painful task period.

So far I 'echo' in different places to get an idea of whats going on.
I also know the 'csh -x...
Forum: Web Development 07-19-2011
1,722
Posted By vas28r13
Fundamental question on web development
I am just getting into web development and I want to understand it better and more theoretically. :D
So by now I can create some basic websites with html, css, php, etc, but what I do not understand...
1,256
Posted By vas28r13
thanks! that was really simple wow
thanks! that was really simple wow
1,256
Posted By vas28r13
Using grep $ sign help?
hi so I was debugging some scripts and I ran into a problem that did not come up before

grep -n "$variable"$ ./file.txt

I figured the second $ is meant to reference the end of the line but...
1,086
Posted By vas28r13
question on blackslashes and slashes in directories
Since I'm usually on windows I've came across different shells like Cygwin, Hamilton, and MKS. I've been working in csh most of the time, so porting scripts from one shell to another can be fairly...
1,709
Posted By vas28r13
Honestly I am not sure, and I don't know where to...
Honestly I am not sure, and I don't know where to get this information sorry, but I can say I am using the latest version of MKS C Shell..

but does anyone know how I could perhaps write an alias...
1,709
Posted By vas28r13
ye sorry I did not specify, so I am using windows...
ye sorry I did not specify, so I am using windows and c shell(i know not the best idea)..basically I am pretty sure there isn't a built in fuction but I've seen people use c shell and do the up and...
1,709
Posted By vas28r13
Up and Down keys for history?
I am working in a shell, and I am used to using the up and down keys as a shortcut for the history of input commands, but it does not work for me on my new shell and computer.

is there a variable...
2,376
Posted By vas28r13
Shell performance problem with locating scripts
I am currently trying out MKS Toolkit C Shell, and I've no problems with it until I try add directories to PATH that are located on a network drive.

When I do that, the shell performance slows...
5,615
Posted By vas28r13
C Shell path variable causing very slow shell!?HELP
I am using C Shell MKS Toolkit and I ran into a huge problem when setting up some environment variables.:confused:

The csh script that I have as my login script runs fine but very very slow....
Showing results 1 to 25 of 25

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