S
S
Serhio Seal2014-12-20 14:47:15
bash
Serhio Seal, 2014-12-20 14:47:15

How to write a terminal macro to create multiple files at once in one folder?

For example, how to create a command, for example addblock template
, and as a result, such a structure should be created
template/
-template.php
-template.less
-template.js
Thanks in advance

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Armenian Radio, 2014-12-20
@serhioone

#!/bin/bash
mkdir $1
cd $1
echo -n > $1.php
echo -n > $1.less
echo -n > $1.js

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question