10 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
Hi All,
unable to fetch the bios configuration information and service provider information in centos 5 using dmidecode command.
ServiceProvider=`dmidecode -s system-product-name |awk '{print $1}'`
BIOS_Configuration=`dmidecode | grep "BIOS Information" -A10 | grep -e... (4 Replies)
Discussion started by: sravani25
4 Replies
2. Shell Programming and Scripting
I m not able to redirect the java version to a file however, it shows as output when I run my script.
bash-3.2$ more 1test.tmp
java_version=`which java`
echo "MY JAVA:"$java_version
version=`"$java_version" -version`
echo $version >>/tmp/moht/java_version.log
$java_version -version 2... (4 Replies)
Discussion started by: mohtashims
4 Replies
3. Shell Programming and Scripting
Hi,
Please help to fetch the values for a key from below data format in linux.
Sample Input Data Format
11055005|PurchaseCondition|GiftQuantity|1
11055005|PurchaseCondition|MinimumPurchase|400
11055005|GiftCatalogEntryIdentifier|Id|207328014
11429510|PurchaseCondition|GiftQuantity|1... (2 Replies)
Discussion started by: mohanalakshmi
2 Replies
4. Shell Programming and Scripting
Hello Experts
I have a requirement wherein I need to fetch multiple data from huge dump
egrep -f Pattern.txt Dump.txt
My pattern file has got like 300 entries and Dump file is like 8GB data.
It taking eternity to complete on my machine.
Is their a faster way to search pattern like using... (5 Replies)
Discussion started by: navkanwal
5 Replies
5. UNIX for Advanced & Expert Users
I am having a file called variable_info.ksh in that file I am having following global variable information like…
EMAIL_PATH=/var/mail
TMP_PATH=/home/tmp
And we are having another temporary parameter file abcd.txt, in that file we are having the following information like…
EMAIL|EMAI_PATH
I... (4 Replies)
Discussion started by: mesahammad
4 Replies
6. UNIX for Dummies Questions & Answers
I m executing ps command and sorting it according to memory usage.
Please find the output of the command.
# ps aux --sort pmem
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
root 1 0.0 0.0 2060 624 ? Ss 01:54 0:00 init
root 2 0.0... (1 Reply)
Discussion started by: pinga123
1 Replies
7. Shell Programming and Scripting
Hi,
I would want to fetch all the numbers after a word the number of characters could very. how can I do that?
below is the example of the data and the expected output
sample data
03 xxxx occurs 1090 times.
04 aslkja occurs 10 times.
I would want to fetch 10 & 1090 separately. (13 Replies)
Discussion started by: ahmedwaseem2000
13 Replies
8. Shell Programming and Scripting
All,
I have to have my script wait for another script when it is being executed. I used fuser -f scriptname to get the PID of the script but when passed the PID to wait command, the command does not accept it as a PID.
Below is the example:
my.script1:
fuser_result=`fuser -f my.script2`... (4 Replies)
Discussion started by: bharath.gct
4 Replies
9. Shell Programming and Scripting
Input File:
CPU minf mjf xcal intr ithr csw icsw migr smtx srw syscl usr sys wt idl
0 37 0 594 2205 1174 123 8 6 36 0 1954 6 8 0 86
1 1 0 49 26 0 44 3 2 6 0 624 2 1 0 97
2 0 0 5 5 0 8 1 0 1 ... (3 Replies)
Discussion started by: bhallarandeep
3 Replies
10. Shell Programming and Scripting
I have a script on Linux that is using sfdisk to partition a usb drive.
I'm trying to redirectory the standard out and standard error which works, however, there is still messages being diplayed.
I guess it's kernel messages?
Is there a way to redirect this output?
Thanks (5 Replies)
Discussion started by: lochraven
5 Replies