Search Results

Search: Posts Made By: gozer13
1,761
Posted By gozer13
Smokin' that will work brilliantly. Thanks so...
Smokin' that will work brilliantly. Thanks so much tmarikle, and for the quick response. You rock!
1,761
Posted By gozer13
remove precursing zeros
Hello all, I have a list of reports for stores that are numbered like:
s001845,s000022,s198490,s020048,s002385

however the users are displaying the reports as:
1845,22,198490,20048,2385

It...
15,604
Posted By gozer13
I guess I was looking for a specific command, but...
I guess I was looking for a specific command, but a grep will work. I guess I can get really creative and make a script with all kinds of cool options. Thanks for the post Jim, I appriciate it.
15,604
Posted By gozer13
Find data within file
Is there a shell command (Solaris v8 ksh) that will allow me to find in the vast directory tree, specific criteria contained in possibly multiple ascii files? Kind of like a find-in kind of thing.
2,549
Posted By gozer13
Don't know about find, but you could pipe an awk...
Don't know about find, but you could pipe an awk command, something like:

find ...stuff | awk -F/ '{print $4}'

that is to say that your data from the find will always be show up like:...
11,257
Posted By gozer13
Well I echo the results of: file1=$( awk -F: '{...
Well I echo the results of:
file1=$( awk -F: '{ print $1 }' $testfile.lst | sort | uniq )
and it's all on one line instead of in individual rows in a single column. I guess it would be possible to...
11,257
Posted By gozer13
comm with a variable
Hello all, I have two flat files that are colon delineated and I am trying to run a compare (Solaris v8 ksh) of $1 within a script to access a mysql database based on the results. Unix is telling me...
3,234
Posted By gozer13
Right on, thanks bakunin. I am taking an...
Right on, thanks bakunin. I am taking an alternate approach with this script. I havn't worked with functions much and arrays at all, so I am making a script entirely based on this to attempt to...
3,234
Posted By gozer13
Wow it works like a champ, how cool is that? ...
Wow it works like a champ, how cool is that? Thanks to the both of you for you help.

So I Googled around a little, and everyone shows how to do use it but not really any discription on what...
3,234
Posted By gozer13
argh
nope didn't change the results. Oh well, anyone??
3,234
Posted By gozer13
Oh duh
OK just noticed something. If I change the:
set -A reportid $(cat $SHDIR/description.lst $1)
to
set -A reportid $(cat $SHDIR/description.lst $0)
maybe it may work. I will check real quick.
3,234
Posted By gozer13
Array Retrieval Formatting
I have a shell script (Solaris v8 ksh) loading an array from a flat file. An exaple of that flat file is below. It contains white-spaces, and carrage returns. When I try to load the first line as...
6,082
Posted By gozer13
The move takes about five + min to complete. ...
The move takes about five + min to complete. Because the script doesn't pause, the remainder of the script will attempt to capture the same report that is being moved, as it has not been fully...
6,082
Posted By gozer13
As the script stands it executes the move and...
As the script stands it executes the move and immediately jumps to the next group of statements. This is merely a small addition piece to the larger script.
2,666
Posted By gozer13
the Pollock method
The following will give you a flat file list of files over two gig; maybe you can incorporate them into a find script or something.

ls -As1 anydir > dir.lst
sed '/total/d' dir.lst >...
6,082
Posted By gozer13
pausing a script
hello all, I have a script (Solaris v8 ksh) monitoring an inbound directory for reports. The script will then capture the report based on a set of circumstances. However I am unable to capture a...
4,807
Posted By gozer13
I am trying to return only one of the responses...
I am trying to return only one of the responses of the four. It doesn't really matter, I think I may have figured it out though. I read something last night, and the lightbulb glowed that getline...
4,807
Posted By gozer13
If I awk it I will have $1 entered four times. ...
If I awk it I will have $1 entered four times. What I am looking for is a way for within an awk script to have it return only one instance of $1. I was thinking a getline and then an if statement...
4,807
Posted By gozer13
Sorry, I am taking the input and extracting $1,...
Sorry, I am taking the input and extracting $1, $2, $3, and $5. Using this information to create an output file that will add user data for generation into a mysql database.
I have been tasked to...
4,807
Posted By gozer13
getline with a unique
I have an inputfile that I trying to awk with a getline(Solaris v8 ksh). However I need to have the results be a unique. Is there a comparable command within awk to return a unique result? Or can...
2,539
Posted By gozer13
Thanks for the idea! I appriciate it a lot!
Thanks for the idea! I appriciate it a lot!
2,539
Posted By gozer13
I don't think that sort will work. I need to...
I don't think that sort will work. I need to take the list in 'flatfile' and delete the entire row of instances (some multiple) in the input.lst. diff, comm, etc. won't work (as far as I know)...
2,539
Posted By gozer13
What was that you sed?
I am trying to del duplicate lines from a flat file, using a sed delete, and it's not working. Is it possible to execute a sed by passing a variable or am I beating my head to hard?

code:
for...
20,031
Posted By gozer13
hmm similar like something I am working on...
hmm similar like something I am working on myself. I need to judge the varying length of a string and create independent results. I don't think substr will work for me though, but sounds like it...
20,031
Posted By gozer13
What kind of data structure do you require? You...
What kind of data structure do you require?
You can make it comma delimited by executing:

sed 's/ /,/g' inputfile.list > outputfile.lst
this will convert all whitespaces of inputfile.lst to a...
Showing results 1 to 25 of 46

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