I can't provide real examples as it relates to customer billing information but the file will look pretty much like this:
I want to search for the file name, in the above example "file#". As mentioned in the proginal post the general format of each line is <filename>;<timeshamp>;<data> where the data is maximum 1dp numbers separated by semi-colons.
The original files are called file#.pri, but we strip the extension off before adding the summary data to the file.
The file should mainly be in chronological order but some files may have been processed out of order so I would rather not have to rely on this. We do have a script that does some processing during quiet times so I could make this sort the file once a day but I feel that would be very processor expensive as the file can have thousands of lines on data in it.
@Chubler_XL: Thanks, I will take a look at your suggestion and see if it helps.
Hello,
I'm attempting to modify a script so it can be executed via a batch scheduler. Part of the script calls a program called direct (which I believe may have something to do with Connect Direct). I have tried cat and vi on the file; cat returns absolute gibberish, vi states the file is... (2 Replies)
I got the following code, it partially works. Can someone tell me why it partially doenst work?
#!/bin/sh
file=$1
if
then
echo "File is a directory"
else
echo "File is not a directory!"
fi
heres the output:
philip@philip-laptop:~/Desktop$ sh exFive.sh test.java
File is... (4 Replies)
I need to put together a RAID1 file server for use by Windoze systems. I've built zillions of windows systems from components. I was a HPUX SE for a long time at HP, but have been out of the game for years.
I've got an old workhorse mobo FIC PA-2013 with a 450 MHz K6 III+ I could use, but I'd... (2 Replies)
I've done quite a bit of searching on this but cannot seem to find exactly what I'm looking for. Say I have a | delimited input file with 6 columns and I need to change the value of a few columns and create an output file. With my limited knowledge I can do this with many lines of code but want... (5 Replies)
I have an issue while determing whether given string is unix path or not
There is a text file which is normally a report in that at some place
we have unix path as shown below
/opt/smart/dev/eur/sources/sqr and
not unix path as shown below
Threshold Year/Month/Ref/ActLine/OUC
Is there... (3 Replies)
I have a list of files defined in a single file , one on each line.(No.of files may wary each time)
eg. content of ETL_LOOKUP.dat
/data/project/randomname
/data/project/ramname
/data/project/raname
/data/project/radomname
/data/project/raame
/data/project/andomname
size of these... (5 Replies)
I have this script which is very easy:
file=`echo 01114`
echo $file
01114
then I ran this
if ; then echo "yes";fi
it returned yes even though there are only 5 digits there
So then I tried
file=`echo abcd`
echo $file
abcd
if ]; then echo "yes";fi
if ]; then echo "yes";fi
It... (2 Replies)
Hello,
I am looking for a method to use in my bash script which allows me to use long strings with all special characters.
I have found that printf method could be helpful for me but unfortunately, when I trying
root@machine:~# tevar=`printf "%s%c"... (2 Replies)
Discussion started by: elxa1
2 Replies
LEARN ABOUT OSF1
pset_assign_cpu
pset_assign_cpu(1) General Commands Manual pset_assign_cpu(1)NAME
pset_assign_cpu - Assigns a processor to a processor set
SYNOPSIS
/usr/sbin/pset_assign_cpu pset_id processor [processor...]
/usr/sbin/pset_assign_cpu -a pset_id number
OPTIONS
Adds the specified number of processors (number) to the specified processor set (pset_id) from the default processor set.
DESCRIPTION
The pset_assign_cpu command assigns one or more processors to an existing processor set. The pset_id variable is a unique integer that
identifies the processor set and is returned by the pset_create command. The processor variable is a unique integer that identifies the
processor. Each processor that is assigned to an existing processor set is removed from its current processor set. The boot processor
cannot be assigned.
Processor assignments are logged in the /var/adm/wtmp file.
FILES SEE ALSO
Commands: pset_destroy(1), pset_create(1), pset_assign_pid(1), pset_info(1)
Files: processor_sets(4)pset_assign_cpu(1)