Visit The New, Modern Unix Linux Community

Search Results

Search: Posts Made By: sdosanjh
1,192
Posted By sdosanjh
Can anyone please help?
Can anyone please help?
1,192
Posted By sdosanjh
I am trying the following but that doesn't work. ...
I am trying the following but that doesn't work.
The requirement is to change the file permissions at destination after un-tarring the file since I am using jumpbox to place the tar file from source...
1,192
Posted By sdosanjh
Tar change ownership after untar
Hi All,
How can i change the file permissions after untarring the file

tar -Pcvf - $filename |ssh -p222 username@<Some JUMPBOX> "ssh user@<xyz machine> 'tar -Pxvf -'"

Shall i give as

tar...
2,594
Posted By sdosanjh
Thank you Peasant. This worked.
Thank you Peasant. This worked.
2,594
Posted By sdosanjh
Tar command to take absolute path
Hi All,
I am trying to create a tar from absolute path then transfer that file to another machine.
But tar is not taking the absolute (full) path.
Could you please help. I tried tar -cvf option at...
3,143
Posted By sdosanjh
Thank you Corona688 That worked. but after...
Thank you Corona688
That worked. but after little tweak. separated failures and Success in 2 different files and added <br> tag in the failure file that will highlight the failures first in the...
2,043
Posted By sdosanjh
Thanks Neo, I am not familiar with HTML tags, a...
Thanks Neo, I am not familiar with HTML tags, a sample would work please.
3,143
Posted By sdosanjh
I am not familiar with HTML tags. can anyone...
I am not familiar with HTML tags. can anyone provide the sample please?
3,143
Posted By sdosanjh
Send mail with font color change
Hi All,
I have a file that contains following entries.
I want to highlight the line that has word as "FAILURE" while sending the email.

File
...
2,043
Posted By sdosanjh
Send mail with font change
Hi All,
I have a file that contains following entries.
I want to highlight the line that has word as "FAILURE" while sending the email.

File...
1,113
Posted By sdosanjh
Thank you Don, i need to use nawk
Thank you Don, i need to use nawk
1,113
Posted By sdosanjh
Thanks, Don for the detailed explanation. I am...
Thanks, Don for the detailed explanation.
I am getting the following error

awk: syntax error near line 2
awk: illegal statement near line 2
awk: syntax error near line 5
awk: illegal statement...
1,023
Posted By sdosanjh
Thanks RudiC that worked as expected :D ...
Thanks RudiC
that worked as expected :D

Can you please also explain a bit what does this sort means (sort -t. -k2,2r -k4,4 -k5,5)
1,023
Posted By sdosanjh
Thanks vgersh99 But the awk is listing out...
Thanks vgersh99
But the awk is listing out entire file.
I wanted to find the pattern based on the CODE passed as an argument
that is, want the output as

xxxx.Merge.exchMon.BY.qStart ...
1,023
Posted By sdosanjh
Sorry, I forgot to mention I want the output...
Sorry, I forgot to mention
I want the output like below after awk

From
xxxx.Merge.exchMon.BY.qTime 120 read
xxxx.Merge.exchMon.BY.qStart 09:55 ...
1,023
Posted By sdosanjh
awk to find pattern in file
Hi
I am using awk to find the pattern from the file, but it is not displaying anything. Probably I am missing some syntax in expression.

FILE
xxxx.Merge.exchMon.BY.qTime 120 ...
1,113
Posted By sdosanjh
Thanks RudiC, that worked with nawk.
Thanks RudiC, that worked with nawk.
1,113
Posted By sdosanjh
I tried below, but not able to remove one "(" ...
I tried below, but not able to remove one "(" :p

cat OutFile | grep GAP | awk -F'|' '{print $4}' |awk -F')' '{print $1}' |awk -F' ' '{print $3,$4,$5}'

Output

CL/U18 16P-NC (CL160U8...
1,113
Posted By sdosanjh
awk command to display particular pattern
Hi
I am using awk to print 10,11 column but it is not displaying required output.
Please let me know how I can browse through the line and extract the required one

Example: I have below 2 lines...
536
Posted By sdosanjh
Thank you RudiC Actually, I was trying to read...
Thank you RudiC
Actually, I was trying to read the line in the file and replacing the 2nd column with the new value.
536
Posted By sdosanjh
Edit and replace the multiple values in a file in one iteration
Hi All,

I am preserving OLD and NEW values and want to replace the values in one go instead of using multiple sed and mv commands. Please help.

echo "\nEnter the new qStart time '${CODE}' -...
539
Posted By sdosanjh
Thank you RudiC and Vgersh99. The sed is working...
Thank you RudiC and Vgersh99. The sed is working as expected.
let me see if I can get the same results using awk.

I am not familiar with awk though. So tried sed therefore because I always need...
539
Posted By sdosanjh
sed not taking variable value
Hi All,
Could you please help me, why sed is not able to take variable value when I try to replace using sed.
I want to replace 2nd column (time) and keeping intact others.

cur="09:30"...
9,677
Posted By sdosanjh
awk -F_ 'NF<2 || NF--' OFS=_ abc.1 worked :)
awk -F_ 'NF<2 || NF--' OFS=_ abc.1
worked :)
9,677
Posted By sdosanjh
Cut the strings from end
could you please help me.
I have below autosys jobs

01_enable_input_hol_dtpz1b
01_abc_copy_ld_sat_xxxz1
01_abc_mavcd_yyyyyxxxz1
01_abcdef_oa_xxxxxz1
01_fdgte_symbol_ddddz1...
Showing results 1 to 25 of 168

 

Featured Tech Videos

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