Search Results

Search: Posts Made By: edujs7
9,198
Posted By MadeInGermany
First please show your attempt(s)! Also please...
First please show your attempt(s)!
Also please include the school/course information with every new thread.
11,107
Posted By RudiC
If you forgo the required error message, this...
If you forgo the required error message, this could work for you:
echo "$1's home directory is $(grep $1 /etc/passwd | cut -d: -f6)"
To produce the error checking and message, a serious detour...
11,107
Posted By RavinderSingh13
Hello edujs7, IMHO you should open 1 thread...
Hello edujs7,

IMHO you should open 1 thread for each question, else people who are seeing this thread in future could be confused. So I am answering very first question of yours. Could you please...
12,100
Posted By RavinderSingh13
Hello edujs7, In case you want to have only...
Hello edujs7,

In case you want to have only variable names then try following.

env | awk 'BEGIN{FS="="} $1 ~ /.*(NAME$|DIR$|PATH$)/{print $1}'


Thanks,
R. Singh
12,100
Posted By RavinderSingh13
Hello edujs7, Could you please try...
Hello edujs7,

Could you please try following.


env | awk 'BEGIN{FS="="} $1 ~ /.*(NAME$|DIR$|PATH$)/'


Thanks,
R. Singh
1,675
Posted By Neo
Kindly do not post classroom or homework type of...
Kindly do not post classroom or homework type of problems in the main forums.

Homework and coursework-related questions should only be posted in this forum...
Showing results 1 to 6 of 6

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