Search Results

Search: Posts Made By: tech_frk
1,807
Posted By tech_frk
thank you rudic it worked. appreciate your help.
thank you rudic it worked. appreciate your help.
1,807
Posted By tech_frk
thank you rudic but iam getting the following...
thank you rudic but iam getting the following error.

awk: {CAT[$1,$2,$3]=NR OFF[$4]=NR T[$1,$2,$3,$4]=$5} END {for (c in CAT) {printf "%s", c for (o in OFF) if (OFF[o]!=1) printf "\t%s",...
1,807
Posted By tech_frk
sorry for the late reply, this is definitely not...
sorry for the late reply, this is definitely not homework.
i work on cisco platform, with some files having data close to what i asked for.
the reason i asked for a one liner is coz it needs to be...
1,807
Posted By tech_frk
Shell command to transpose Row & Column
Hi all,

need a help with getting a one line command to do the following.
i have an input file with rows of data containing credits for each office, the output should be one row for each office...
849
Posted By tech_frk
sed or awk Replacement/Addition
Hi,

I have a big text file with similar data as below and need the text as in output
using awk or sed. any help is greatly appreciated.

Input:
City=Chicago Elden street
>>> reservedBy =...
1,021
Posted By tech_frk
for some reason iam getting the following error. ...
for some reason iam getting the following error.

awk: {T[$0]}END{for (t1 in T)for(t2 in T)if(t1 ~ t2 && length(t1)!=length(t2))delete T[t2] for (t in T) print }
awk: ...
1,021
Posted By tech_frk
Hi RudiC, i tried the following command but...
Hi RudiC,

i tried the following command but it isnt working. Thank you.

awk '!seen[$0]++' file

Please use CODE tags as required by forum rules!
1,021
Posted By tech_frk
Delete duplicate like pattern lines
Hi

I need to delete duplicate like pattern lines from a text file containing 2 duplicates only (one being subset of the other) using sed or awk preferably.

Input:
FM:Chicago:Development...
1,707
Posted By tech_frk
Replace using sed or awk
Hi,

Need a help to replace a word if a pattern is found between the delimiters preferably using SED or AWK.

below is the sample file that iam dealing with, need to match pattern 'application'...
1,036
Posted By tech_frk
thank you ravender both of them worked, it worked...
thank you ravender both of them worked, it worked like a charm.
1,036
Posted By tech_frk
Print occurence number
Hi folks,

I have a file with lots of lines in a text file,i need to print the occurence number after sorting based on the first column as shown below, thanks in advance.

sam,dallas,20174...
2,139
Posted By tech_frk
Delete records based on a text file from a text file
Hi Folks,

I am a novice and need to build a script in bash. I have 2 text files data.txt file is big file, column 2 is the we need to search and delete in the output. The filter file contains the...
1,360
Posted By tech_frk
simply genious... thanks guys
simply genious... thanks guys
1,360
Posted By tech_frk
singh, thank you but it is not printing...
singh,

thank you but it is not printing anything with this command
1,360
Posted By tech_frk
Append no of times a column is repeated at the end
Hi folks,

Iam working on a bash script, i need to print how many times column 2 repeated at the end of each line.

Input.txt
COL1 COL2 COL3 COL4
1 XX 45 N
2 YY 34 y
3 ZZ 44 N
4 XX 89 Y...
9,688
Posted By tech_frk
Guys awesome thank you very much.
Guys awesome thank you very much.
9,688
Posted By tech_frk
Filter records in a huge text file from a filter text file
Hi Folks,

I have a text file with lots of rows with duplicates in the first column, i want to filter out records based on filter columns in a different filter text file.
bash scripting is what i...
2,433
Posted By tech_frk
Hi Yoda, Thanks for your help, iam getting the...
Hi Yoda,
Thanks for your help, iam getting the required output but the values are not matching.
Actually i just found out that there will be only 3 or 6 fixed persons. if possible can you include...
2,433
Posted By tech_frk
Column to row Transpose
Hi Folks,

Iam a kinda newbie to unix shell scripting, the scenario is i have a text file containing the following info

Charlie chicago 15
Charlie newyork 26
jonny chicago 14
jonny newyork 15...
1,083
Posted By tech_frk
Script help needed(lookup 2 text files)
Hi, iam new to unix scripting need a help.
The scenario is i have 2 text files.
a.txt has
colA colB colC colD
JKU1270A JKU1042A 9 1
JKU1270A JKU1042B 9 ...
1,057
Posted By tech_frk
Scripting Help needed with a text file.
Hi,
Iam a novice to unix shell scripting, need a help from you guys.The scenario is as follows, i have the following Text file.
order No Company Category
21 aaa A
24 aaa A
87 ...
1,797
Posted By tech_frk
Zaxxon your code is very much similar to the one...
Zaxxon your code is very much similar to the one by ygemici, dont know why but it didnt work , it says Illegal variable assignment.
the one by ygemici worked , but i need that with a variable i.e.,...
1,797
Posted By tech_frk
Thanks to zaxxon & ygemici This command is...
Thanks to zaxxon & ygemici
This command is working

# VAR=`nawk '$1{x=x?x"Firname:"$1" ":"Firname:"$1" "}END{print x}' infile` # echo "$VAR" Firname:james Firname:tom Firname:jack...
1,797
Posted By tech_frk
sorry Zaxxon, it says Illegal variable name....
sorry Zaxxon,

it says Illegal variable name.

---------- Post updated at 08:04 AM ---------- Previous update was at 07:59 AM ----------

It is Sun solaris OS and shell is tcsh.
1,797
Posted By tech_frk
I tried both commands with no luck.
I tried both commands with no luck.
Showing results 1 to 25 of 33

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