Search Results

Search: Posts Made By: ketanraut
1,298
Posted By ketanraut
thanks, working perfect..! can you give me...
thanks, working perfect..!

can you give me bit explanation how it works..
awk -F, -vOFS="|" 'NR == FNR {T[$1]; next} {for (t in T) gsub (t ",*|, *$", _); $1=$1} !seen[$0]++' file2 file1
1,298
Posted By ketanraut
Removing string from CSV file by provide removal string from other file
What I need is to remove the text from Location_file.txt from each line matching all entries from Remove_location.txt

Location_file.txt
FlowPrePaid,...
4,239
Posted By ketanraut
Count the pipes "|" in line and delete line if count greter then number.
Hello,
I have been working on Awk/sed one liner which counts the number of occurrences of '|' in pipe separated lines of file and delete the line from files if count exceeds "17".
i.e need to...
1,176
Posted By ketanraut
Avoid overwriting backup file when multiple entries need to replace in one file input from another
Hello,
I have been working on script in which search and replace the multiple pattern.


1. update_params.sh read the multiple pattern from input file...
6,132
Posted By ketanraut
seems to be same issue ....:( #!/bin/bash ...
seems to be same issue ....:(

#!/bin/bash
o=$IFS
IFS=$(echo -en "\n\b")
LOG_DIR="/opt/All/Meta/CableData/logs/meta_all"
tail -f $LOG_DIR"/Server.log" |tail +10| egrep -i "Rebuilding free list...
6,132
Posted By ketanraut
well this is the script i have modified. when i...
well this is the script i have modified.
when i am running
tail -f opt/All/Meta/CableData/logs/meta_all/Server.log" |tail +10| egrep -i "Rebuilding free list took"
on command line and appending...
6,132
Posted By ketanraut
Alternative to tail -n -0 -F for monitoring live log file
Hello,

I have been working on script which need to generate an alert based upon live logs. If string is found then an alert mail must triggered.

tail -n -0 -F works fine to redirect the each...
2,916
Posted By ketanraut
Thanks Scrutinizer,this is what m looking for. ...
Thanks Scrutinizer,this is what m looking for.

I have done some changes as required in script, but awk give me errors while calling parameters.I have tried with " ' ' " but its not working...any...
2,916
Posted By ketanraut
User will provide two input parameters 1.UID ...
User will provide two input parameters
1.UID
2.location_ID

and if parameters are correct then i have to ask for No. of lines i.e no of records to be generated within file defined as below...
2,916
Posted By ketanraut
Increment Column having Alphanumeric value in file
I want to replace a column(first and last) having an alphanumeric value in a file.
Requirement :
1)All values in a Column must be unique and contain an incremented pattern “HCTV0096” for first...
1,536
Posted By ketanraut
Hi Akshay, Thats what i am looking...
Hi Akshay,

Thats what i am looking for.....Thakyou so much.
Only one small help,could you please explain me how does it works???.

Thanks
ketanr
1,536
Posted By ketanraut
Hi guy's Any update?....I have tried many...
Hi guy's Any update?....I have tried many combinations, but not able to get proper formatted output ..please help
1,536
Posted By ketanraut
Hi AudiC, This requirement is a part of...
Hi AudiC,

This requirement is a part of script that I hv made. Below id detail description.
1.Date “24 Apr” is user input date for which we need to search in multiple log files and return the...
1,536
Posted By ketanraut
Hi Thanks for help. I Have tried with...
Hi

Thanks for help. I Have tried with suggested changes but still have not able to get the formatted output what I want.

From log files I graped file name(customer, User, Brain-UCG...) and i...
1,536
Posted By ketanraut
How to format output in columns by appending multi lines one by one?
Hi,
I need to display output in below format
Customer : Apr 24 16:31 Customer_Name_111121.txt
|---Space---|Apr 24 16:32 Customer_Name _111121. txt
|---Space---|Apr 24 16:34 Customer_Name_111112....
5,822
Posted By ketanraut
hi chubler, I am not god with arrays so...
hi chubler,

I am not god with arrays so could you please explain me how ${#file_name[@]}] works??

Regards,
Ketanr
5,822
Posted By ketanraut
Thank you so much ....it is exactly what i am...
Thank you so much ....it is exactly what i am looking for....
5,822
Posted By ketanraut
Hi chacko193, Currently I have this…. ...
Hi chacko193,

Currently I have this….
flag=0
while IFS='|' read -r line f_path p_path; do
set -f # disable globbing
# ...
5,822
Posted By ketanraut
Read record from the text file contain multiple separated values & assign those values to variables
I have a file containing multiple values, some of them are pipe separated which are to be read as separate values and some of them are single value all are these need to store in variables.
I need...
9,029
Posted By ketanraut
..thats working fine! thanks
..thats working fine! thanks
9,029
Posted By ketanraut
Retrieving file size in a remote server using SSH
Hi,

I have public and private keys and that's works fine for me. now I am sending files one by one on remote server and I want to check is file successfully delivered or not by comparing size of...
Forum: HP-UX 01-30-2014
16,154
Posted By ketanraut
Connect to remote server using sftp with password define within command/script
I am trying to connect to remote server in hp-ux, using sftp command (using sftp username@ip and password ) able to connect to remote server but, in this case sftp prompt for password and user need...
2,601
Posted By ketanraut
Could you please explain me how it works...
Could you please explain me how it works...
2,601
Posted By ketanraut
Thanks Akshay,its what i am looking for.... ...
Thanks Akshay,its what i am looking for....
Could you please explain me how it works...

---------- Post updated at 04:33 PM ---------- Previous update was at 04:10 PM ----------

Hi Akshay,
...
2,601
Posted By ketanraut
Search for logs traced between specific date and time from log file
HI,

I want to search for a logs which are trace between specific date and time from logs file.

My logs are generated like this :-

Tue Jun 18 05:00:02 EEST 2013 | file_check.sh|...
Showing results 1 to 25 of 39

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