Search Results

Search: Posts Made By: A452917
4,636
Posted By A452917
Try using "tail +n". #!/bin/ksh #...
Try using "tail +n".

#!/bin/ksh
# test.sh

old=0
while true
do
tail +$old /yourdir/yourfile > /tmp/temp_file
lines=grep -c EXACTO /tmp/temp_file
old=$old+`wc -l /tmp/temp_file'...
44,030
Posted By A452917
Krishna, The above command will work only...
Krishna,

The above command will work only if:

1. In the binary file, there is a 4 byte number embeded in bytes 3801-3804.

And remember, it will just give you the Integer present at that...
25,431
Posted By A452917
Krishna, If you know the data structure of...
Krishna,

If you know the data structure of the binary file, you can write a C program to 'fread' the file into a structure and can write into text file.
1,956
Posted By A452917
awk -F" " '{print $1, " ", $3}'...
awk -F" " '{print $1, " ", $3}' myfilename
2,460
Posted By A452917
cp /etc/passwd ./etc/passwd cat ./etc/passwd |...
cp /etc/passwd ./etc/passwd
cat ./etc/passwd | grep <user name>

should work.
2,460
Posted By A452917
$PROMPT> cat /etc/passwd | grep <user...
$PROMPT> cat /etc/passwd | grep <user name>
9,869
Posted By A452917
It is because default editor is set to 'ed'....
It is because default editor is set to 'ed'. Change it to 'vi'

$PROPMT> export EDITOR=vi
Forum: Programming 11-04-2004
2,488
Posted By A452917
If I understand your question correctly: If...
If I understand your question correctly:

If exitptr is a pointer to integer and it points to an array of 10 integers, this is how you can print them:-

for (i=0, i<10, i++)
{
printf("%d...
88,307
Posted By A452917
Good suggestion ZB. But there is no other way...
Good suggestion ZB. But there is no other way than typing all the filenames if one needs to concatenate files in a specific order.
2,491
Posted By A452917
uff! the command should have been tar...
uff!

the command should have been

tar -cvf tarfile .

when you specify tar with -f option, the first argument should be the archive file name!!

tar -cvf <archive file name> <directories...
18,997
Posted By A452917
You could make them run in background. ...
You could make them run in background.

p1.ksh &
p2.ksh &
p3.ksh &
5,110
Posted By A452917
My apologies: try this one - ping -s...
My apologies:
try this one -

ping -s 202.139.129.221 500 50
5,110
Posted By A452917
Try using ping -s 500 202.139.129.221 500 50
Try using

ping -s 500 202.139.129.221 500 50
Forum: Programming 11-02-2004
10,030
Posted By A452917
There is nothing such as 'name of the signal'. I...
There is nothing such as 'name of the signal'. I guess you are refferring to the defined macros for the signal numbers.

#define SIGHUP 1 /* hangup */
#define SIGINT 2 /* interrupt...
Showing results 1 to 14 of 14

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