Search Results

Search: Posts Made By: himanshupant
1,230
Posted By himanshupant
@vgersh99 Thanks, It is working. Would you please...
@vgersh99 Thanks, It is working. Would you please tell how sed is working here ?
1,230
Posted By himanshupant
Replace string until 3Rd occurance of forward slash(/)
I have a file abc.txt which has records like


456 /home/fgg/abdc.txt
3567 /home/fdss/vfgb.txt
23 /home/asd/dfght.txt


I WANT TO REMOVE STRING UNTIL 3RD OCCURANCE OF FORWARD SLASH
Output...
1,341
Posted By himanshupant
Minute(4) issue in teradata
I have values below for which diff field is giving error like
"invalid time interval" in teradata

Might be it is not doing calculation anymore after exceeding minute(4) value

END_TS 2/2/2018...
1,815
Posted By himanshupant
Thanks for telling me this. I have updated my...
Thanks for telling me this. I have updated my post with shell name and OS type
1,815
Posted By himanshupant
Compare 2 files tar.lzo with/without extracting
Hi Guys,

I have 2 compressed files tar.lzo and having many subdirectories inside it.
I would like to know which files having the difference in terms of size/content.
I am using bash shell and...
758
Posted By himanshupant
Suppose, I have 2 files in directory ls...
Suppose, I have 2 files in directory
ls promo_random*.csv
Result:-
promo_random_20180401.csv
promo_random_20180501.csv

I want to pick last file which is latest and use as an input for sed...
758
Posted By himanshupant
sed with listing
Hi,

I would like to get latest file with using listing tail and want to replace header's first column starting from # to nothing.

I am using this to replace first header #

code :-sed...
6,205
Posted By himanshupant
Hadoop directories delete older than a month
-bash-4.1$ hdfs dfs -ls -R /data/backup/prd/xyz/ | grep '^d'

drwxr-xr-x - abisox abadmgrp 0 2018-05-05 01:03 /data/backup/prd/xyz/20180301

drwxr-xr-x - abisox abadmgrp 0 2018-05-05 01:03...
40,323
Posted By himanshupant
While using sshpass, it shows command not found ...
While using sshpass, it shows command not found
Do I need to install package and will it impact other job ?
40,323
Posted By himanshupant
I don't have access to right SSH file. It is the...
I don't have access to right SSH file. It is the only way to use hardcode
40,323
Posted By himanshupant
Sftp connection with password
I am running this script to copy pattern files in local but it is asking for password even passing the hardcode value

Script:-

PASSWORD="xyz"
sftp -oport=1002 user@host:/dir/archive/file*.txt ...
6,462
Posted By himanshupant
Want to extract particular file from tar.lzo
Hi Guys,

Could you please help to get specific files from /di/data/prd/serial/lookup/abetlp11_lookup_20180206.tar.lzo without extracting whole compressed file tar.lzo as its size is huge

file...
1,224
Posted By himanshupant
Thanks guys for giving solution.
Thanks guys for giving solution.
1,224
Posted By himanshupant
Thanks @RudiC for your quick response I have 2...
Thanks @RudiC for your quick response
I have 2 sets of records, one is without double quote and other is with double quote

Example:-
abcd,3,5,5,7,7,1,2,3,4...
1,224
Posted By himanshupant
Replace last 9 delimeters “,” with “|” in UNIX
Hi Guys,

I want to replace last 9 "," delimeters with "|" in a file

Example :-

"ashu,pant",3,5,5,7,7,87,8,8,8

"ashu,pant"|3|5|5|7|7|87|8|8|8

Help would be really appreciated.

Thanks...
Showing results 1 to 15 of 15

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