In the above code I would like to have PROCESS_ID of one line perl code as the backup file extension. but surprisingly, I am always getting the shell PID as the pid suffixed to the backup filename. how can I get the PID of one line perl code which got executed as above as the filename's extension?perl -i.$$ -pe 's/search/replace/g' *.html
In reply to Backup filename extension with -i option by jesuashok
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |