Tags down


Linux shell equivalent on IIS

By : rodrigo
Date : July 27 2020, 09:00 PM
hop of those help? Depending on what version of IIS you're considering, I would second lbrandy's recommendation to check out PowerShell. Microsoft is working on a PowerShell provider for IIS (specifically version 7). There is a decent post about this at http://blogs.iis.net/thomad/archive/2008/04/14/iis-7-0-powershell-provider-tech-preview-1.aspx. The upcoming version of PowerShell will also add remoting capabilities so that you can remotely manage machines. PowerShell is quite different from *NIX shells, though, so that is something to consider.
Hope this helps.
code :

Share : facebook icon twitter icon

__LINE__ equivalent for Linux shell

By : James
Date : March 29 2020, 07:55 AM
should help you out Had to do it myself a while ago and found this useful article back then: http://aymanh.com/how-debug-bash-scripts#adding-line-numbers-to-tracing-output
Essentially you need to use $LINENO to get the current line in the script.

Character equivalent of decimal in Linux shell script

By : clopez6
Date : March 29 2020, 07:55 AM
Hope this helps I need to convert the numbers: decimal 13 and decimal 10 to their character equivalent in a bash shell script. The characters generated will be carriage return and line feed. , I hate to give this answer, but in bash you can do:
code :
N8=$( printf %o $N )
eval nl="\$'\\$N8'"

Linux shell source command equivalent in python

By : Binali Yasangika
Date : March 29 2020, 07:55 AM
I wish this helpful for you Too much work for the return. Going to keep a small shell script to get all the env vars that we need and forget reading them into python.

What is the bash equivalent equivalent to the C shell `~/.cshrc` file?

By : Joyce
Date : March 29 2020, 07:55 AM
Hope this helps $HOME/.bashrc is the file you're looking for.
You can't open those files as /.xxxx because / is the root, not your $HOME
code :
cd $HOME;ls -la 

Linux shell: change Perl code to linux shell, grep line by line

By : Raúl Mauricio Aguila
Date : March 29 2020, 07:55 AM
Hope that helps That is a horrible piece of Perl code you've got there. Here's why:
It looks like you are not using use strict; use warnings;. That is a huge mistake, and will not prevent errors, it will just hide them. Using qx() to grep lines from a file is a completely redundant thing to do, as this is what Perl does best itself. "Shelling out" a process like that most often slows your program down. Use some whitespace to make your code readable. This is hard to read, and looks more complicated than it is. You capture strings by using parentheses in your regex, but you never use these strings. Re: $stage_number=$stage_number+1, see point 3. And also, this can be written $stage_number++. Using the ++ operator will make your code clearer, will prevent the uninitialized warnings, and save you some typing.
Privacy Policy - Terms - Contact Us © voile276.org