Search Results

Search: Posts Made By: dmwaff
4,417
Posted By dmwaff
ls *.hdf |tee -a test.txt -a option...
ls *.hdf |tee -a test.txt

-a option "append"
6,036
Posted By dmwaff
If you use LDAP then the /etc/nsswitch.conf...
If you use LDAP then the /etc/nsswitch.conf should reflect that first for the passwd line and the /etc/passwd file should not contain local entries except for root or other locally required accounts...
2,291
Posted By dmwaff
I use to work for Veritas, now Symantec, Solaris...
I use to work for Veritas, now Symantec, Solaris is much more marketable and has a wide spread install base. Linux distributions have there own Logical Volume Manager, LVM. Some vendors did OEM...
6,439
Posted By dmwaff
man top, you should see a -b option or something...
man top, you should see a -b option or something to make it non-interactive, also research the "sar" command.
4,607
Posted By dmwaff
If you are not tied to awk. Sed works on...
If you are not tied to awk. Sed works on removing leading and trailing whitespace.

awk '{print $0 }' inputFile |sed -e 's/^ //g' -e 's/ $//g'
or
sed -e 's/^ //g' -e 's/ $//g' inputFile
2,387
Posted By dmwaff
Check your shell
#!/usr/bin/tcsh
V= `cat /user/amit/bldno`
echo $V
`rm -rf /user/amit/bldno`
NV = expr $V + 1
echo $NV > /user/amit/bldno

You have the wrong shell, tcsh, syntax. Your syntax is Bourne (sh)...
2,327
Posted By dmwaff
This reads like a homework assignment!
You should be able to find the answer in the "Honor Code" agreement you signed or that is readable in the student handbook.
17,237
Posted By dmwaff
All you really need to know
1. nohup command = Don't send a Hang Up Signal to the process if shell exits
2. If you don't redirect output it attempts to create a nohup.out log file in your present working directory which maybe...
6,778
Posted By dmwaff
PATH1=/A/B/C/D/XXX/E/F/G PATH2=/A/B/C/XXX/E ...
PATH1=/A/B/C/D/XXX/E/F/G
PATH2=/A/B/C/XXX/E

# Chop everything from /XXX/ to end
VAR1=$(echo "${PATH1%%/XXX/*}")
VAR2=$(echo "${PATH2%%/XXX/*}")

# Chop leading path, similar to `basename`...
6,960
Posted By dmwaff
I may have read the posting incorrectly, but if...
I may have read the posting incorrectly, but if you are attempting to exclude the the backup and/or print subdirectory and operate only on the the rest of the home, then:

find /local/home/username...
6,778
Posted By dmwaff
YOUR MAKING IT TOO HARD. Use Korn/Bash built-in...
YOUR MAKING IT TOO HARD. Use Korn/Bash built-in variable operators.
##
#EXPRESSION RESULT
#/home/david/waffen/long.file.name
#${path%%.*} /home/david/waffen/long...
7,455
Posted By dmwaff
Best way is to have a MD5 Checksum file accompany...
Best way is to have a MD5 Checksum file accompany the source file. Download both the source file and checksum file, then run "md5sum" against the downloaded file and compare with the cksum from...
30,415
Posted By dmwaff
Differences are format output, content, and...
Differences are format output, content, and order. The -R and -a option to ls will list all (-a) files recursively (-R) down the directory tree. The find command does the recursive automatically...
2,079
Posted By dmwaff
Definitely a typo. I am not exactly sure how...
Definitely a typo. I am not exactly sure how /usr/sbin/cron daemon will handle that. It may ingnore or puke an error message and attempt to mail to the cron owner. Check /var/cron/log file too.
...
7,868
Posted By dmwaff
It is after the fact, but in the future you can...
It is after the fact, but in the future you can attempt a recover by forcing the editor to preserve your buffer. You will find this useful if you have made edits, then discover that you can't save...
Showing results 1 to 15 of 15

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