Search Results

Search: Posts Made By: ivhb
Forum: What is on Your Mind? 12-07-2010
43,327
Posted By ivhb
I am a bank Engineer
I am a bank Engineer
5,915
Posted By ivhb
oracle's profile is .profile or .bash_profile?
oracle's profile is .profile or .bash_profile?
8,273
Posted By ivhb
i think your file is made up of fixed-length...
i think your file is made up of fixed-length records ?
if so, you can use head -c and tail -c to extract the specific record.
for exsamples:
suppose the length of record is 512. so, if you want...
8,273
Posted By ivhb
try: dd if=your-ebcdic-file conv=ascii
try:

dd if=your-ebcdic-file conv=ascii
9,065
Posted By ivhb
i think it's better to make a directory, then...
i think it's better to make a directory, then move these files into it and archive the directory.

step1,
mkdir x
step 2,
find . -name "your-pattern" -exec mv {} x \;
step 3,
tar cf x.tar x
...
5,283
Posted By ivhb
try: cd /opt/cems/log/cemsdbg/db/ find...
try:


cd /opt/cems/log/cemsdbg/db/
find . ! -name "." -type d -prune -o -type f -print
Forum: Programming 12-16-2008
4,759
Posted By ivhb
please check whether kill (pid, 9) was really...
please check whether kill (pid, 9) was really successfully called.
4,391
Posted By ivhb
messages written to tty can NOT be redirected.
messages written to tty can NOT be redirected.
23,578
Posted By ivhb
try: ( sleep 1 echo username sleep 1 ...
try:

(
sleep 1
echo username
sleep 1
echo passwd
sleep 1
echo "your-command"
) | telnet x.x.x.x
2,437
Posted By ivhb
1, chmod -x /home/scripts/devdb.sh run it three...
1, chmod -x /home/scripts/devdb.sh
run it three ways as you listed. anything different?
2, echo "export XXXXX=yyyy" >> /home/scripts/devdb.sh
also run it, then echo $XXXXX
anything different?
3,052
Posted By ivhb
remove the first line which contains "#!...
remove the first line which contains "#! /usr/bin/nawk -f"
Forum: Programming 12-16-2008
10,405
Posted By ivhb
why you use shared memory in thread programming?...
why you use shared memory in thread programming?
pthread_cond_wait + pthread_cond_signal + pthread_mutex_lock + pthread_mutex_unlock will work fine.


producer ...
10,424
Posted By ivhb
sort | uniq -d is enough
sort | uniq -d is enough
10,167
Posted By ivhb
awk -F "," ' { cnt[$1] ++ sav[$1] = $0 ...
awk -F "," ' {
cnt[$1] ++
sav[$1] = $0
}
END {
for (x in sav)
if (cnt[x] == 1)
print sav[x]
}' your-file

if you have enough memory, this may works.
maybe the following...
10,340
Posted By ivhb
if you are using bash, try this while...
if you are using bash, try this

while IFS='\n' read -r line; do echo $line; done <<< $(cat file)

<<< is here-string
5,295
Posted By ivhb
not found the file is not an error. find walk the...
not found the file is not an error. find walk the directory, for any entry it visited, the expression (-name ".....") is evaluated. if the value is true, then print it, else nothing be done. tests...
7,992
Posted By ivhb
check your mail box, read error message. maybe...
check your mail box, read error message. maybe you will find a way
4,079
Posted By ivhb
awk -F "(,|[ \t]+)" ' NR == FNR { if...
awk -F "(,|[ \t]+)" '
NR == FNR {
if (cnt[$1] ++ == 0)
col[j++] = $1
}
NR != FNR {
for (i = 0; i < j; i ++)
printf ("%s%s", i ? " " : "", $(col[i]))
printf ("\n")
}'...
Forum: Programming 12-14-2008
14,553
Posted By ivhb
int p[2]; pid_t pid; pipe(p); pid =...
int p[2];
pid_t pid;

pipe(p);
pid = fork();
# if 0
/* delete them */
/* en.. pid == 0 also meets pid < 1 , so child ends here */
if( pid < 1 ){
/* bla bla */
close(p[0]);
close(p[1]);...
3,945
Posted By ivhb
if you try to preserve the original order, you...
if you try to preserve the original order, you can try this

awk '{
if (cnt[$1] ++ == 0)
idx[j++] = $1
rst[$1] = $2 " " rst[$1]
}
END {
for (i = 0; i < j; i ++)
print idx[i],...
1,624
Posted By ivhb
perhaps these words listed below are useful for...
perhaps these words listed below are useful for you
Showing results 1 to 21 of 21

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