Skip to content

Instantly share code, notes, and snippets.

@abhishekdagarit
abhishekdagarit / How to append text files using batch files
Created November 26, 2018 13:10
How to append text files using batch files
type file1 >> file2
@abhishekdagarit
abhishekdagarit / Moving files using command prompt
Created November 26, 2018 09:36
Moving files using command prompt
How to move files in the Windows command line (MS-DOS)
move stats.doc c:\statistics
If you'd like to move multiple files, you can separate the file names with a comma, as in the following command.
move stats.doc, morestats.doc c:\statistics
In the next example, we are moving the file "example.doc" to the D:\ drive.
@abhishekdagarit
abhishekdagarit / Deleting files through command prompt
Created November 26, 2018 09:34
Deleting files through command prompt
Examples:
Delete "Hello World.txt"
DEL "Hello World.txt"
Delete 3 named files:
DEL file1.txt file2.txt "C:\demo\file3.txt"
@abhishekdagarit
abhishekdagarit / Replace an occurrence of a text in XML
Created November 26, 2018 06:26
Replace an occurrence of a text in XML
powershell -Command "(gc combined.xml) -replace '<root>', '' | Out-File updatedXML.xml"
@abhishekdagarit
abhishekdagarit / Combining XMLs into 1 using command prompt
Created November 26, 2018 06:19
Combining XMLs into 1 using command prompt
for %f in (*.xml) do type "%f" >> combined.xml
@abhishekdagarit
abhishekdagarit / Finding a string through command prompt
Created November 26, 2018 06:18
Finding a string through command prompt
find "martin hendrikx" C:\Users\Martin\Desktop\exercise.txt
@abhishekdagarit
abhishekdagarit / SAS lecture 1.md
Last active November 11, 2017 16:53
SAS lecture1

#Printing datasets in SAS

proc print data=work.intro;
run;

Where clause

@abhishekdagarit
abhishekdagarit / Vectors in R.md
Last active October 30, 2017 18:50
Vectors in R

Vectors in R

Creating a vector

Use c() function

vector_1 <- c(23,4,2)
vector_2 <- c("p", "q", "r")
vector_3 &lt;- c(TRUE, FALSE, FALSE)
@abhishekdagarit
abhishekdagarit / R Basics.md
Last active October 30, 2017 18:42
R basics

Assignment operator

Assign the value 42 to x

x <- 31
Other_shit <- 4
@abhishekdagarit
abhishekdagarit / swirl.md
Last active October 30, 2017 15:24
swirl

#SWIRL

Its basically a package that if installed can help in learning and practicing R, right inside the R console.

Main Swirl webpage

Steps

  1. Get R