Search Results

Search: Posts Made By: cold_Que
6,290
Posted By cold_Que
I figured it out.... just replace the double...
I figured it out.... just replace the double quotes around the file with single quotes. The code should look like this

use Win32::OLE;
use Win32::OLE::Const "Microsoft Excel";
use Win32::OLE...
6,290
Posted By cold_Que
PERL Win32::OLE Inserting Picture in Excel
I am trying to insert a picture into a worksheet in Excel using Perl the following is the code

use Win32::OLE;
use Win32::OLE::Const "Microsoft Excel";
use Win32::OLE qw(in with);
# Initiate...
3,982
Posted By cold_Que
Thanks for the explinaiton Pluid. I figured that...
Thanks for the explinaiton Pluid. I figured that out about 10mins after posting this.

Yet, I found a more efficient way of returning the full path of the files to an array


$input1 =...
3,982
Posted By cold_Que
Return Full File Path To Array PERL
Iam trying to load the full path of multiplie files in the same directory to an array if the filenames matches a pattern. The following is the current code;

where $input=C:\test

# change to...
1,918
Posted By cold_Que
Thanks tyler_durden, can you please explain your...
Thanks tyler_durden, can you please explain your code I think your seting $x to true if the line contains "*" and if not then it's false?

---------- Post updated at 12:13 PM ---------- Previous...
1,918
Posted By cold_Que
until loop Perl
I am trying to print out a section of a file begining at the start and printng until a character is found.

My code and input file are below. This code is printing out every line except for the...
1,596
Posted By cold_Que
Very efficient code bartus11. Thanks
Very efficient code bartus11.

Thanks
1,596
Posted By cold_Que
Perl break a file
I am trying to break a large file into smaller ones, with the break defined by the character "*".

The following is the code I have so far which breaks the input file on every line instead of at...
24,018
Posted By cold_Que
Thanks for the response worked well. What type of...
Thanks for the response worked well. What type of chacter identification is \x27?
24,018
Posted By cold_Que
How do you print a single quote character in AWK
How do you print out a single quote character in AWK? Using the escape character does not seem to work.

{printf "%1$s %2$s%3$s%2$s\n" , "INCLUDE", " \' ", "THIS" }

does not work. Any...
4,643
Posted By cold_Que
jim mcnamara, I mean the ability to see no...
jim mcnamara,

I mean the ability to see no printing characters ie..... if i run

$ cat -v file.txt

This will print carriage returns.

Is there away to see other non-printing characters?
4,643
Posted By cold_Que
AWK Memory Limit ?
Is there an input file memory limit for awk?

I have a 38Mb text file that I am trying to print out certatin lines and add a string to the end of that line.

When I excute the script on the...
19,533
Posted By cold_Que
Thanks for the help all.
Thanks for the help all.
19,533
Posted By cold_Que
scottn Thanks that worked well. Just curious...
scottn

Thanks that worked well. Just curious what does the first "." do in the alias statment?
19,533
Posted By cold_Que
That's not working. I tried $@ which means all...
That's not working. I tried $@ which means all the command line arguments at once and it just ls the command line argument and does not cd.

alias cc='cd $@ && ls'

Any more suggestions?
19,533
Posted By cold_Que
Thanks for the response, yet how do I specifiy...
Thanks for the response, yet how do I specifiy any argument for cd?

code:
alias cc='cd `$*` && ls'

I would like to "cc" to any directory I specify at the command prompt

ie..
$ cc ../

I...
19,533
Posted By cold_Que
alias to cd and ls a directory
I am trying to create an alias to cd to a directry and ls the directory I have changed to. I have the following code;

alias cd= 'cd ; ls $@' ($@')

This just cd to the directory and ls the...
1,712
Posted By cold_Que
Thanks vgersh9, I'll try this out. In...
Thanks vgersh9, I'll try this out.

In short, I want to add/subtract the first field in file1 with every field 2 in file2, and repeat the process for every row in file1

A+D
A+I
B+D
B+I...
1,712
Posted By cold_Que
Help With Array Operations in AWK
I have two files

file1
[ A 2 4 6 8
B 1 3 5 7
C 1 3 5 7
D 1 3 5 7
E 1 3 5 7

file2
C D E F G
H I J K...
4,163
Posted By cold_Que
How would I apply this to my code? I can't seem...
How would I apply this to my code? I can't seem to view any of the links right now.
4,163
Posted By cold_Que
Match real numbers in AWK
I am looking for a better way to match real numbers within a specified tolerance range. My current code is as follows:

if ($1 !~ /^CASE/) for(i=1;i in G;i++) if (G[i] >= $5-1 && G[i] <=...
1,427
Posted By cold_Que
Thanks for the info and the link alister.
Thanks for the info and the link alister.
1,427
Posted By cold_Que
Thanks Jim. Worked great. What does the 0...
Thanks Jim. Worked great.

What does the 0 mean in the expression?
1,427
Posted By cold_Que
Specifically name an output file in bash
What is the best way to specifically name an output file in a bash script? My current script has the following output code.


awk 'BEGIN {print "CASE GID vd d-theta GID vd ...
4,490
Posted By cold_Que
vgersh99 The code worked perfectly that...
vgersh99

The code worked perfectly that method is pertty slick!

This is actually a subset of a larger problem, instead of printing the columns I am also trying to compare them. I will try and...
Showing results 1 to 25 of 26

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