Search Results

Search: Posts Made By: magicjoe
2,048
Posted By magicjoe
Thank you MadeInGermany! Your modification to...
Thank you MadeInGermany! Your modification to the direct command works perfectly!

SOLVED!
2,048
Posted By magicjoe
storing in the variable makes the echo command,...
storing in the variable makes the echo command, which is used to debug. currently, the command does not work. for some reason, it does not keep all variables, and the NF, even when using escapes. ...
2,048
Posted By magicjoe
Thank you Yoda, you truly are a Jedi Master! the...
Thank you Yoda, you truly are a Jedi Master! the escapes seem to help some, but I am still "so close, yet so far away". I am posting my code here, I have documented where the issue is, and it is...
2,048
Posted By magicjoe
The issue is not the variables. $NF is not...
The issue is not the variables. $NF is not there. I am debugging by using echo to see the generated command. It comes out like this:

awk 'NR==1{ = TEXT}1' myfile
2,048
Posted By magicjoe
Variables in an awk command
I am scripting a process where usernames are added to the end of a specific line in a file.

using this:

awk 'NR==1{$NF=$NF" TEXT"}1' myfileworks, and then I would use > tempfile && mv tempfile...
Showing results 1 to 5 of 5

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