Short command to create two files >{respo,nd}.php (with "tee" command?)
So I was advised to do so. And I can't create two OR MORE files at once with {a,b,c,d,e,f}.php
(which I quickly now need to create and to learn to create in the future to quickly remember and finally fix in memory.
Last edited by Don Cragun; 06-17-2014 at 02:56 AM..
Reason: Add CODE and ICODE tags.
Don't want to use useradd command to create a new user
I am doing manual addition of accounts. Actually I am writing a script and I am working on RedHat7.1 system. What I am trying to do is run the script and pass all the values of the username password and group as command line parameters. Now... (2 Replies)
Dear friends,
please tell me how to find the files which are existing in the current directory, but it sholud not search in the sub directories..
it is like this,
current directory contains
file1, file2, file3, dir1, dir2
and dir1 conatins
file4, file5
and dir2 contains
file6,... (9 Replies)
I have three files a.txt , b.txt , c.txt in a directory called my_dir1 .These files were created before two or three months . I have a tar file called my_tar1.tar which contains three files a.txt , b.txt , d.txt . Somebody untarred the my_tar1.tar into my_dir1 directory. So existing two files were... (1 Reply)
Hi,
I have line in input file as below:
3G_CENTRAL;INDONESIA_(M)_TELKOMSEL;SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL
My expected output for line in the file must be :
"1-Radon1-cMOC_deg"|"LDIndex"|"3G_CENTRAL|INDONESIA_(M)_TELKOMSEL"|LAST|"SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL"
Can someone... (7 Replies)
First post here, so hopefully all guidelines are followed, and thanks in advance for any replies.
I'm working on a shell script(BASH) that processes a csv file and performs various tasks with the data. All is well, except I want to use 'tee' to send output from 'wc' to a file as well as pipe it... (4 Replies)
Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!
1. The problem statement, all variables and given/known data:
Creating bash script the dd command and its new options (-l -U)
-l options to lowercase contents of file
-U... (2 Replies)
BACK STORY:
I have a script build.py . (It's for creating the ISO file for a special edition of Swift Linux.) This build.py script executes the mintConstructor.py script that I use to modify the Regular Swift Linux ISO to get the special edition Swift Linux ISO. The lines of the script that... (2 Replies)
How to use "mailx" command to do e-mail reading the input file containing email address, where column 1 has name and column 2 containing “To” e-mail address
and column 3 contains “cc” e-mail address to include with same email.
Sample input file, email.txt
Below is an sample code where... (2 Replies)
Hi,
How to append content into a file using tee command
echo " file1 is archived"| tee -a archive.txt
echo " file2 is archived"| tee -a archive.txt
echo " file3 is archived"| tee -a archive.txt
how to append content as new rows in the archive.txt
Thanks,
Srinadh. (4 Replies)
I'm on Ubuntu 14.04 and I manually updated my coreutils so that "tee" is now on version 8.27
I was running a script using bash where there is some write to pipe error at some point causing the tee command to exit abruptly while the script continues to run. The newer version of tee seems to prevent... (2 Replies)
Discussion started by: stompadon
2 Replies
LEARN ABOUT DEBIAN
debpear
debpear(1) General Commands Manual debpear(1)NAME
debpear - automatically builds and installs PEAR packages as Debian packages
SYNOPSIS
debpear [options] <pear-package-name>
DESCRIPTION
debpear is a tool to automatically create and build a Debian package out of a PHP PEAR package. It will download the PEAR package from
pear.php.net, then by looking into it, create the corresponding Debian package, and eventually also installs it.
PARAMETERS
<pear-package-name>
Defines the PEAR package name you want to install, as seen on the http://pear.php.net/ site. Make sure respect the case in the name
of the package (for example: Package_NAME).
OPTIONS
--build-dir|-b
Specify the directory where the Debian package will be built.
--verbose|-v
Makes debpear more verbose.
--channel|-c channel
Specify the URL channel of the PEAR package. Currently not implemented: please contribute!
--tarball|-t tarball --pkg-version|-pv pkg-version [ --wget|-w URL ]
Do not use "pear download" to optain the PEAR package from upstream authors. Instead, use tarball and use pkg-version when building
the package. Eventually also download the tarball from URL using wget before building.
--install|-i
Install the resulting debian package in your system. Note that you must be root to use this option. If you aren't root, then debpear
will try to get root using sudo.
EXAMPLE
debpear -i Auth_RADIUS
This will create a php-auth-radius package in ./build-area, and automatically install it. Because it's written in the package.xml
shipped with Auth_RADIUS at pear.php.net, php-auth-radius will depend on php5-radius.
debpear -t current.tgz -pv 1.3.1 -w http://downloads.jasig.org/cas-clients/php/current.tgz CAS
Downloads cas-clients from http://downloads.jasig.org/cas-clients/php/current.tgz, as current.tgz in the current directory, then
builds it as if it was downloaded as CAS-1.3.1.tgz by "pear download".
IMPORTANT
Note that the debian/copyright file generated by debpear isn't good enough for redistribution of the created packages. You should
carefuly review the PEAR package license before doing so. Also, debpear has been created for convenience, but it will never replace
the manual work of an experienced Debian maintainer for creating PEAR packages. It can, however, be used to create a template pack-
age quickly, before a careful review, in order to save time building a Debian PEAR package.
AUTHORS
debpear has been written by Thomas Goirand <zigo@debian.org>, and is maintained inside the PKG PHP PEAR Debian team, that can be
reached at: <pkg-php-pear@lists.alioth.debian.org>.
debpear(1)