Search Results

Search: Posts Made By: ugh
7,447
Posted By ugh
Yes works fine thank you, I did use awk! and in...
Yes works fine thank you, I did use awk! and in defense awk seems to be very specialized and really somewhat limited on what you can do or pass into the statement. This really is a easy way to by...
7,447
Posted By ugh
This script takes a data file and allows you to...
This script takes a data file and allows you to remove the columns you dont want.

runme.sh datafile.txt "|" 2,4

This will ouput only data that would fall under 2nd and 4th column

filename=$1...
7,447
Posted By ugh
The command runs fine, I just want to run it from...
The command runs fine, I just want to run it from the variable instead rebuilding it in a seperate file and running it. The thing is i am dynamically building the $output variable from another awk...
7,447
Posted By ugh
Nope neither worked, it was just dumped back out...
Nope neither worked, it was just dumped back out as a string when echo was called.. but never ran either command??
7,447
Posted By ugh
Redirect from Variable to command line??
The following creates a needed awk command from some preexisting variables and stores it in the variable i. I then redirect it to a new file change the permission on the file and run it as a script....
2,787
Posted By ugh
Thanks
Thanks Vgersh99 that looks close to what i need, though i cant use nawk and i dont think i can manipulate the output string the same way in awk. I ended up using a different method, crude but it...
2,787
Posted By ugh
using redirecting from awk
Well this is what im doing, im writing a script that you pass 3 variables into. Filename, delimiter or "FS in AWK", and a string of columbs you want to keep 1,2,4,5... Just modifing a data file and...
Showing results 1 to 7 of 7

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