Search Results

Search: Posts Made By: ramky79
1,157
Posted By ramky79
Simple script
I have to pull files from a customers cloud directory to our cloud directory periodically, the customer has the files in the new-version(nver) folder; which I am pulling via a python script. (python...
1,767
Posted By ramky79
Parsing a file in bash
Hello All,
I have the following input file that i'm trying to parse:

10.0.011.40
hadoop 15526 15524 0
hadoop 15528 15526 0
hadoop 19747 4018 1
10.0.081.227
hadoop 2862 2861 0
hadoop 2864...
Forum: Linux 04-02-2014
1,481
Posted By ramky79
Question Regarding mounting a drive and running a software
Hello;

Whenever I reboot a system which one takes precedence; mounting the drives or running the init.d scripts

Here is my situation:
Every time I boot my system, I need to mount a RAID10...
1,599
Posted By ramky79
Input file is uncolored; I want the output file to be colored on criteria
Hello,

I have the following input file:

auditing account: 3DTP (3dtp)
ERROR: S3 bucket "aws-origin-test1.3dstage.com" has policy statement with public grant:...
1,786
Posted By ramky79
NGINX Setup
Here is my issue:

I have two web servers hosting web services (Server A and Server B)

I'd like to configure NGINX to achieve load balancing.

Do I install NGINX on a third new server, or is...
2,939
Posted By ramky79
Thanks everyone for your quick solutions. @...
Thanks everyone for your quick solutions.
@ Chubler_XL : your solution works perfect for my need; however

I tried doing this , It does not give me the result

echo jopts="512M1024G" | awk...
2,939
Posted By ramky79
String manipulation using awk
I have the following string

512m512m

I'm trying to split the string using awk

awk '{ split(512m512m,a,"m") print $a[0]; $a[1] }'

Sometimes the string could be

1024g1024g or ...
2,280
Posted By ramky79
Thank you joeyg and Don Cragun for the wonderful...
Thank you joeyg and Don Cragun for the wonderful explanation; However what could be the reasons when you dont require coloring, can you explain a scenario where coloring helps..
To me without...
2,280
Posted By ramky79
Can anyone explain this line
Hello,
Can anyone explain this line of code

echo -e "\033[0;32m${1}\033[m"



What does '\033' do
what does [0;32m do
what does [m do?

I tried testing this line using a script
Whatever...
1,225
Posted By ramky79
How to know which user is messing up with the system?
Hello,
In our environment some users mess up with the system ( install / uninstall ) software..
unfortunately the root is open to several users (several of them have sudo access)
How to track...
846
Posted By ramky79
Merging and sorting files
I have the following files:

file A
Col1 Col2
A 1
B 2
C 3
D 4

file B
Col1 Col2
A 1
Aa 1
B 2
C 3
D 4

file C
Col1...
1,831
Posted By ramky79
word wrap does not work
I have an input file like this,
79 #--------------------------------------------------------------------------- 80 #- define generic contact 81 cat >...
3,253
Posted By ramky79
Did you try to increase the line size... ...
Did you try to increase the line size...

export COLUMNS=130
1,593
Posted By ramky79
sed -e 's/ /,/g' <file >file.csv
sed -e 's/ /,/g' <file >file.csv
1,230
Posted By ramky79
#!/bin/ksh cd TestNum; TNoFiD=`ls -rtl...
#!/bin/ksh

cd TestNum;

TNoFiD=`ls -rtl | wc -l` #the Total Number of Files in the Directory.. keep in mind this also counts the total line in ls -rtl

TNoAFiD=$TNoFiD - 1 #we want to remove...
1,817
Posted By ramky79
Interview question
A process(apache/webservice) is continually writing a log(it is a single log, there are no several logs with different file names) onto a unix system.
the file system is filling up. How do you...
2,281
Posted By ramky79
Typical steps to be followed while applying an application patch upgrade on linux
what are the typical steps used by system adminstrators while applying an application patch upgrade
2,150
Posted By ramky79
Problem with a tab separated file
Hi,
I have created a tab separated file from the following input file.

ADDRESS1 CITY STATE POSTAL COUNTRY LON LAT
32 PRINZREGENTENSTRASSE ROSENHEIM BAYERN 83022 DEU 1212182...
2,215
Posted By ramky79
Concatenating columns
Hi I have the following input file, It is a tab delimited file


ISOCOUNTRYCODE POSTALCODE CITY HNO STREETBASENAME STREETTYPE
FIN 40950 Muurame Teollisuus tie...
1,810
Posted By ramky79
[SOLVED] Sorting into new files based on column
Hi,
I have the following file, I need to sort it based on a column and write to different output files based on this column


request_guid iso_country_cd address_data response_time...
1,832
Posted By ramky79
Splitting the data in a column into several columns
Hi,
I have the following input file
32895901-d17f-414c-ac93-3e7e0f5ec240 AND @GDF_INPUT[BaseName:CATALUNYA; HouseNumber:1; ISOCountryCode:AND; PostalCode:AD200; LanguageCode:GER; ]...
1,107
Posted By ramky79
47shailesh... your solution works for me... ...
47shailesh... your solution works for me...
@vbe .. grep did not work for me , when i tested the whole file...some of the records still had @GAV in File2.


How do i split column 3 into two...
1,107
Posted By ramky79
How to write to different files based on a column
Hi,
I have the following sample file

32895901-d17f-414c-ac93-3e7e0f5ec240 AND @GDF_INPUT[BaseName:CATALUNYA; HouseNumber:1; ISOCountryCode:AND; PostalCode:AD200; LanguageCode:GER; ]...
2,651
Posted By ramky79
Now the problem is back to square one... I did...
Now the problem is back to square one...
I did try it with -F'\t'; now i see lines with four fields the fifth field is empty.

I have tried the folloiwng code
awk -F'\t' 'NR<2||NF==5' HUN1.dat...
2,651
Posted By ramky79
Thankyou Guru and neutronscott. this is...
Thankyou Guru and neutronscott.
this is working but, I see that it is skipping the rows eventhough they have 5 fields in them...

see my examples below

Here is the first 10 lines of my input...
Showing results 1 to 25 of 107

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