Search Results

Search: Posts Made By: alis
6,005
Posted By alis
So should I do $@ instead or should I do $1 ...
So should I do $@ instead or should I do $1 but would that do if there are multiple names on the command line like the assignment says like if there is
sali1206
fake329
unreal896

and I do ...
6,005
Posted By alis
script to mail users on comand line
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:

Write a...
1,103
Posted By alis
script to mail user
I am trying to write a script to send a customized mail message to the users listed on the command line by login name only if they are logged in. If no users are listed on the command line an error ...
1,327
Posted By alis
command to change original file
I have a script where I have the command

sed "s/$search_string/$replace_string/g" $backup

However I want a command to correct the original file $backup as well as creating another file with the...
4,998
Posted By alis
Thanks ahamad and agama. I just used the for loop...
Thanks ahamad and agama. I just used the for loop because it was there already and since I am using bash it was giving me an unknown == operator error but I changed that to just = and it worked!...
4,998
Posted By alis
shell script: cannot shift error?
This is an assignment where we were supposed to create a script to get an orginal string and replace it with another. However when I run my script (change-lines), it says

./change-lines: cannot...
9,799
Posted By alis
I see 4..counting a space 5 ..why would you count...
I see 4..counting a space 5 ..why would you count the space..there is no space in the original file after -
Sorry I am a newbie.
9,799
Posted By alis
this works thanks!
this works thanks!
9,799
Posted By alis
This works except that the column with the area...
This works except that the column with the area code is $3 not $2 so when I substituted $2 for $3 - the command works !!
Trying to understand this tho...I know $3=substr means substitution in column...
9,799
Posted By alis
is there a way to do this using sed?
is there a way to do this using sed?
9,799
Posted By alis
sed or awk - removing part of line?
hi all,

I am having trouble finding the right string for this - I dont know whether to use awk or sed..

If I have a file with alot of names and phone numbers like this
McGowan,Sean ...
6,760
Posted By alis
sorry, yes both the ones above work....Since I am...
sorry, yes both the ones above work....Since I am such a big fat NOOB I was using regular quotes instead of backquotes...and I have been trying to get this right since yestaurday ..LOL...and such a...
6,760
Posted By alis
no, none of these work so far. I think it will...
no, none of these work so far. I think it will have to be a combination.
Maybe if i get the username first by whoami and then piped to grep for that username in /etc/passwd...is that possible?
6,760
Posted By alis
grep for password file entry
How would I grep for password file entry without using
grep 'username' /etc/passwd?
perhaps with who?
I want to create alias that will find the password file entry regardless of the user who is...
27,098
Posted By alis
the user password file entry in /etc/passwd looks...
the user password file entry in /etc/passwd looks like
Name : Password : UserID : PrincipleGroup : Gecos : HomeDirectory : Shell
this is the format i am trying to accomplish sp if a user was to...
27,098
Posted By alis
How to grep for password file entry
How would I grep for password file entry without using
grep 'username' /etc/passwd?
perhaps with who?
I want to create alias that will find the password file entry regardless of the user who is...
Showing results 1 to 16 of 16

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