Hot answers tagged

2

It may come down to your version of bash, your OS, and your CPU architecture. Why don't you try it yourself? Set a variable to (2^31)-1, then increment it, set it to 2^32, then increment it, set it to 2^64, then increment it, etc. Here, I just tried it myself on my Core i7 Mac running OS X "El Capitan" v10.11.3, and it looks like bash is using signed 64-bit ...


1

Send E-Mail from Powershell Script to Multiple Recipients based on ActiveDirectory User This format needs to be converted to the multiple recipient example as shown above. I am at a loss at how to properly grab the data, format it and be sure it stays in the format that Send-Mailmessage can use. There needs to be a way that grabs the ...


1

https://github.com/RadixSeven/typescript2txt was written to solve this problem. It's been 4 years since I last updated/used it, but I don't remember doing anything fancy that shouldn't still work today.


1

When I wanted it set up, I wanted a very low-latency approach so I could get a splash screen going. For task scheduler you want to set the trigger to "on an event" then set to custom rather than basic, then edit the query manually under event trigger's XML tab. I tried this script for XML: <QueryList> <Query Id="0" Path="System"> ...


1

Building on the previous answer, but instead of using GNU parallel, using the standard command "xargs" with option -P option: seq -f '%03.0f' 0 999 | xargs -n 1 -P 4 python Try this to see how the processes run in parallel: seq 0 10 | shuf | xargs -n 1 -P 3 -I % sh -c "echo start %; sleep %; echo done %"


1

There's so many ways for achieving this. I'll stick to the ones that uses Notepad++ for now Notepad++ > Search > Find in Files and go from there adjust the mask or make backups, and read your option this WILL replace all files in sub folders by default OR for more advanced search and replace Notepad++ > Plugins > Plugin Manager > Show Plugin Manager now ...


1

I need to move files from one location to another with a little twist. Try the following variation of your batch file: @ECHO OFF set source=C:\folder1\folder2 set destination=\\10.10.0.2\c$\folder1 rem change to the source directory cd %source% rem create an exclude file dir /b BOB* > c:\excludelist.txt echo COPY FILES FROM src TO dest rem add ...


1

How can I set the result of the following command to be a variable called model? wmic computersystem get model The output of this on my system is: Model VPCF22L1E Note the extra blank line. I've used VPCF22L1E to test the batch file. Use the following batch file (test.cmd): @echo off setlocal enableDelayedExpansion for /f "usebackq skip=1" %%i in ...


1

Since comments suck for formatting, please verify this is the correct input/output format desired: InputFile.txt: Iamline1 Iamline2 Iamline3 GrouponeEndswithme Group2startshere Thisisgroup2line2 OUTPUTFILE.txt: Iamline1Iamline2Iamline3GrouponeEndswithme Group2startshereThisisgroup2line2 In this case your output file with ALL groups is still only ONE ...


1

source allows you to execute a command in the current context (arguments $* are part of context). The second source call overwrites these arguments. Note it overwrites them only for the call, they are restored right after.


1

Don't start Android Studio directly, but start it by command-line example.cmd script: @echo off start /W drive:\your\path\to\android_studio.exe rem git commit + push here Create/change Android Studio shortcut to execute your script: cmd /C drive:\your\path\to\example.cmd



Only top voted, non community-wiki answers of a minimum length are eligible