Search Results

Search: Posts Made By: aLHaNz
Forum: Programming 02-08-2012
2,922
Posted By Corona688
You might want to try tackling this in parts...
You might want to try tackling this in parts rather than slaping the whole giant thing together as one glob and hoping it works. Use a tiny test image, print out some values, calculate by hand the...
Forum: Programming 08-08-2011
7,572
Posted By Corona688
Depends entirely what you're write() ing to. ...
Depends entirely what you're write() ing to. write() is not a function like printf which always goes to the same place, write() writes to what you tell it to. Without seeing your code I don't know...
Forum: Programming 08-07-2011
9,897
Posted By neutronscott
nooo. you do need to loop to accept new...
nooo. you do need to loop to accept new connections. maybe something like (untested):


while (1) /* Loop forever */
{
/* Accept a client connection */
clientFd = accept(serverFd,...
1,659
Posted By vgersh99
awk -F: '$4<=10 {print $1, $4}' OFS=: ...
awk -F: '$4<=10 {print $1, $4}' OFS=: BookDB.txt
1,659
Posted By yazu
Almost always use quotes around variables. And...
Almost always use quotes around variables. And you need arithmetic operators for arithmetic comparison and you need quote them (because of shell redirection operators). So try:
[ "$qtyA" \< 3 ]
PS...
1,273
Posted By mirni
If you want to do it with one variable, try this...
If you want to do it with one variable, try this out:

awk -F: -vOFS=", " -vt="$fieldA" '
BEGIN{n=split(t,words," ")} #split fieldA into words
{flag=1;
for(i=1;i<=n;i++)
if($0 !~...
1,034
Posted By Shell_Life
Your problem is still with the "sed": sed...
Your problem is still with the "sed":
sed "s/$current/$change/g" ...
866
Posted By bartus11
awk -F: | set field separator to ":" -vOFS=", "...
awk -F: | set field separator to ":"
-vOFS=", " | set output field separator to ", "
-vt="$title" | set AWK's variable "t" to the value of shell's variable "$title"
'$0~t | match current line...
866
Posted By bartus11
awk -F: -vOFS=", " -vt="$title"...
awk -F: -vOFS=", " -vt="$title" '$0~t{$3="$"$3;print}' book.txt
1,188
Posted By yazu
https://www.unix.com/unix-dummies-questions-answers...
https://www.unix.com/unix-dummies-questions-answers/153097-deleting-removing-sentence-txt.html
Showing results 1 to 10 of 10

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