Hi,
I am new to system administration stuff. I just wanted to store some files in the FTP sites of the server. My question is how do I do that, and where the files are actually stored.
Thanks in advance
Sucheta
Hi ,
I have the same problem, and I think I did not understand from the code snippet how to get back variables from awk to shell.
My code looks like this:
read string
awk -v VAR="$string" 'BEGIN {
split (VAR,arr," ")
{print arr[2]}
}'
I want to get the values stored in...
Hi,
is the output from awk '{printf var}' always redirected to a file.
In this case when I exactly replicated your code, it says can't open db2 for reading or writing(This file was not there before). When I created a file called as db2, it does not throw any error, but still returns an empty db2...
Hi
I am using bourne shell and awk embedded in a shell script. I have been trying to use the trick of parameter passing to the awk, but it does not seem to work. Anyone has any idea?
What I did was:
#!/bin/bash
data="some_value"
awk -v var="$data"
'{print $var}'
The output...
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.