Search Results

Search: Posts Made By: jclanc8
1,377
Posted By jclanc8
Thanks for the input. I just want to say that I...
Thanks for the input. I just want to say that I support a system from unix, oracle, web, and mainframe. I work in unix and with scripts about once a year, so even though I have been a member of...
1,377
Posted By jclanc8
Strip the first record off a file and isolate fields off of it
I have a 2 part question on how to this in unix scripting using kshell or c shell.

I have a file described below:
1st record has 2 fields on it
every other record has 22 fields on it.
...
1,536
Posted By jclanc8
UNIX Sort on a field that spans multiple columns
New to unix.
I need to sort the records of a file by a control number field. That field is in POS 16 through 28. How do I do that? There are no delimiters, or spaces to separate fields.
...
1,405
Posted By jclanc8
Dynamically creating file names from portions of another file name
Not sure how to do the following, but any help would be appreciated.
Has to be done using C shell (sorry about that).

I have about 300 files that I need this done for, but I am only going to give...
836
Posted By jclanc8
This solution is great, but I think I might not...
This solution is great, but I think I might not have explained it correctly. i don't need the entire file name copied over, but just a portion. In my original example, there is a node in the file...
836
Posted By jclanc8
Taking part of one file name and putting it into a another file name
Not sure how to do the following, but any help would be appreciated.
Has to be done using C shell (sorry about that).

I have about 300 files that I need this done for, but I am only going to...
1,215
Posted By jclanc8
Help with manipulating environmental variables in UNIX
I am wondering if there is away to increment a date in c shell. What I need to do is basic, but I lack the knowledge.

I have they following environmental variable in my job scripts

setenv...
1,202
Posted By jclanc8
Need to remove certain records off a file.
New to unix. I have a couple files of 5 million records. I have a key field on those records. I have about 300 keys that I need to remove off the file, and I don't want to write a program to do...
2,112
Posted By jclanc8
The XXXXX could be anything. Basically, what I...
The XXXXX could be anything. Basically, what I am trying to get at is the #pragma statement in scenario 1 and 2 needs to be replaced with the #pragma statement in the final result. The #pragma...
2,112
Posted By jclanc8
Tried it. Didn't work. It did not replace the...
Tried it. Didn't work. It did not replace the #pragma line. Probably something I am doing.
2,112
Posted By jclanc8
Script to replace/delete lines in C program
I am under the gun on a project and am not very good at scripting. I have to make a modification to thousands of C programs to basically replace the #pragma statement. I don't want to have to do...
1,859
Posted By jclanc8
Awesome!!!!!!!!!!! Thanks so much.
Awesome!!!!!!!!!!!
Thanks so much.
1,859
Posted By jclanc8
Need to insert text(constant) at the beginning of file
I am very new to scripting and I know this request is simple but I am having no luck with it.

I have a file a.dat with the following data in it.
aa
bb
cc
dd

I need to run a script that...
3,216
Posted By jclanc8
Create a file from ls -l command and append additional info to results
I need to be able to take the results from ls -l command and modify the output as follows:

I will run
ls -l *.mak

My results will be
aa.mak
bb.mak
cc.mak

I then need to take those...
2,268
Posted By jclanc8
Awesome, Awesome, Awesome. Thanks so much.
Awesome, Awesome, Awesome.
Thanks so much.
2,268
Posted By jclanc8
Getting a sum of column values
I have a file in the following layout:

201008005946873001846130058030701006131840000000000000000000
201008006784994001154259058033001009527844000000000000000000...
1,150
Posted By jclanc8
Doesn't look like I have GNU Date available, is...
Doesn't look like I have GNU Date available, is there another option???
Thanks.
1,150
Posted By jclanc8
Adjusting Dates
What is the easiest way to find the date 6 month prior to the current date.

Example:
Today is 2011/01/29
I need to find the 1st day of the month, 6 month ago, which is 2010/08/01. I have to...
2,637
Posted By jclanc8
Worked awesome. Thanks so much
Worked awesome.
Thanks so much
2,637
Posted By jclanc8
Help parsing job script input parameters
I have a job script that runs with input parms from the command line.
job.sh -p parm1_parm2_parm3_parm4_file_1.dat
The parms are separated by _

The last parm is a file name and can have an _ in...
2,478
Posted By jclanc8
Worked awesome. Thank you so much!!!
Worked awesome. Thank you so much!!!
2,478
Posted By jclanc8
How to capture C program return values in Kshell
I have a K shell script (ksh) that needs to return an email address. A C program was written (prog1) to now access the email address off of an oracle table. The call to the program in the ksh is ...
1,981
Posted By jclanc8
My mistake. There should be a an MA2 in File 2.
My mistake. There should be a an MA2 in File 2.
1,981
Posted By jclanc8
Compare Records between to files and extract it
I am not an expert in awk, SED, etc... but I really hope there is a way to do this, because I don't want to have to right a program. I am using C shell.


FILE 1 FILE 2

H0000000 ...
1,796
Posted By jclanc8
Searching for Gaps in Time
I am very new to shell scripting. We use C-Shell here and I know the issues that surround it. I hope a solution can be created using awk, sed, etc... instead of having to write a program.

I...
Showing results 1 to 25 of 36

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