Search Results

Search: Posts Made By: Teroc
10,890
Posted By Teroc
Ah I didn't know about the semicolon thing (yes I...
Ah I didn't know about the semicolon thing (yes I suck), but I should have thought about the script thing. I did a script.sh equivalent to the batch file and it works perfectly fine, but I didn't...
10,890
Posted By Teroc
Cygwin bash script and read command
Hello everyone,

I am struggling a bit with a batch script that I need to run in cygwin. I work in winXP and I had to write some awk scripts to do some file manipulation, and now I would like to...
21,117
Posted By Teroc
if someone want to know, you need to do this: ...
if someone want to know, you need to do this:

bash -i -c 'your script'

and it's done... the -c does the trick.
21,117
Posted By Teroc
It's the first thing I did. So it's not the...
It's the first thing I did. So it's not the problem...
21,117
Posted By Teroc
Run cygwin in .bat file
Hello everyone,

I've written quite a few AWK scripts to run in cygwin and now, I would like to run them one after the other in a .bat file. The problem is, I tried modifying the .bat file used to...
3,861
Posted By Teroc
I have another problem related to those files. ...
I have another problem related to those files.

Sometimes, in file1, it is possible that one value in column 1 is associated to 2 or more values like this:
a1 b1 c1
a2 b2
a3 b3 c3 d4Now, when I...
3,861
Posted By Teroc
I doesn't work GhostDog, well it probably does,...
I doesn't work GhostDog, well it probably does, but not in my case.
I did something like that:

NR==FNR {a[$2]=$1;next} #I read a first file to get the search pattern
{if ($3 in a)
...
3,861
Posted By Teroc
Help with a shell script to modify one line and copy the next 9 to same file
Hi everyone,

the problem is quite simple, yet I can't find an easy solution using awk.

I need to search for a string in $3, then if I find this string, copy the line,modify $3, and copy the...
1,243
Posted By Teroc
Thank you a lot Panyam!
Thank you a lot Panyam!
1,243
Posted By Teroc
Thank you it did the trick, I think I understand...
Thank you it did the trick, I think I understand how that works now. Thanks for the lesson :)

One last thing, when I run this script, the file1 is written in the ouput before the corrected file2....
1,243
Posted By Teroc
Help merging two files if search pattern true.
Hello everyone,

I've been reading this forum whenever I had a problem with AWK but I can't seem to find how to solve my problem.

What I would like to do is the following:

I have a first file...
Showing results 1 to 11 of 11

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