Search Results

Search: Posts Made By: kamel.seg
Forum: Programming 06-24-2008
2,784
Posted By kamel.seg
hashtable sort
how can i sort a hashtable in C language with iterator parameter.

thanks for help
Forum: Programming 06-17-2008
2,376
Posted By kamel.seg
htable + verification
hello every body,

I have to verifiy if the param_key is selectionned twice or more and to print only one occurence i'm using htable what's the good implementation to add to the code to verify...
1
awk
1,304
Posted By kamel.seg
awk
hello,

what's the equivalent of awk /usr/xpg4/bin/awk

on linux??

thanks
2,728
Posted By kamel.seg
i try sort -u -kx,y with x and y are the...
i try sort -u -kx,y

with x and y are the columns numbers it works well
2,728
Posted By kamel.seg
yes it work but the file a have have many columns...
yes it work but the file a have have many columns and i want just to compare the colx and coly and ignor the rest what can i do, because f1 and f2 ignore the two first columns??
2,728
Posted By kamel.seg
it works but i have also in the file i get the...
it works but i have also in the file i get the occurence number of the line
can i remove it ??
2,728
Posted By kamel.seg
remove duplicated columns
hi all,

i have a file contain multicolumns, this file is sorted by col2 and col3.

i want to remove the duplicated columns if the col2 and col3 are the same in another line.

example
fileA...
8,574
Posted By kamel.seg
i try it but i get this error arr[ : event not...
i try it but i get this error
arr[ : event not found

i put a space between ! and arr with no result.
8,574
Posted By kamel.seg
thanks jim it works well :) really when i post a...
thanks jim it works well :) really when i post a question there only you to answer ;)

i want to know something else if after this sort i want to suppress all but one occurrence of lines having the...
8,574
Posted By kamel.seg
sort columns by field
hello,

i have a table contain many columns delimited by blank.

i want to sort this table by the 2 columns and 3 one and i want to keep the first line inchanged?
how can i do using the sort...
Forum: Programming 02-08-2008
3,858
Posted By kamel.seg
unexpected 'end of file' + sed command
hello,

i use this command in my code:

(void) sprintf ( LBuf, "/bin/sed 's/\\[//g;s\//]//g' %s > %s", tmp1,tmp2);


but i get this error :

sh: syntax error at line 1:'end of file'...
Forum: Programming 01-25-2008
1
3,941
Posted By kamel.seg
%-50s
Hello,

what mean %-50s ?


example


(void) fprintf(file,"50%-s %s\n",pin,pinname);

thanks
68,614
Posted By kamel.seg
thanks but i need a command for all the file...
thanks but
i need a command for all the file cause a have many cases like Q[xxx]...
68,614
Posted By kamel.seg
help to delete brackets [ ]
hi all,

i want to delete brackets in all the file and to keep the string or data between them ( example Q[xxxx] --> Qxxx) with sed command..



thanks
1,343
Posted By kamel.seg
you have reason it's : set field=`head -1...
you have reason it's :
set field=`head -1 /tmp/tmp1`

but if there's a brackets how can i keep it ??

thanks
1,343
Posted By kamel.seg
help with script
hi all,

i have a script:


sed '/^[ ]*$/ d' $file > /tmp/tmp1
set field = 'head -1 /tmp/tmp1'


but when i run the script with string ($file) with [xxxx] i get error...

can u please...
2,670
Posted By kamel.seg
thanks, but i don't want to delete bracktes...
thanks,

but i don't want to delete bracktes but to read them using the command:

sed '/^[ ]*$/ d'

any help
1,809
Posted By kamel.seg
allright there's a sapce after sed but i...
allright

there's a sapce after sed
but i don't understand what that command do ??
i run it but nothing
2,670
Posted By kamel.seg
read metacharacter [ and ]
i have command sed

sed '/^[ ]*$/ d' which don't recognize the [ and ]

how can i solve it?
1,809
Posted By kamel.seg
sed'/^[]*$/ d'
sed'/^[]*$/ d'
1,809
Posted By kamel.seg
explication
hi all,

what mean this command

sed'/^[]*$/d'

thanks
1,559
Posted By kamel.seg
sed 's/'//]//g' | sed 's/'//']//g' file1>file2 ...
sed 's/'//]//g' | sed 's/'//']//g' file1>file2

:)
1,559
Posted By kamel.seg
sed + []
hi all,

i have a variable like variable[variable1] :

variable and variable1 are string or numeric i want to delete the "[" "]" with sed command ..
how can i do it?

thanks
34,498
Posted By kamel.seg
awk is not shell, can i call the function through...
awk is not shell, can i call the function through the callers system()
function??

regards
34,498
Posted By kamel.seg
external function in awk
Hi all, I have a basic doubt. Is there any way to use external
functions (i.e. functions not defined in AWK), in AWK.

I have a shell script in which I'm using a AWK snippet. In this
snippet I'm...
Showing results 1 to 25 of 56

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