Search Results

Search: Posts Made By: dwgi32
2,353
Posted By dwgi32
Hi, It is running on a Korn Shell. The...
Hi,

It is running on a Korn Shell. The actual scripting is as follows:

#This is a common script used by other scripts
: 0 - 999 [ 0 return, >0 exit ]

error_msg()
{
echo "this is an...
2,353
Posted By dwgi32
Question regarding ksh script
Hi all,

I have came across the following line in a script and was not able to interpret the meaning despite searching in the web for answer, my guess is that it seems like a comment to me stating...
5,015
Posted By dwgi32
Hi pileofrogs, I am trying to do a selection...
Hi pileofrogs,

I am trying to do a selection of lines in the file that fullfilled a matching prefix i.e. [ABC]. Initially, i don't know about the limitation on the number of characters permitted...
5,015
Posted By dwgi32
Grep Command
Hi,

I have encountered a problem with grep command. The max characters that grep can supported is 2048 as defined in LINE_MAX in hp-ux. I try setting $TK_GREP_LINE_MAX but this is not workable in...
1,970
Posted By dwgi32
Selective extraction of data from a files
Hi,

I would like to seek for methods to do selective extraction of line froma file. The scenario as follows:

I have a file with content:

[RECV]
message a
received on 11:10:00
file size:...
5,378
Posted By dwgi32
Yes, the pattern is fixed ---------- Post...
Yes, the pattern is fixed

---------- Post updated at 07:04 PM ---------- Previous update was at 07:02 PM ----------



Yes. > a.txt
5,378
Posted By dwgi32
Grep multiple lines from a file
Hi,

I would like to ask if there is any method to grep a chuck of lines based on the latest file in a directory.

E.g

Latest file in the directory:
Line 1: 532243
Line 2: 123456
Line 3:...
2,460
Posted By dwgi32
Thank you!
Thank you!
2,460
Posted By dwgi32
Looping through the argument
Hi,

I would like to perform a loop through the passing in argument, is there any method.

I.e

command> my_script a b c d

my_script
----------
for i in $#
echo $i
done
1,722
Posted By dwgi32
Hi, Need advise on the following: to...
Hi,

Need advise on the following:

to extract the first and last section of a lines.

input
2009-05-06 19:48:46.857 INFO - [00001] [184] [AA][1q][ABC]

output
2009-05-06 19:48:46.857 [ABC]...
1,722
Posted By dwgi32
Thank you very much -----Post Update----- ...
Thank you very much

-----Post Update-----

Hi,

If i would extract the 1st section and last section of a line

input
2009-05-06 19:48:46.857 INFO - [00001] [184] [AA][1q][ABC]

output...
1,722
Posted By dwgi32
Extracting line from a file
Hi,

I would like to extract a certain portion of sentences from a particular sentence i.e. to extract the last section embrace by []

input
[111] [SEND][abc.q][123456]
[122341]...
4
1,515
Posted By dwgi32
Help!
Hi,

Need some help with regard unix commands that can count the total number of files in a directory and counting the total number of lines in each file.

Cheers
Forum: Programming 12-04-2007
64,572
Posted By dwgi32
Thanks, Porter!
Thanks, Porter!
Forum: Programming 12-03-2007
64,572
Posted By dwgi32
Printing out Byte in C
Hi all,

Can anyone advise on how to display the data in a byte[24] variable, i.e can i use printf("%s", vairable_name);?

Cheers
Forum: Programming 11-21-2007
3,503
Posted By dwgi32
Thanks bro for the great link, but i am looking...
Thanks bro for the great link, but i am looking for pure c source code example for Triple Des algorithim.

Cheers
Forum: Programming 11-21-2007
11,268
Posted By dwgi32
Hi, Agree with what Porter state, it is a...
Hi,

Agree with what Porter state, it is a good practise to allocate a memory block by using malloc rather than directly referencing the pointer to a hardcoded value, this will created problem...
Forum: Programming 11-21-2007
3,503
Posted By dwgi32
Help needed regarding Triple Des
Hi,

Does anyone know of a good site where i can find C source code example of Triple Des algorithim?

Cheers
Forum: Programming 11-20-2007
14,848
Posted By dwgi32
Hi Potter, Tks a lot.
Hi Potter,

Tks a lot.
Forum: Programming 11-19-2007
14,848
Posted By dwgi32
Function to return an array of integer
Hi all,

I am trying to create a function that return an array of integer based on the char parameter pass into the function. I.e.

func_a(char * str)
{
example str is equal to "1,2,3,4"
...
Forum: Programming 11-19-2007
2,156
Posted By dwgi32
Hi fpmurphy, It works thanks a lot for the...
Hi fpmurphy,

It works thanks a lot for the help.

Cheers
dwgi32
Forum: Programming 11-19-2007
2,156
Posted By dwgi32
Help needed regarding c program
Hi,

Currently, i have an application that does logging of messages into a text file and i record the timing for the messages in a [hh:mm:ss] format. However, i need to log the messages up to...
Forum: Programming 11-13-2007
3,390
Posted By dwgi32
Thks a lot.
Thks a lot.
Forum: Programming 11-13-2007
3,390
Posted By dwgi32
Compiling with Dll in HP Ux
Hi all,

I had trouble compiling my application with a custom dll, the error appear to be some undefined reference to the functions i had created in my dll. Is there a need to update any...
Showing results 1 to 24 of 24

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