Search Results

Search: Posts Made By: scotty_123
7,497
Posted By scotty_123
Gsub and nawk
Hello

I have problem with reg-expr and function gsub();

File that I want to preprocess look like this:
int table [variable][variable];
printf(" variable : ", variable) ;

Using nawk I...
Forum: Programming 05-04-2007
4,023
Posted By scotty_123
function time
Hello

I have problem with function 'time' to test my program for file copying .
How to run the function in my source code ?

I try something like that:

system("time"); < -- but this don't...
5,448
Posted By scotty_123
thanks , it's working
thanks , it's working
5,448
Posted By scotty_123
I don't open files like <stdio.h> I was tested...
I don't open files like <stdio.h>
I was tested my program only with two files :

MY first file samp.c look like this :

#define pi 3.14159
#define piwo Alfa
#define check pi ...
5,448
Posted By scotty_123
AWK and preprocessing
Hello ,

I'm trying to to write simple ANSI C preprocessor but I have problem with
recursive call. When I call my function : preproc(filename) , I get message
" Segmentation fault Core...
3,277
Posted By scotty_123
appending and sed
Hello,

I want to add string #REAL at the end of all lines that contain real numbers.
How to do this using sed ?
5,339
Posted By scotty_123
Awk type checking
Hello,

How to check if two variables( fields in awk) have the same datatype ( INTEGER , REAL, TEXT ) ?
4,039
Posted By scotty_123
split operation
Hello,

How to undo split operation ?
2,882
Posted By scotty_123
awk and reversing
Hello

I'm writing script in awk that reverse order the fields of every line in file.
My script have problem with spaces - if there is more spaces between fields
in line of file - my script...
3,115
Posted By scotty_123
wrong answer ..
sed 's/\./,/g' - the command change all '.' on ',' in the file , but I want change
only dots in numbers .
3,115
Posted By scotty_123
sed - simple question
Hello

My file looks like that =>

12.56 have then 7888778.2566 what 44454.54545
878787.66565 if else 4445.54545455

I want to change all '.' on ',' .
I'm trying to do it with sed but I...
14,443
Posted By scotty_123
sed and parameters
Hello

I'm trying to write shell script "replace.sh" but I have following problem :
My script take three parameters like this:
./repalce.sh <pairs > <input_file > < output_file >
Where ...
2,787
Posted By scotty_123
command set
Hello
I'm using command "set" to count number of word in file .
But I don't know how to get number of lines in file using commnad "set " ?.
Please Help.



#!/bin/sh
set -- `cat $1`
echo...
2,520
Posted By scotty_123
Yes Yes Yes
Thanks for help!

Paweł Łepko
2,520
Posted By scotty_123
I cant remove the problem
I don't know how to remove this problem ?
2,520
Posted By scotty_123
Debuging
I run the script in debug mode ( set -x ) and i found the problem - the problem is
probably with "=" operator .

When I try to remove file photo.png

In debug moge I get message like this:...
2,520
Posted By scotty_123
Problem with recursion in subdirectories
Hello !
I need some help with my simple bash script.
This script removes all files ( with name given in $1 ) in current dir and subdirectories .
The problem is with first loop in the script (...
Showing results 1 to 17 of 17

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