File Space Count
Hi I have a volume that i want to run a daily check on to find out disk usage, and email me the results. I have got as far as checking the size and email status. But cant seem to get the file size...
View ArticleCan some one correct this script
Hi, I tried writing a script and there was a problem with SFTP part can some one correct where is is the mistake Enveronment file Code: #!/bin/bash export HOST_NAME=<> export USER_NAME=<>...
View ArticleBash - sed - Remove first word from line which can begin eventually with blank
hello. How to remove first word from line. The line may or may not start with blank. Code: NEW_PARAM1=$(magic-command " -t --protocol=TCP -P 12345-u root -h localhost ") NEW_PARAM2=$(magic-command...
View ArticleHelp with printing advance output format from a file
Hi, below 'awk' code was given for my thread 'Help with printing output format from a file ' earlier, however script is not resulting expected output with below file content. Code: cat test_tes123.dml...
View ArticleTake backup of scripts listed in crontab
Hi, I'm trying to take backups of script files listed in cron tab but,my cron entry has value like this Code: 10 3 * * * /usr/sbin/logadm 15 3 * * 0 /usr/lib/fs/nfs/nfsfind 30 3 * * * [ -x...
View ArticlePassing resulted string name of a gzipped file as an argument to another...
Hi, I have a .pcap.gz file and I would like to initially gzip it and then pass the resulting .pcap filename as an argument to a piped tool; the right-hand tool is not standardized linux tool but a...
View ArticleAverage within reps reformat according to second file
Please help me in the following, I have a matrix file Code: S2 S1 S3 S4 S5 G1 11 12 13 14 15 G2 21 22 23 24 25 G3 31 32 33 34 35 G4 41 42 43 44 45 a datafile Code: Sample Loc Rep T1 T2 T3 RC1 RC2 RC3...
View ArticleHP 9000 340 help
Hi all, I've salveaged a fully working HP 9000 340 model with hard disk and floppy drive. It boots up and I get to the login screen. I don't have any usernames or passwords. Anyone know any hacks for...
View ArticleRepeated lines-case sensitive
Hi, users file contains below names i have a requirement to keep only one case sensitive user. For e.g if user name is "aaa" then only aaa should be there in the file and other matching users(AAA,aaA)...
View ArticleInstallation of Certificates failing
Hi All, I have a few certificates that I need to install on my Apache server. The files are in /opt/keys/: Code: [root@optimus keys]# ls -ltrh total 36K -rw-r--r--. 1 root root 1.8K Apr 20 18:29...
View ArticleSPARC M10 - Install Solaris 10
Hi, This machine does not have CDROM/DVDROM. I try to boot using external usb. Issue command: Code: show-disks does not show any external cdrom. How to install OS? Is it can be install using usb...
View ArticleHow to get all the files inside a folder then put the value in a variable?
Hi here is my code Code: for i in `ls *.cmd` do msg aaa imp -U$AAAUSER -P$AAAUSERPWD <$i>>$curdir/import_tap.out -Jutf8 done I can only get all files with .cmd extension. what...
View ArticleUNIX to Linux Migration
We have certain number of scripts that run on AIX server using ksh. Now that we migrate these scripts to Linux servers. We need to know what are the changes that we have to perform in script to make it...
View ArticleSort by first row - awk
how can i sort the table based on first row? thanks in advance input Code: name d b c a l l1 l2 l3 l4 l1 1 2 3 4 l2 2 2 2 1...
View ArticleNeed help on ARJ extraction in IBM AIX Machine
Hi, We have the requirement that, needs to extract the *.arj (archive) files in IBM AIX platform. Anyone can guide me to how to extract the files using ARJ or any other zip technique. Regards, Deepak.
View ArticleComparing wc outputs using array
Hi All, Im trying to compare the Code: wc -l output with another set of rowcount outputs which returned from sql... For Eg : Im storing the first outputs as below Code: <srccnt=`wc -l $HOME/*.csv |...
View ArticleMaxdepth option of find command not working
Can you please figure out what is the issue here Code: $ find . -maxdepth 1 -type f -size 0 -print find: bad option -maxdepth please find the OS details Code: $ uname -a HP-UX g5u1216 B.11.31 U ia64...
View ArticleRemoving special chars from file and maintain field separator
Running SunOs 5.6. Solaris. I've been able to remove all special characters from a fixed length file which appear in the first column but as a result all subsequent columns have shifted to the left by...
View ArticleNot writing output
In the attached bash in the convert function the out_position.txt in not being writing to the annovar directory and I can not figure out why. Thank you :). Attached Files bashparse.sh (12.5 KB)
View Articleawk script to match and print
I need a script that will search for a string from column 1 in file A and when the string matches the last column in file B, print columns 1, 2 (file A) and columns 2, 3 (file B). input file A Code:...
View Article