Search Results

Search: Posts Made By: Dendany83
1,335
Posted By Dendany83
Take the value of variable from a file and execute a command for each value
Hello Experts,

I would like to know the best way to assign a value to variable from a given file and execute a command including this variable for each entry from the file. to be more clear, i...
1,676
Posted By Dendany83
Please try the following (copy it => same...
Please try the following (copy it => same sequence) :

chkMsgName="Service Fee Detail"
if [ $ctrlSrvcFeeMsgNm == $chkMsgName ]
then
if [ $ctrlSrvcFeeCnt == $cntWrdSrvcFee ]
then
if [...
8,828
Posted By Dendany83
bad substitution error!
Hi All,

I'm building a new shell script but i'm facing a problem with one line which is giving "bad substitution" error. Please assist

script lines:
#!/bin/sh
printf "%s: " "Occurrence DATE...
12,732
Posted By Dendany83
You can try the following: #more abc test...
You can try the following:

#more abc
test test test mounting
test mounting test
mounting test again

#sed 's/.*mounting/mounting/' abc
mounting
mounting test
mounting test again

BR,
1,563
Posted By Dendany83
Any one can help please?
Any one can help please?
1,563
Posted By Dendany83
Thanks man! it worked perfectly on Cygwin :) i...
Thanks man! it worked perfectly on Cygwin :) i will test it on Solaris & Linux platforms and see if i get same result.

For my knowledge, can you please comment each command in your code? this is...
1,563
Posted By Dendany83
check values in columns and print certain error messages if value > 10, 40 , 60
Hi Experts,

I need your assistance to check values in certain columns (5 and 8 %Err) from awk o/p and if the value is > 10 print "<Minor>: <complete row>" , if value > 40 then print "<Major>:...
3,904
Posted By Dendany83
Thanks for your quick reply, in fact i followed...
Thanks for your quick reply, in fact i followed the below commands but it is giving effect only with #history command but it didn't modify the .bash_history file. Any comments?

#export...
3,904
Posted By Dendany83
.bash_history modification
Hi Experts,

I know my question would be strange but i need to understand how the .bash_history file is logging user actions (the mechanism) and if possible modify it to include also the date/time...
3,170
Posted By Dendany83
[QUOTE=ygemici;302513572]i think you run in...
[QUOTE=ygemici;302513572]i think you run in solaris or aix or other Unix variants.
if we suppose your system as solaris or other , sed has some limits unfortunately and does not understand what is...
3,170
Posted By Dendany83
It is giving an error: Label too long: text1=" ...
It is giving an error:
Label too long: text1=" Device | IPMB0-A | IPMB0-B "

#!/bin/sed -f

text1=" Device | ...
2,206
Posted By Dendany83
It is giving an error: Label too long: text1=" ...
It is giving an error:
Label too long: text1=" Device | IPMB0-A | IPMB0-B "

#!/bin/sed -f

text1=" Device | ...
3,170
Posted By Dendany83
Sorry but this command is giving me an error: ...
Sorry but this command is giving me an error:

#sed -e :a -e '$! s/$/\\n/;' -e 'N;s/\n//g' -e 'ta' header

Unrecognized command: $! s/$/\\n/;
2,206
Posted By Dendany83
Sorry but this command is giving me an error: ...
Sorry but this command is giving me an error:

#sed -e :a -e '$! s/$/\\n/;' -e 'N;s/\n//g' -e 'ta' header

Unrecognized command: $! s/$/\\n/;
3,170
Posted By Dendany83
Thanks a lot! it worked perfectly :) can you...
Thanks a lot! it worked perfectly :) can you explain the command in details please?

BR
2,206
Posted By Dendany83
Thanks a lot! it worked perfectly :) can you...
Thanks a lot! it worked perfectly :) can you explain the command in details please?

BR
3,170
Posted By Dendany83
Thanks for your quick reply but how about the...
Thanks for your quick reply but how about the first example i have highlighted? this is not achievable via command line, it needs sed script to do it. any ideas?
2,206
Posted By Dendany83
Thanks for your quick reply but how about the...
Thanks for your quick reply but how about the first example i have highlighted? this is not achievable via command line, it needs sed script to do it. any ideas?
3,170
Posted By Dendany83
Need assistance with sed
Hi All,

I need your assistance, I would like to replace all lines beginning with the word "begin" with the below text:

Device | IPMB0-A | ...
2,206
Posted By Dendany83
Need assistance with sed
Hi All,

I need your assistance, I would like to replace all lines beginning with the word "begin" with the below text:

Device | IPMB0-A | ...
1,109
Posted By Dendany83
awk o/p assistance
Hi,

I would like to know the awk command that gets the below o/p:

File contents:
Board1;9a;60;36;60.0;60;0;0.0
Board2;96;60;35;58.3;55;0;0.0
Board3;92;60;60;100.0;60;60;100.0

Used awk...
2,785
Posted By Dendany83
Thanks for your replies, it worked with the below...
Thanks for your replies, it worked with the below command (no space after -F):

awk -F';' '{print $1}' test.log

What about specifying the length of one field? ex. strict $1 value to 10...
2,785
Posted By Dendany83
awk FS usage problem
Hi All,

I have a question about the usage of FS in awk and i appreciate if you can help me sort out what i'm doing wrong.

I have a file with info ; separated and i just want to print the o/p of...
1,734
Posted By Dendany83
not working as well :(
not working as well :(
1,734
Posted By Dendany83
I have tried your code but i didn't work, the dot...
I have tried your code but i didn't work, the dot started on a new line not on the same line of "Collecting BSSIM traces ..." and i didn't see the word "done" when the copy was complete (code...
Showing results 1 to 25 of 32

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