Search Results

Search: Posts Made By: jjb1989
938
Posted By jjb1989
sed issue
Hi guys. Can somone advise as to what the problem is with the following sed command?


1) read -p "Please enter new username you wish to replace old: " new_username
sed...
2,537
Posted By jjb1989
Thanks everyone. The problem was fixed. Uvrakesh,...
Thanks everyone. The problem was fixed. Uvrakesh, your hint made all the difference thanks. I removed the overriding username =$1 and everything now works normal. Thanks agaiN!
2,537
Posted By jjb1989
None at all CarloM. Just for example ...
None at all CarloM. Just for example "Fullname: ".

Variable values aren't being displayed.

Thanks.
2,537
Posted By jjb1989
Awk variables not printing to StdOutput
Hi guys, I'd be grateful if you could have a look at my code below and give me some feedback as to why the homedir and fullname variables aren't being printed to Standard Output when the script is...
1,832
Posted By jjb1989
Just out of curiousity, can I use a while loop to...
Just out of curiousity, can I use a while loop to accomplish the same objective as above? I used the following code but apparently has too many arguments.


while [ grep "$username" /etc/passwd =...
1,832
Posted By jjb1989
Well, that made all the difference, thanks man!...
Well, that made all the difference, thanks man! :D

Feel stupid now but when should you use back quotes then?
1,832
Posted By jjb1989
echo $username >> information_file ...
echo $username >> information_file



You should also validate that $username has a value before you try to use it in a grep.[/QUOTE]

Thanks for your reply man. Unfortuneatly, Bash still...
1,832
Posted By jjb1989
If with grep help
Hi guys,

I was wondering if you could help me figure out what's wrong with this script below:

read username

if `grep $username /etc/passwd` > /dev/null
then
$username >>...
4,113
Posted By jjb1989
I use BASH :)
I use BASH :)
4,113
Posted By jjb1989
Hi man. Many thanks for writing that long script...
Hi man. Many thanks for writing that long script but I must refuse to use it. It is far too complex and I would greatly like understand what scripts im adding to my assignment. Please give me a more...
4,113
Posted By jjb1989
Using While and If statements
1. The problem statement, all variables and given/known data:
Two problems I need solving please. I created a script where the user types in 7 numbers as standard input and each one is then stored...
2,036
Posted By jjb1989
Using While and If statements
Hi guys,

Two problems I need solving please. I created a script where the user types in 7 numbers as standard input and each one is then stored in an array. Now I need to perform the following...
3,580
Posted By jjb1989
Hi Ludwig. Yep that's exactly what I'm trying to...
Hi Ludwig. Yep that's exactly what I'm trying to do. I created a script on nano and at the end of the script, want to create a command which will capture the standard output result from the script...
3,580
Posted By jjb1989
Would this work? history 1>>output.txt ...
Would this work?

history 1>>output.txt

Please note that all this script is written in NANO.
3,580
Posted By jjb1989
Appending script output to file
Hi guys,

I have a script from which I would like its standard output results (upon execution) to be appended to a separate file (.txt format). How can I write such a command into the script for...
8,744
Posted By jjb1989
Hi Franklin! Thank you so much for the help....
Hi Franklin!

Thank you so much for the help. I can't believe I spent 5 days trying to find a way to do this via cut haha. Have a happy new year!
8,744
Posted By jjb1989
How to cut selected lines from command output
Hi guys,

I need to cut the first 12 system processes from the command ps -A. I know that the cut command forms part of the pipeline but can't understand how to cut the first 12 lines and later...
Showing results 1 to 17 of 17

 
All times are GMT -4. The time now is 09:03 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy