10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
Hello All i have a KSH script which basically takes attribute name as input argument and searches whole Netezza appliance and prints information of where that column is used (Table/Views) etc.
Problem with this approach business users have to raise SUDO access request, Install Putty, run through... (1 Reply)
Discussion started by: Ariean
1 Replies
2. Shell Programming and Scripting
Greetings all,
I have an XML file that is being generated from my application, here is a sample of the first tag (That I am trying to remove and display in a list..)
Example-
<tag one= "data" data="1234" updateTime="1300">
<tag one= "data1" data="1234" updateTime="1300">
<tag... (5 Replies)
Discussion started by: jeffs42885
5 Replies
3. Shell Programming and Scripting
Hi,
I got the code below is one of the threads from this forum.
lineCount=$(iostat | wc -l)
numDevices=$(expr $lineCount - 7);
iostat $interval -x -t |
awk -v awkCpuFile=$cpuFile -v awkDeviceFile=$deviceFile -v awkNumDevices=$numDevices '
BEGIN {
print... (2 Replies)
Discussion started by: gopivallabha
2 Replies
4. Shell Programming and Scripting
I am trying using awk to open an input file and check a column 2/field $2 and if there is a warning then that is displayed (variantchecker): G not found at position 459, found A instead. The attached Sample1.txt is that file. If in that column/field there is a black space, then the text after... (6 Replies)
Discussion started by: cmccabe
6 Replies
5. Shell Programming and Scripting
Output of the below code includes unmatched date.Please correct it
df -k|awk '$4>50 {print $1, "\t"$4,"\t" $7}'
It gives output less than 50% also. (5 Replies)
Discussion started by: vinil
5 Replies
6. Shell Programming and Scripting
Hi.. I am in help of displaying this specific case. I have multiple files where i have to display accordingly.
Input file
##INFO1
##INFO2
##INFO3
#CHROM POS INFO 57.sorted.bam 58.sorted.bam 59.sorted.bam 34.sorted.bam 55.sorted.bam... (12 Replies)
Discussion started by: empyrean
12 Replies
7. Shell Programming and Scripting
Hi all,
Is it possible to create an script that parse an snoop output similar to the example above ? Each line is ended by "$" (set list in vi). as a result, I would like to print the output in only one line.
can someone give me some tip ?
Thanks a lot .:)
l version="1.0" ... (5 Replies)
Discussion started by: robdcb
5 Replies
8. Shell Programming and Scripting
Hi!
I'm trying to create a shell script to parse a file which might have multiple lines matching a pattern (i.e. containing some word).
I need to return all lines matching the pattern, but stripping the contents of that line until the pattern is matched
For example, if my input file was
... (4 Replies)
Discussion started by: orno
4 Replies
9. Shell Programming and Scripting
Hi,
How do I parse/split lines (strings) read from a file and display the individual tokens in a shell script? Given that the length of individual lines is not constant and number of tokens in each line is also not constant.
The input file could be as below:
... (3 Replies)
Discussion started by: yajaykumar
3 Replies
10. Shell Programming and Scripting
I have a perl process I want to run in background in a cgi, but do not
want to continue until process finished code looks like this.
sub calc(){
do calculations
return value
}
In another Perl program I call above function such as
&calc();
I want to continue after process... (4 Replies)
Discussion started by: photon
4 Replies