Search Results

Search: Posts Made By: edujs7
9,041
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.
10,744
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...
10,744
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...
11,817
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
11,817
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,572
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 11:01 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy