Solaris 11 install freeze
Hi, I tried to boot the Solaris 11 install DVD the other day and I can't get past the "SunOS" text banner on the clear/newscreen. It just hangs with a solid block cursor. I have a new computer and that...
View ArticleSQLPlus Case statement on a substring
Hi, I have an SQL query that returns a substring of a field and I want to work a case statement on it, but either I get a syntax error or in it's current manifestation the case is ignored all together....
View Articlesamba read write access to owner and no access to other users
Hi All, I want to configure samba share permission so that only directory creator/owner has a read and write permission and other users should not have any read/write access to that folder.Will that be...
View ArticleInterpreting arguments in Perl program.
Hello. I'm new to Perl and I am not sure how to interpret command line arguments in the program. I am writing a program similar to the Unix utility 'tail' and need to check if first argument is '-1'...
View ArticleEditing a file and saving it
HI I have a file samp1.xml which has the following content <ErrorMessage><ExceptionNumber>5117</ExceptionNumber><OriginalMessage><![CDATA[<?xml version="1.0"...
View Articleerror in if condition
Hi All, I need to compare the header of the input files which can be comma demilited, tild(~) or Pipr(|) seperated file. I am comparing the file header by taking 1st row and comparing it with input...
View ArticleMerging multiple files from multiple columns
Hi guys, I have very basic linux experience so I need some help with a problem. I have 3 files from which I want to extract columns based on common fields between them. File1: --- rs74078040 NA...
View ArticleUsing OR (-o) in while loop... HELP
Need to ask user question and get user to input YES or NO otherwise loop. Below is my code but its not working. Please help, I'm using bash shell. echo "How about some YES or NO questions --- Are you...
View ArticleRead from a file in unix(Continue from previous thread)
Hi This is continuation of previos thread [test] status=running username=abc password=123456 server=linux The script was made which is used to capture the data from file ./scr test status It will give...
View Articlehow to ring the system bell many times without pause
I am writing a ksh script in cygwin though it could just as easily be bash and am trying to make an alert for myself where the bell rings many times like Code: print '\a' or Code: echo '^G' except I...
View ArticleScript to search and replace
Hi All, I am trying to write a script which will find a particular text in certain group of files under a directory and if found correctly it will replace them with a new text in all the files. Could...
View ArticleProblem with writing to output - awk, echo
Hello all, I wrote this command line for some calculation on my given input files based on another input file which is a txt file. Code: while read BAM REGION; do samtools view $BAM $REGION | awk '{if...
View ArticleProblem running awk script in Debian 6.0.2
Hello to all, May be some expert could help me. I have the below awk script that works correctly in Cygwin: Code: awk -F\" 'FNR==NR && FNR>1 {gsub(",","",$5); N[$2]=$5;next} $10 in N...
View ArticleHOW TO - Bash REGEX - Print Error when More then One Occurence is Found...
Hello All, Bash Version: 4.1.10(1) I'm trying to "verify" some user input. The User input will contain the "Absolute Path" a "Command" and any "Options" of that Command. For Example, say the user's...
View ArticleSnapshot backup
Hi all: I'm trying to do the following: 1) Each monday (for every week or bi-weekly) I'll perform a full backup of my 2 Tb RAID 1 system to an external eSATA 2 Tb HDD. I'll move this HDD to a different...
View ArticleCompare two files and print list
Hi Gents, I have 2 files as seen below. File 1: Code: 9 1020 10 1001 11 1001 12 1002 13 1003 14 1004 15 1004 File 2: Code: 9 1000 11 1001 12 1002 13 1003 15 1004 I would like to the...
View ArticleFile splitter
I have below script which does splitting based on a different criteria. can it be amended to produce required result Code: SrcFileName=XML_DUMP awk '/<\?xml version="1\.0"...
View Articlesetfmac
Hi Guys! I'm trying to change the MAC label of file secret command structure Code: setfmac mls/low secret but i get the message Quote: setfmac: traversing confidential: permission denied user's mac...
View ArticleGetting mail with no Attachment
Hi All, my requirement send a mail with attachment a abc.txt file. below is the shell script. Code: #!/usr/bin/ksh set -x #DIR=/appldata/download/mail MAILTO="krupa.behera@kk.com" SUBJECT="Report"...
View ArticleRecord length
Hi, The record length may be differ in afile. I want to display the records if the record length is not equal to 50 using sed/awk command. Thanks in Advance
View Article