Search Results

Search: Posts Made By: radiohead_
27,113
Posted By radiohead_
The issue was with passing all the parameters...
The issue was with passing all the parameters like that.
The only solution is to use '-v' option to assign Shell variables to awk variables.
awk reads all files that are written after the awk...
27,113
Posted By radiohead_
Yes, this is how works in my script too. But...
Yes, this is how works in my script too.
But summary.awk still reports "/o" cannot be opened.

---------- Post updated at 04:02 PM ---------- Previous update was at 04:00 PM ----------

When...
27,113
Posted By radiohead_
[Update] I just tried it. It essentially...
[Update]
I just tried it.
It essentially gives the same error, only now it is "/o" as input file that is finds non-existent.

summary file /o output_file /t something
This was again used as...
27,113
Posted By radiohead_
But my query doesn't consist just of 2 words :cmd...
But my query doesn't consist just of 2 words :cmd and input_file
Typically, it might look like this :
summary file /o output_file /t something
27,113
Posted By radiohead_
It gives the error even if the input file is : ...
It gives the error even if the input file is :
{print}

---------- Post updated at 03:25 PM ---------- Previous update was at 03:24 PM ----------

The same error with nawk

---------- Post...
2,957
Posted By radiohead_
perl -e 'biggest = chop(<>);while(<>) { if(chop()...
perl -e 'biggest = chop(<>);while(<>) { if(chop() > biggest) biggest = chop();} print biggest;'Hope I'm right.
27,113
Posted By radiohead_
Awk: cannot open file (No such file or directory)
Hello folks!
I am new to Shell and awk scripting.

This is my shell script that receives a string as an input from the user from the stdin.

#!bin/sh
printf "Enter your query\n"

read query...
Showing results 1 to 7 of 7

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