Hi all,
I have an Asus eePC netbook with Win XP Home SP3, and I'm having some issues with the error messages:
This usually happens after I open the web browser ( FireFox ). I did some research and they point to either a virus, a .NET or other program uninstall. This is a new netbook, used from...
Hi,
I have a SimpleTech external hard drive ( formatted as NTFS ), and a few days ago I needed to reformat my PC ( Windows XP ), so I copied my docs, my pictures, etc, to this external drive. So far so good.
After I reformatted my PC ( again installed Win XP ), I tried to copy the files back...
Hi,
I'm trying this awk one-liner:
Input
aaa
bbb
ccc
awk '/bbb/{print x}{x=$0}' file
Output
aaa
So this code prints always the previous line, of the line where the pattern /bbb/ is found.
I'm trying to make sense of it, but it seems difficult. It looks like when /bbb/ is found, x in...
Hi,
Let's assume in a shell script we have an awk code that does processing of input, and after it has been processed inside AWK, I need to make that value accessible outside of AWK for further processing in the script.
Currently I'm using a temporary file to store that value to have it later...
-
Hi all,
While trying on a problem that involved three files, I got stuck on how to proccess them simultaneously by AWK. I know that it can be done for two files, but for three I'm not sure, say compare a field from third file, with another field in file two, then from the result do...
Hi everybody,
I've been looking up and down and I haven't found a satifactorily answer to this.
What is the meaning of a single number in an awk statement, as in this piece of code, which removes the commas from the lines of a file:
awk 'BEGIN{FS=","}{$1=$1; OFS=""}1' file # here...
Hi,
Does awk , gawk support break n or continue n from awk multiple for or while loops, similar to bash shell break n and continue n.For example:
for (i=1; i<=x; i++)
actions....
for (j=1;j<=y; j++)
other actions....
break 2 # Is this supported ?
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.