Thank you for your responses guys! I appreciate them all!
However, I still cannot find a way to append things to a different file to the new user I created for the .bashrc file.
After I create a new user I'd like to edit the new users .bashrc file but I cannot find a way to edit that file.
Does not work
I mean, all of this will work perfectly if I was editing my own currently logged in user .bashrc file
But what about after I create a user?
In theory the script would
1. create a $newUser of your choise
2. create an alias in the .bashrc for the $newUser
3. modify the point of entry in bash in the .bashrc file for the $newUser
Again; it would work perfectly if the user used the script for himself. But that is not the way i'm hoping to do it.
So far this is my full script but it will only work for myself not for the $newUser
Hi,
For my bash script, terminal with bash is generate an OK output and program works right.
already,
terminal with ash have "line 48: syntax error: Bad substitution" output and program don't work.
:confused: (0 Replies)
Hi All,
I need to pass a variable to perl script from bash script, where in perl i am using if condition. Here is the cmd what i am using in perl
FROM_DATE="06/05/2008"
TO_DATE="07/05/2008"
"perl -ne ' print if ( $_ >="$FROM_DATE" && $_ <= "$TO_DATE" ) ' filename"
filename has... (10 Replies)
hi,
i have a script that runs on bash and would like to run it on a machine that has csh and bash. the default setting on that machine is csh. i dont want to change my code to run it with a csh shell. is there any way i can run the script (written in bash) on this machine? in other words is there... (3 Replies)
Hi Guys,
I need to write a script, that exports the "moz_places" table of the "places.sqlite"-file (firefox browser history) into a csv-file. That part works. After the export, my csv looks like this:
...
4429;http://www.sqlite.org/sqlite.html;"Command Line Shell For... (11 Replies)
# check host value regex='^(||1|2|25)(\.(||1|2|25)){3}$' if ')" != "" ]; then if ]; then echo host $host not found exit 4 fi elif ]; then echo $host is an invalid host address exit 5 fi
espeacailly the top regex part?
---------- Post updated at 06:58 PM ---------- Previous update was... (1 Reply)
I want to give my long scripts to customer. The customer must not be able to read the scripts even if he has the password. The following command locks and unlocks the script but the set +x is simply ignored.
The code:
read -p 'Script: ' S && C=$S.crypt H='eval "$((dd if=$0 bs=1 skip=//|gpg... (7 Replies)
So I'm trying to pass certain json elements as env vars and use them later on in a script.
Sample json:
JSON='{
"Element1": "file-123456",
"Element2": "Name, of, company written in, a very weird way",
"Element3": "path/to/some/file.txt",
}'
(part of the) script:
for s... (5 Replies)
I'm new to utilities like socat and netcat and I'm not clear if they will do what I need.
I have a "compileDeployStartWebServer.sh" script and a "StartBrowser.sh" script that are started by emacs/elisp at the same time in two different processes.
I'm using Cygwin bash on Windows 10.
My... (3 Replies)
In Bash shell - the ps -ef shows only the /bin/bash but the script name is not displayed ? Is there any way to get the script names for the process command ?
--- Post updated at 08:39 AM ---
in KSH (Korn Shell), my command output shows the script names but when run in the Bash Shell... (3 Replies)
Hello everybody,
I would like modify some strings using sed or another command line with the content file.
For example:
- {fqdn: "server-01" , ip: "server-01"}
- {fqdn: "server-02" , ip: "server-02"}
- {fqdn: "server-03" , ip: "server-03"}
- {fqdn: "server-04" , ip: "server-04"}
My... (4 Replies)
Discussion started by: dco
4 Replies
LEARN ABOUT DEBIAN
go2
GO2(1)GO2(1)NAME
go2 - directory finder
SYNOPSIS
go2 [-h] [--cd] [-i] [-r] [--setup] [--version] [pattern [pattern ...]]
DESCRIPTION
This manual page documents briefly the go2 command.
This manual page was written for the Debian(TM) distribution because the original program does not have a manual page.
go2 is a program that finds (and changes to) directories.
IMPORTANT
go2 requires be loaded from the shell. To do this include the next sentence in your $HOME/.bashrc file:
[ -e /usr/lib/go2/go2.sh ] && source /usr/lib/go2/go2.sh
If your wish improve directory caching, you may include also the next sentence:
alias cd='go2 --cd'
Both are made by the setup process the first time you invoke go2.
OPTIONS
This program follows the usual GNU command line syntax, with long options starting with two dashes ('-'). A summary of options is included
below. For a complete description, see the Info files.
--cd Just change working directory
-i Case insensitive.
-r Search from root directory.
-d Search in hidden directories.
-l List only, print matches and exists.
--setup
Install go2 in your .bashrc.
SEE ALSO
This program is fully documented in
http://arco.esi.uclm.es/~david.villa/go2.html
COPYRIGHT
Copyright (C) 2011 David Villa
This manual page was written for the Debian system (and may be used by others).
Permission is granted to copy, distribute and/or modify this document under the terms of the GNU General Public License, Version 2 or (at
your option) any later version published by the Free Software Foundation.
On Debian systems, the complete text of the GNU General Public License can be found in /usr/share/common-licenses/GPL.
AUTHOR
David.Villa@uclm.es
2011-08-05 GO2(1)