Search Results

Search: Posts Made By: newoz
1,896
Posted By mirni
Don't get too distracted with the here-document...
Don't get too distracted with the here-document construct. It is the same as if you saved it into a file, and then fed the file into a while loop via < operator:
while [] ; do
...
done < file...
1,896
Posted By elixir_sinari
As others mentioned, read reads lines from...
As others mentioned, read reads lines from standard input. In this case, standard input is coming from the here-document. Hence, read will always read from the here-doc. read will wait for the input...
1,896
Posted By guruprasadpr
Hi It behaves like that becuause there is...
Hi


It behaves like that becuause there is no condition which will make the read statement to stop reading. Even after the here document is complete, read tries to read from the stdin, does not...
4,112
Posted By mayursingru
Hi, check this out. How to keep a...
Hi,
check this out.
How to keep a detailed audit trail of what’s being done on your Linux systems (http://www.cyberciti.biz/tips/howto-log-user-activity-using-process-accounting.html)

Find...
1,999
Posted By Scott
Normally, pressing Control-v (escape, then...
Normally, pressing Control-v (escape, then Control-v in VI mode) from the command line should show you the version.

In Solaris 10, it may be something like:


Version M-11/16/88i
1,999
Posted By Chubler_XL
If you have ksh93 this will work: ...
If you have ksh93 this will work:


txt="abc001|abc002|abc004"
case "$1" in
$txt) ;;
*) echo "Your input is wrong, please run the script by $0 [$txt]"
exit ;;
esac

If not,...
3,161
Posted By Chubler_XL
Example cron config # On the 1st of the...
Example cron config

# On the 1st of the month at 8am notify Task 2 jobs
0 8 1 * * /usr/local/bin/mynotify 2

# On the 1st and 15th of the month at 7:30am Task 1 jobs
30 7 1,15 * *...
Showing results 1 to 7 of 7

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