I wrote a command that performs a series of function. The command works this way
Case1: commandname option value
$0 $1 $2
It should also works this way
case 2: value | commandname option
In case 1, I refer to "value" in my script using parameter $2. I am not sure how to...
I am creating a command that does the following;
commandname increment file num
file contains an integer
num is an integer
I want my command to add the value of arg2 to the content arg1
I was thinking;
#!/bin/sh
for $3 in ![0-9] # I am not even sure this would work
do
echo 1>&2...
I have to files say file1 and file2. They both have the same fields. I want to append file1 to file2 and then run an awk script on it.
I tried;
cat file1 > file2 | awk -f scriptname.awk but it didn't work. Any ideas would be appreciated.
Please help me out with this; I am trying to run the simple one-liner on multiple input files
awk -F '$2 ~ /^GOOG/ { print FILENAME, $1, $5 }' files
The problem I am having is that I am trying to run this on about 500 files and I don't know how to do that without typing in each filename. Any...
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.