Search Results

Search: Posts Made By: bismillah
2,492
Posted By bismillah
get specified part from the grep matched text
hi all,
i have some functions in a text file
ex:"int* function(int param)"
i find this functions with the command "var=grep -o "int[ *]*[^~]*([^~]*)" textfile"
i tested this regex and it's...
1,176
Posted By bismillah
how to make my own $PATH variable
hi all,
i have to implement a mini-SHELL for a project in C++
i used "system()" to call bash functions found in $PATH
i want to change this variable to $MYPATH, so, when i execute a coommand, ...
924
Posted By bismillah
how to make my own $PATH variable
hi all,
i have to implement a mini-SHELL for a project in C++
i used "system()" to call bash functions found in $PATH
i want to change this variable to $MYPATH, so, when i execute a coommand, ...
908
Posted By bismillah
get "grep" matched string
hello everybody,
i want to use the matched string from grep command, because grep return the whole line, and i don't need it
how can this be done?
1,468
Posted By bismillah
syllables detect algorithm
can anybody help me with an shell script algorithm for detecting the number of syllabes from a word?
28,923
Posted By bismillah
this works perfect,thanks
this works perfect,thanks
28,923
Posted By bismillah
i have something like this and i get the error:...
i have something like this and i get the error: ./proiect: line 19: [: ==: unary operator expected


while read -n1 char; do
if [ $char == "a" ]
then
((i++))
fi

done < file
28,923
Posted By bismillah
compare two characters
how can I compare two characters in shell script?

similar to C++ code:

char ch='a';
if(ch=='a')
{
do_something;
}
Showing results 1 to 8 of 8

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