Your script really help me, i have to change some variables like HOUR to MIN and MIN to SEC but i have one problem, i dont have one IMPUTFILE, i have 72 IMPUTFILES and in each one this procces take around 4 minutes, it means all the proccess will be around 288 minutes... could you help me again plz?
Quote:
Originally Posted by reborg
I'm assuming you want this for 24 hour period, if not remove the outer while loop and the HOUR variable.
Hi Guys, :D
I am very much new to UNIX. I dont have much basics of coding in UNIX, so please help me out of thi ssituation.
I have a file say for ex: ABC.dtd and it contains "|" delimited data as
test1|testing|test3|moving
past1|runing|test4|going
I need to add a column at the end... (6 Replies)
I need to add a new lines with certain data, to an existing file, every 5 lines in the file.
There is no way to find any distinct charater pattern so
I will have to do a line count and then insert the new line.
I think using awk or sed is what I need to do.
Any help is appreciated.
Kunder (2 Replies)
Hi Gurus,
I have XML file which i want to add 100 lines.I have no idea in xml how to add or modify data .Any help should be appreciated.
Thanks,
Akil (6 Replies)
Hi,
I have an xml file
<Disp
x=y a=b
Disp/>
<Disp
q=1 w=2
Disp/>
.....
I want to add a new set in between like this for a set of 100 files.
<Disp
x=y a=b
Disp/>
<Disp
k=1 z=2
Disp/>
<Disp
q=1 w=2 (7 Replies)
I'm reading in numbers from a file and trying to add them together. Here is the code so far. I know the 1+2+3.... part is wrong. The file has five numbers in it with each number on its own line. The numbers are decimals if that matters. Thanks.
while read EachLine
do
echo $EachLine
done <... (6 Replies)
hi,
i have two files.
file1.sh
echo "unix"
echo "linux"
file2.sh
echo "unix linux forums"
now the output i need is
$./file2.sh
unix linux forums (3 Replies)
Hi
Hi i have 500 lines of file,each line i need to add another two lines also need to separate with one line for every 3 lines after adding two lines.How to achieve this using shell?
For example:
Input file :
dn: uid=apple,dc=example,dc=com
dn: uid=ball,dc=example,dc=com
output:... (4 Replies)
Hello All,
this is my first post so I don't know if I am doing this right.
I would like to append entries from a series of strings (contained in a text file) consecutively at the end of specifically labeled lines in another file.
As an example:
- the file that contains the values to be... (3 Replies)
I have a file that I need to add 3 new lines of text for every line in the file - when I attempt the sed scripting below I keep getting 'command garbled' errors. Any suggestions would be greatly appreciated
#!/bin/ksh
list=`cat /export/home/list`
for i in $list
do
sed ' a \... (7 Replies)
Discussion started by: bjdamon
7 Replies
LEARN ABOUT DEBIAN
ost_time
ost::Time(3) Library Functions Manual ost::Time(3)NAME
ost::Time -
The Time class uses a integer representation of the current time.
SYNOPSIS
#include <numbers.h>
Inherited by ost::Datetime.
Public Member Functions
Time (time_t tm)
Time (tm *dt)
Time (char *str, size_t size=0)
Time (int hour, int minute, int second)
Time ()
virtual ~Time ()
long getValue (void) const
int getHour (void) const
int getMinute (void) const
int getSecond (void) const
char * getTime (char *buffer) const
time_t getTime (void) const
tm * getTime (tm *buf) const
void setTime (char *str, size_t size=0)
bool isValid (void) const
operator long ()
String operator() () const
Time & operator++ ()
Time & operator-- ()
Time & operator+= (const int val)
Time & operator-= (const int val)
int operator== (const Time &time)
int operator!= (const Time &time)
int operator< (const Time &time)
int operator<= (const Time &time)
int operator> (const Time &time)
int operator>= (const Time &time)
bool operator! () const
Protected Member Functions
void toSeconds (int hour, int minute, int second)
void fromSeconds (char *buf) const
virtual void update (void)
Protected Attributes
long seconds
Friends
Time operator+ (const Time &time1, const Time &time2)
Time operator- (const Time &time1, const Time &time2)
Time operator+ (const Time &time, const int val)
Time operator- (const Time &time, const int val)
Time operator+ (const int val, const Time &time)
Time operator- (const int val, const Time &time)
Detailed Description
The Time class uses a integer representation of the current time.
This is then manipulated in several forms and may be exported as needed.
Author:
Marcelo Dalmas mad@brasmap.com.br Integer based time class.
Constructor & Destructor Documentation
ost::Time::Time (time_ttm)
ost::Time::Time (tm *dt)
ost::Time::Time (char *str, size_tsize = 0)
ost::Time::Time (inthour, intminute, intsecond)
ost::Time::Time ()
virtual ost::Time::~Time () [virtual]
Member Function Documentation
void ost::Time::fromSeconds (char *buf) const [protected]
int ost::Time::getHour (void) const
int ost::Time::getMinute (void) const
int ost::Time::getSecond (void) const
char* ost::Time::getTime (char *buffer) const
time_t ost::Time::getTime (void) const
tm* ost::Time::getTime (tm *buf) const
long ost::Time::getValue (void) const
bool ost::Time::isValid (void) const
Reimplemented in ost::Datetime.
ost::Time::operator long () [inline]
bool ost::Time::operator! (void) const [inline]
Reimplemented in ost::Datetime.
int ost::Time::operator!= (const Time &time)
String ost::Time::operator() () const
Time& ost::Time::operator++ ()
Time& ost::Time::operator+= (const intval)
Time& ost::Time::operator-- ()
Time& ost::Time::operator-= (const intval)
int ost::Time::operator< (const Time &time)
int ost::Time::operator<= (const Time &time)
int ost::Time::operator== (const Time &time)
int ost::Time::operator> (const Time &time)
int ost::Time::operator>= (const Time &time)
void ost::Time::setTime (char *str, size_tsize = 0)
void ost::Time::toSeconds (inthour, intminute, intsecond) [protected]
virtual void ost::Time::update (void) [protected], [virtual]
Friends And Related Function Documentation
Time operator+ (const Time &time1, const Time &time2) [friend]
Time operator+ (const Time &time, const intval) [friend]
Time operator+ (const intval, const Time &time) [friend]
Time operator- (const Time &time1, const Time &time2) [friend]
Time operator- (const Time &time, const intval) [friend]
Time operator- (const intval, const Time &time) [friend]
Member Data Documentation
long ost::Time::seconds [protected]
Author
Generated automatically by Doxygen for GNU CommonC++ from the source code.
GNU CommonC++ Sat Jun 23 2012 ost::Time(3)