Search Results

Search: Posts Made By: edujs7
8,726
Posted By edujs7
Help needed - Script1
Write a script called big which takes a filepath as an argument. The script
should print "Big" if the file is more than 1000 bytes or "Small" if the file
is less than 1000 bytes. If exactly one...
10,108
Posted By edujs7
Many thanks for your help RavinderSingh13 and as...
Many thanks for your help RavinderSingh13 and as per your suggestion I did edit the post and will create other threads for the other questions.
10,108
Posted By edujs7
Help needed - Script
Hi guys,

Hoping someone can help me with the below.

- Write a script called 'home.sh' which takes a username as its argument and
will print out the home directory of that user as follows:

...
11,286
Posted By edujs7
Thanks so much - that worked :) Sorry to be...
Thanks so much - that worked :)

Sorry to be a pain but would you please be able to explain what the actual command does :D - and wouldn't egrep work for this?
11,286
Posted By edujs7
This gives me the below; seems to be only picking...
This gives me the below; seems to be only picking up "PATH=" and nothing else.



$ env | egrep '^(NAME|DIR|PATH)='
...
11,286
Posted By edujs7
Help needed - UNIX command
The 'env' command prints out all of the environment variables and their values.
Come up with a command that prints a list of environment variables whose names
end with either 'NAME', 'DIR' or...
1,437
Posted By edujs7
UNIX commands and scripts
Hi guys,

Hoping someone can help with the below - involves basic commands and some scripting. Thanks so much in advance for your amazing time and help.

3. The file /etc/profile contains the...
Showing results 1 to 7 of 7

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