Visit Our UNIX and Linux User Community

Search Results

Search: Posts Made By: karthikram
7,082
Posted By karthikram
Hi RavinderSingh/Yoda, Both are working...
Hi RavinderSingh/Yoda,

Both are working great , it is simple but i am unable to figure out.

@RavinderSingh awk -F"|" 'NR==FNR{a[$1]=$0;next} ($1 in a){b=$1;$1="";print a[b] $0}' OFS="|" file1...
7,082
Posted By karthikram
How to merge two tables based on a matched column?
Hi,

Please excuse me , i have searched unix forum, i am unable to find what i expect ,
my query is , i have 2 files of same structure and having 1 similar field/column , i need to merge 2...
2,388
Posted By karthikram
Hi Balckacid/Akshay/All Unix Techies, Thanks...
Hi Balckacid/Akshay/All Unix Techies,

Thanks for looking into my requirement and both the scripts works fine in ksh and it is good.

Now i can compare the last end of month date whether it is...
2,388
Posted By karthikram
Thanks, My requirement is say month end date...
Thanks, My requirement is say month end date 20131231 is falling as one of last 10 consecutive dates,

say today (current date) is 20140101 count as 0
20131231 count as 1 , so this is falling in...
2,388
Posted By karthikram
How to get the consecutive last 10 week day date using UNIX ksh shell scripting?
Hi,

i am writing a ksh shell script to check the last month end date whether it is falling in last 10 week day date, I am not sure How to use "Mr. Perderabo's date calculator", Could you Please...
1,838
Posted By karthikram
Thank you very much , you are all great, it...
Thank you very much , you are all great, it worked perfectly.

i made only this change to work in ksh

$ssh server_name 'for variable in $(ps -fu user | grep -i something/ | grep -i something |...
1,838
Posted By karthikram
Thanks you very much , i came across pgrep many...
Thanks you very much , i came across pgrep many times but it didnt strick.

I am able to learn that if we need to run such kind of script better to save and run.


By passing via a stream the...
1,838
Posted By karthikram
How to get the for loop output from a remote server in UNIX shell scripting?
Hi,

I am using ksh , when i try to use for loop i am getting the expected output.


$for variable in $(ps -fu user | grep -i something/ | grep -i something | grep -v grep | awk '{print $2}');do...
1,549
Posted By karthikram
Hi disedorgue/pamu, Thanks both the commands...
Hi disedorgue/pamu,

Thanks both the commands are working good and as expected, very much Thanks for your valueable advise.

$awk 'FNR==NR{A[NR]=$0;next}{print A[FNR]""$0}' top_list.txt_temp_1...
1,549
Posted By karthikram
How to merge two or more fields from two different files where there is non matching column?
Hi,

Please excuse for often requesting queries and making R&D, I am trying to work out a possibility where i have two files field separated by pipe and another file containing only one field where...
2,597
Posted By karthikram
Hi, Thanks , command worked as expected. But...
Hi,

Thanks , command worked as expected. But in output i am getting more than 12th column i tried to merge using colspan of html
but still i am able to see more than 12 fields in html.


rm...
2,597
Posted By karthikram
Hi Skrynesaver/MR.Bean/krishmaths, Thanks...
Hi Skrynesaver/MR.Bean/krishmaths,

Thanks all of your input , Please excuse Skrynesaver i didnt see the note top -b d 3 command worked fine, through more , cat -v and vi i didnt see control...
6,610
Posted By karthikram
You might have heard of touch command, You...
You might have heard of touch command,

You can use touch empty_file.txt

this will craete the file , if already exists it wont create the file or empty the file, you may create the same in...
2,597
Posted By karthikram
Hi Skrynesaver, I am getting the below error...
Hi Skrynesaver,

I am getting the below error , actually i dont know perl exactly. Could you please advise.

$perl -ne 's/^[\[\d*m//g' file_name.txt
Unmatched [ in regex; marked by <-- HERE in...
2,597
Posted By karthikram
Request for advise on how to remove control characters in a UNIX file extracted from top command
Hi,

Please excuse for posting new thread on control characters,
I am facing some difficulties in removing the control character from a file extracted from top command,
i am able to see...
9,081
Posted By karthikram
Hi Scott, Thanks it worked. Thanks, ...
Hi Scott,

Thanks it worked.

Thanks,
Regards,
karthikram
9,081
Posted By karthikram
If else condition inside for loop of awk command in UNIX shell scripting
Hi ,
Please excuse me for opening a new thread i am unable to find out the syntax error
in my if else condition inside for loop in awk command ,
my actual aim is to print formatted html td tag...
5,512
Posted By karthikram
Hi Corona, Thanks i understood , loading n...
Hi Corona,

Thanks i understood , loading n number of variable with n number of data in memory is not good approach for just basically accomplishing HTML report, This is Just for my self knowledge/...
5,512
Posted By karthikram
Hi , Thanks , Now i understood that through shell...
Hi , Thanks , Now i understood that through shell it is not possible to make loop in main variable decomposing it to arrays of elements inside that each array further fetching array as array is not...
5,512
Posted By karthikram
Hi, Thanks , the script worked well in ksh,...
Hi,

Thanks , the script worked well in ksh, now using your script each variable can be applied for each line ,
It is very helpful to me , But i am getting error while trying to use while loop...
5,512
Posted By karthikram
Hi Corona, Thanks, Let me explain the...
Hi Corona,

Thanks, Let me explain the reason, we are writting scripts and our superiors want them as HTML reports,
we have some security reasons so we are not allow html packages from db side,...
5,512
Posted By karthikram
Hi, Thanks for workaround, Actually my...
Hi,

Thanks for workaround, Actually my requirement is to get values from line by line in a file and assign to variable, it is good that for each line if there is separate variable also, from the...
5,512
Posted By karthikram
Hi , Thanks for looking into my request, Please...
Hi , Thanks for looking into my request, Please help how to make loop inside the While loop to get the variables line by line , nothing is working for me.

In my above script it is taking the whole...
5,512
Posted By karthikram
Hi Scrutinizer, Thanks for the quick reply...
Hi Scrutinizer,

Thanks for the quick reply read -A worked well for korn shell , i am unable to get the code properly. How to frame the variable loop to get each value from a line in a file.
...
5,512
Posted By karthikram
How to fetch values from a line in a file to variables in UNIX?
Hi,

I need to assign values from a lines in a file into variables in unix, i am using Korn shell.

I tried the below script from posts but i am unable to fetch every value in a variable.
...
Showing results 1 to 25 of 37

 

Featured Tech Videos

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