Search Results

Search: Posts Made By: rocket_dog
3,019
Posted By rocket_dog
grep -f strings.txt <(awk -F"\t" '{print $6}'...
grep -f strings.txt <(awk -F"\t" '{print $6}' input.txt)


This is mostly what I am looking for. How can I modify this to print the whole line instead of just tab separated field 6?
3,019
Posted By rocket_dog
Awk Search text string in field, not all in field.
Hello, I am using awk to match text in a tab separated field and am able to do so when matching the exact word. My problem is that I would like to match any sequence of text in the tab-separated...
Forum: Programming 06-21-2011
2,119
Posted By rocket_dog
Modify php script to allow multiple countdowns within one page.
Hi, I have the following php countdown script that counts down to a date and time. Please see the below example:


<SCRIPT language="JavaScript"...
4,383
Posted By rocket_dog
Compare Tab Separated Field with AWK to all and print lines of unique fields.
Hi.

I have a tab separated file that has a couple nearly identical lines. When doing:

sort file | uniq > file.new

It passes through the nearly identical lines because, well, they still are...
3,027
Posted By rocket_dog
My mistake It works. ---------- Post updated...
My mistake It works.

---------- Post updated at 09:56 PM ---------- Previous update was at 04:23 PM ----------

Upon further investigation I noticed that I still had the problem when working...
3,027
Posted By rocket_dog
Maybe I am explaining it wrong. I have a text...
Maybe I am explaining it wrong. I have a text file that has multiple lines that are all formatted the same and the text is separated by a tab. Below is an example of this text file:
...
3,027
Posted By rocket_dog
I tried the following with no luck: awk...
I tried the following with no luck:

awk 'NR==FNR{a[$0]; next} $6 in a{print > "/path/to/${ARRAY[i]}/" $6 "/newfile"}' /path/to/arrayfile file


could there be an issue with the syntax in the...
3,027
Posted By rocket_dog
See /path/to/arrayfile below text1 text2 ...
See /path/to/arrayfile below

text1
text2
text3



#!/bin/bash
#declare array
declare -a ARRAY

exec 10</path/to/arrayfile

let count=0
while read LINE <&10; do

ARRAY[$count]=$LINE...
3,027
Posted By rocket_dog
array in awk
Hi I am trying to get data from an array and input it into awk. Please see below:

###
#!/bin/bash
#declare array
declare -a ARRAY

exec 10</path/to/arrayfile

let count=0
while read LINE...
Showing results 1 to 9 of 9

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