Search Results

Search: Posts Made By: cillmor
2,156
Posted By Aia
Another option is to escape the `/' $repl_str =...
Another option is to escape the `/'
$repl_str = '--bundle_type=021 --target=\/dev\/disk1s2';

#!/usr/bin/perl
.
.
.
if( system("/usr/bin/perl -p -i -e 's/$find_str/$repl_str/'...
2,156
Posted By MadeInGermany
$repl_str contains a / that is also used as a...
$repl_str contains a / that is also used as a separator.
Take another separator
's#$find_str#$repl_str#'
--
Why do you run another perl instance?
6,363
Posted By Franklin52
With awk: awk '!p{p=sub("2Z694-00609",x)}1'...
With awk:
awk '!p{p=sub("2Z694-00609",x)}1' file
5,791
Posted By MacMonster
Escape the dollar sign. \$* ) echo...
Escape the dollar sign.


\$* ) echo success ;
278,631
Posted By Neo
Simple rules of the UNIX.COM forums:
RULES OF THE UNIX AND LINUX FORUMS

For the latest version of the community rules (the official community rules page), please visit here. (https://www.unix.com/misc.php?do=cfrules)


No flames,...
Showing results 1 to 5 of 5

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