Search Results

Search: Posts Made By: Pauline mugisha
9,108
Posted By Pauline mugisha
Thanks so much. That works
Thanks so much. That works
9,108
Posted By Pauline mugisha
Division by zero error message in AWK
How can I modify my awk code to get rid of the divion by zero error message? If I run the script without an input file, it should return error message "Input file missing" but not divison by zero. ...
8,875
Posted By Pauline mugisha
Thanks
Thanks
8,875
Posted By Pauline mugisha
syntax error near un expected token =~
Hello. Please help with this code. Returns an error message "syntax error near unexpected token =~. Conditional binary operator expected.


if [[ $a =~ "[^0-9]" ]] || [[ $b =~ "[^0-9]" ]]
then...
9,105
Posted By Pauline mugisha
Thanks.That works.
Thanks.That works.
9,105
Posted By Pauline mugisha
$ #!/bin/nawk -f $ BEGIN { FS=","; $ ...
$ #!/bin/nawk -f
$ BEGIN { FS=",";

$ if (ARGC ==1)
$ {print "You need 2 arguments on the command line"}
$ echo "Error" | awk '{exit 13}'
$ echo $?

$ }

How do i have an exit...
9,105
Posted By Pauline mugisha
How to print exit status in AWK
Hi all,

How can I print the exit status in AWK?

echo $? doesnt work for me

Thanks
3,078
Posted By Pauline mugisha
Thanks
Thanks
3,078
Posted By Pauline mugisha
I am referring to the correct file name.
I am referring to the correct file name.
3,078
Posted By Pauline mugisha
File manipulation with AWK and SED
Hello

How do i check that correct input files are used while using AWk and SED for file manipulation?

e.g

awk '/bin/ {print $0 }' shell.txt
sed 's/hp/samsung/' printers.txt

how do i...
17,176
Posted By Pauline mugisha
Ofcourse awk is better. Wanted to know how to use...
Ofcourse awk is better. Wanted to know how to use sed as an option
17,176
Posted By Pauline mugisha
Thnx. That is easier
Thnx. That is easier
17,176
Posted By Pauline mugisha
I am a new sys admin. Wanted to know options. ...
I am a new sys admin. Wanted to know options.

Thnx
17,176
Posted By Pauline mugisha
Ok. I am not editing the file. Is there a way I...
Ok. I am not editing the file. Is there a way I can do it using Sed?
17,176
Posted By Pauline mugisha
Manipulating the etc/passwd file with sed
How can i use sed to extract the user name and home directory from the /etc/passwd/ file on my server.
6,470
Posted By Pauline mugisha
Combination of case and If else in shell script
Would it be right forme to combine case statement and if else in one shell script? Would it work?
2,263
Posted By Pauline mugisha
How to compile a test file
How do I compile a test file to test functionality of my script?
7,058
Posted By Pauline mugisha
sed script to manipulate the /etc/passwd file
Hi. Can anybody help me with a script to extract usernames, shell and home_directory from the /etc/passwd file.

I am stuck
2,466
Posted By Pauline mugisha
Testing for correct user input from keyboard
What script can I use to catch errors in a shell script if user inputs alpha numeric characters instead on integers from the keyboard?
3,800
Posted By Pauline mugisha
Too many arguments error
I need help. I have created my script for a simple calculator but my multiplication operator does not work. This is the the code:
#!/bin/bash

echo "Enter number1"

read Number1

echo"Enter...
Showing results 1 to 20 of 20

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