Search Results

Search: Posts Made By: quintet
2,284
Posted By quintet
Sort comand for Date
Hi All,

I have two questions for sorting based on date.

Sample input:

2009/07/23 11:48:44|alpha
2009/07/23 11:48:44|gamme
2009/07/23 11:48:44|beta
2009/07/23 11:48:44|test
2009/07/23...
2,343
Posted By quintet
try this command: sed -ne '/<td...
try this command:

sed -ne '/<td class="modifications-data"> *modified/p' -e '/<td class="modifications-data"> *added/p' <<input_html_file>>|sed -e 's/.*>\([^<].*\.sql\) *<.*/\1/g'
2,640
Posted By quintet
Is it possible that you have a blank line at the...
Is it possible that you have a blank line at the end of your file?
2,201
Posted By quintet
-f file is a regular file (not a...
-f

file is a regular file (not a directory or device file)
-s

file is not zero size
2,640
Posted By quintet
will this work? awk -F, 'NR<3 {print $0};...
will this work?

awk -F, 'NR<3 {print $0}; NR>=3 {x=x+1; print $1","$2","x","$4}' <file>
2,201
Posted By quintet
use -s flag instead of -f if [ ! -s...
use -s flag instead of -f

if [ ! -s $filename2 ]

then
rm $filename
rm $filename2

else

rm $filename2

fi
1,542
Posted By quintet
Command: cut -d ' ' -f3 <filename>
Command:

cut -d ' ' -f3 <filename>
16,939
Posted By quintet
here you go: sed -e ':a' -e...
here you go:
sed -e ':a' -e 's/\("[^"][^"]*\),\([^"][^"]*"\)/\1~\2/;ta' test.txt

but it wont work in this scenario: ",hello,world," -> ",hello~world,"
2,171
Posted By quintet
r_t_1601, I couldnt understand your requirement....
r_t_1601, I couldnt understand your requirement. You want a while loop to poll in a directory to check if the folder has more than 4 files and if yes the loop.

Isnt my code doing that?
16,939
Posted By quintet
Hello vsairam, radoulov solution works fine....
Hello vsairam,

radoulov solution works fine. But if you are looking for sed version, then here you go:

sed -e ':a' -e 's/\("[^"]*\),\([^"]*"\)/\1~\2/;ta' test.txt
2,962
Posted By quintet
When you execute a program from CRONTAB, the job...
When you execute a program from CRONTAB, the job will have basic environment setting. So as others said, you have to set the env configuration required for you program inside the shell script you are...
6,444
Posted By quintet
I hope even ls filename*.txt | xargs chmod 777 ...
I hope even ls filename*.txt | xargs chmod 777

would fail paramater list too long as it tries to expand filename*.txt for ls.

I think the following command would work:

ls -1|grep...
2,171
Posted By quintet
Are you looking for something like this: ...
Are you looking for something like this:

while [ $(ls -1|wc -l) -lt 5 ]
do
echo 'in loop'
done
echo 'out loop'
Forum: AIX 07-17-2009
11,501
Posted By quintet
Hi Guys, Thanks for your answers. It really...
Hi Guys,

Thanks for your answers. It really helped. And yes ps -k did list the swapper process.

Is there any command to know whether the system supports SWAP or PAGING?

Regards..
Forum: AIX 07-16-2009
11,501
Posted By quintet
AIX: PID 0 Process
Hi All,

I searched other threads and could not find any relevant post about this.

I searched for process 0 in SUN OS and could find the sched/swapper process listed.

root 0 0 0 ...
3,211
Posted By quintet
couldnt understand the purpose. hope this...
couldnt understand the purpose.
hope this helps:

tictock()
{
perl -e '
$increment = 86400;
@months = qw(Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec);
@weekDays = qw(Sun Mon Tue Wed...
Forum: Programming 02-13-2009
10,123
Posted By quintet
Hi, This is the output from the debugger. I...
Hi,

This is the output from the debugger. I dont have GDB so used dbx

dbx a.out
Type 'help' for help.
reading symbolic information ...
(dbx) stop in main
[1] stop in main
(dbx) run
[1]...
Forum: Programming 02-12-2009
10,123
Posted By quintet
Hi Guys, thanks for explaining the issue....
Hi Guys,

thanks for explaining the issue. It really helped. Of Course I am gonna use stdlib.h. I was just curious about the error and wanted to know the reason why it failed when i eliminated...
Forum: Programming 02-12-2009
10,123
Posted By quintet
I have added the printf statement and yes, the...
I have added the printf statement and yes, the program is failing because the buffer is not allocated. It fails in the strcpy function.

#include <stdio.h>
int main () {
FILE * pFile;
long...
Forum: Programming 02-11-2009
10,123
Posted By quintet
Nope. I did not receive any warnings from the...
Nope. I did not receive any warnings from the compiler. Moreover when i debug the program it did go through the malloc part without any issue but failed in the fread command.
Forum: Programming 02-11-2009
10,123
Posted By quintet
fread: segementation fault(coredump) w/o stdlib.h
Hello All,

I tried to test a sample fread example to read a complete file
and the code is

#include <stdio.h>
#include <stdlib.h>
int main () {
FILE * pFile;
long lSize;
char *...
7,557
Posted By quintet
Priority of rules in Makefile!!!
Consider in a makefile i have the target defined as:

pgm: a.o b.o
cmd;

To build .o, 2 rules are defind

.pc.o:
cmds
.c.o:
cmds

My question is which rule will take priority for...
Forum: Programming 08-17-2008
6,833
Posted By quintet
hey thank you.. but i dont what that as i wud be...
hey thank you.. but i dont what that as i wud be removing the generated c files for better space maintenance.

so that option wont suit me.. so is it possible to make the target condition

.o to...
Forum: Programming 08-13-2008
6,833
Posted By quintet
Makefile -> pc precedence over c
Hi All,

I have created a common makefile that compiles both pc and c files.

i have created the dependency between the files as

.pc.o:
-----------
.c.o:
-----------

I will be...
1,562
Posted By quintet
i dont have gnu sed and my output should contain...
i dont have gnu sed and my output should contain the entire

Typedef struct test1{
Row1
Row2
}test1_t;
Showing results 1 to 25 of 95

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