Search Results

Search: Posts Made By: twistedpair
1,808
Posted By anbu23
perl -i.bkp -p -e 'BEGIN { $p="" } if( $ARGV != p...
perl -i.bkp -p -e 'BEGIN { $p="" } if( $ARGV != p ) { print "#include /verif/pdd1/exu/sxs/6sTest/reset/dfu/top_level.reset\n"; $p=$ARGV } ' *.reset
1,808
Posted By hergp
If you have GNU sed available you could do ...
If you have GNU sed available you could do

sed -i '1i\
#include /verif/pdd1/exu/sxs/6sTest/reset/dfu/top_level.reset' *
3,416
Posted By Jotne
If you are mixing text and variable, always use...
If you are mixing text and variable, always use curly bracket.
This way you are 100% sure what is variable or not.
$k. its ignoring the . and threats the variable as $k
$p_50 Here bash handles _...
3,416
Posted By Jotne
Try ${p_50} for variable p_50 ${p} for...
Try
${p_50} for variable p_50
${p} for variable p

open(SHW,">divw_unsigned_${p_50}_${k}.reset") or die $!;
934
Posted By krishmaths
Even in the first method, if the first condition...
Even in the first method, if the first condition returns false then the second condition is not evaluated due to the logical and operation.

If your requirement is to satisfy two conditions then...
1,226
Posted By bakunin
No need to delete, i closed it for you. ...
No need to delete, i closed it for you.

bakunin
Showing results 1 to 6 of 6

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