Search Results

Search: Posts Made By: Raghuram717
4,115
Posted By Raghuram717
yes this lines has delimiter ","... but some...
yes this lines has delimiter ","... but some lines has different delimiter like "=" then it wont work right
so i thought of not using delimiter comma in search string..
ok fine ...let me go thru...
4,115
Posted By Raghuram717
this is not working ..when i a input file like...
this is not working ..when i a input file like below,

2020-02-29 11:28:19.790,82,GETAboutusCSS-0,307,Temporary Redirect,10.152.194.47:2016-SequenceLength...
4,115
Posted By Raghuram717
it worked
it worked
4,115
Posted By Raghuram717
sed removal
Hi I am trying to delete lines in a file that consist only "GETaboutUsCSS" but it should not remove "GETaboutUsCSS-0" "GETaboutUsCSS-1".
could some one help me in this.


input file:...
4,615
Posted By Raghuram717
it worked thanks.
it worked
thanks.
4,615
Posted By Raghuram717
while IFS= read -r line do mydate=$(grep...
while IFS= read -r line
do
mydate=$(grep -Po '[0-9]+/[0-9]+/[0-9]+' <<< "$line")
# perform the replacement in case there is date to process
if [[ ! -z "$mydate" ]]; then
...
4,615
Posted By Raghuram717
Change date format in a file.
Hi all,

I have a file as below,
i would like the change the format of the time from "11/7/2019 20:12" to "2019-07-11 20:12:00" in the last coloumn.
any awk solution on this.

Input:...
1,999
Posted By Raghuram717
Split the all files in to 8 parts in a folder
Hi,

I have different files and i need to split the files in that folder split in to 8 parts with equal number of lines....!
any fastest way of doing this in awk.

for an example i have a file...
3,897
Posted By Raghuram717
i have searched but could find vertical to...
i have searched but could find vertical to horizontal that too with single line data.
so posted the question at last.
Thanks Rudic ..above one worked like a charm
3,897
Posted By Raghuram717
Convert a horizontal lines to vertical lines in a csv file
Hi..
I need some help in converting the below horizontal lines to vertical lines format.
can anyone help me on this.

input file
Hour,1,2,3,4,5
90RT,106,111,111,112,111

output file...
2,175
Posted By Raghuram717
Thanks Rudic
Thanks Rudic
2,175
Posted By Raghuram717
i tried this ..this is not working for me...1 ...
i tried this ..this is not working for me...1

sed 's/\[0-9]*\/\([0-9]\)*/\t/g'
2,175
Posted By Raghuram717
sed to replace / between the two numbers
i Have a file as following

view pz19a0c0/1000T_J_3MoDw9DSLh1ZsCubdua-LKOQmbtiVgkIsiMbSiwF467?sessionId=15451401994597121249
view ...
2,661
Posted By Raghuram717
let me and try and come back --- Post...
let me and try and come back

--- Post updated at 10:38 AM ---

superb ..! this is working as expected....a small three lines code doing this much operation is so nice.
Thanks Rudic
2,661
Posted By Raghuram717
Ok fine let me go with this. Thanks for your...
Ok fine let me go with this.
Thanks for your help Rudic.
2,661
Posted By Raghuram717
Even it can be the middle three words too.But the...
Even it can be the middle three words too.But the three words should be in consecutive.
can u help me with that.
the above script u provided is working for only for first three words of the line or...
2,661
Posted By Raghuram717
Hello joeyg , this is not a...
Hello joeyg ,
this is not a homework/classwork.this is for testing purpose for our application and to search the key words. so i need in that format.

Hello Rudic,
i had thought like a script...
1,878
Posted By Raghuram717
yes this was working for me...!
yes this was working for me...!
2,661
Posted By Raghuram717
Triming the data in a file.
Hi, I have a big csv file with below data.

file:
La Cage Aux Folles (Widescreen)
Famous Mystics and Psychics
A Passion for Planning Financials Operations Marketing Management and Ethics...
1,878
Posted By Raghuram717
awk solution for Splitting a file.
Hi I have a csv file with as below

sdg-catalog-00000001
sdg-sku-00000317
sdg-sku-00000318
sdg-sku-00000319
sdg-sku-00000320
sdg-catalog-00000002
sdg-sku-00000321
sdg-sku-00000322...
5,122
Posted By Raghuram717
I got the script for seconds...i just removed the...
I got the script for seconds...i just removed the $1%60 and it worked fine for 09:55:39-10:55:38
Thanks for the help

Final working script:
paste <(date +%s -f<(cut -d, -f1 file) 2>&1) file | awk...
5,122
Posted By Raghuram717
Sorry Rudic..I I could see already the first line...
Sorry Rudic..I I could see already the first line is converting the timestamp to epoch along with seconds.There is something which need to be modified in the body of the script
i tried it... but i...
5,122
Posted By Raghuram717
sorry Rudic it worked fine..! but this script u...
sorry Rudic it worked fine..!
but this script u had given below is working for 09:55-10:55
can u help me with along seconds too 09:55:39---10:55:39

paste <(date +%s -f<(cut -d, -f1 file) 2>&1)...
5,122
Posted By Raghuram717
Bash shell and os is Linux
Bash shell and os is Linux
5,122
Posted By Raghuram717
getting error like this..../script3.sh: line 1:...
getting error like this..../script3.sh: line 1: syntax error near unexpected token `('
./script3.sh: line 1: `paste <(date +%s -f<(cut -d, -f1 file) 2>&1) file | awk -F"\t" ''
Showing results 1 to 25 of 40

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