10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
This is the command output need to be matched:
Telnet console listening to port 42365.
(the port number changes every time)
Code to test it:
=======================================
#!/tools/AGRtools/bin/expect
exp_internal 1
set timeout 10
spawn bash
set bashId $spawn_id
... (4 Replies)
Discussion started by: marsala
4 Replies
2. Shell Programming and Scripting
Hi
Can somebody please show me how to check from within a KSH script if a directory exists on that same host when parts of the directory tree are unknown?
If these wildcard dirs were the only dirs at that level then ...
RETCODE=$(ls -l /u01/app/oracle/local/*/* | grep target_dir) ... will... (4 Replies)
Discussion started by: user052009
4 Replies
3. Shell Programming and Scripting
HI Unix Forum,
My requirement
I have two set of Patterns UBA and CIE for which different Phases are there which will have Start and End time. They are not in same order.
I want the o/p in the below mentioned format.
Eg: Mangolia Alien 03:04:56 Phase 0 started (10... (5 Replies)
Discussion started by: TechGyaann
5 Replies
4. Shell Programming and Scripting
Hi experts,
I am new to perl.
I am trying to get the last file from set of files.
Using the below code; but getting error
pls help
Files:
-rw-r--r-- 1 abc abc 12584 Mar 18 16:22 /abc/def/ghi/xyz.HOSTNAME.2016.03.18.16.21.69709-6
-rw-r--r-- 1 abc abc 12623 Mar 18 16:25... (4 Replies)
Discussion started by: sdosanjh
4 Replies
5. UNIX for Dummies Questions & Answers
Hi, I have two files A and B.
file_Agga-mir-181b-1
gga-mir-181b-2
gga-mir-199-1
gga-mir-203
gga-mir-204-1
gga-mir-205a
gga-mir-206
gga-mir-214
gga-mir-218-1
gga-mir-365-2
gga-mir-454
gga-mir-551
gga-mir-1464
gga-mir-1465
gga-mir-1466
gga-mir-1553
gga-mir-15c
gga-mir-16c... (1 Reply)
Discussion started by: yuejian
1 Replies
6. Shell Programming and Scripting
Running solaris 9, on issuing the follwing command
df -h | awk '$5 > 45 {print}'
Filesystems with utilisation > 45% are being displayed as well as those between
5 and-9%!!! (3 Replies)
Discussion started by: squrcles
3 Replies
7. Shell Programming and Scripting
Hi
I need a unix command which generates the list of files that dont match the wild card pattern in the current directory
say for example
I have files like
x.addfd.txt.H2012.txt
x.addfd.txt.H2012.txt
x.asegfd.txt.H2012.txt
adfd.bagddf
I need the list of files which dont match... (4 Replies)
Discussion started by: lijjumathew
4 Replies
8. UNIX for Dummies Questions & Answers
Im trying to use wild cards to find files that start with either an upper or lower case letter e.g. list files that beginning with b or B, i also want to sort them by the time they were last modified. e.g latest file created first.
At the moment i have the following code that
ls -d... (3 Replies)
Discussion started by: parker4001
3 Replies
9. Programming
Hi I'm making a poker game program and I need to deal 5 hands of cards(each hand has 5 cards each) in the program, each hand needs to contain different cards and we need to then display the number of pairs in each hands. I'm currently stuck in the dealing part.
This is what I have so far for... (1 Reply)
Discussion started by: Izzy123
1 Replies
10. Shell Programming and Scripting
how do you put a space in a wild card thing..
example
"LastAnalysisT.*${MONTH}.*${DAY}.*20${YEAR}"
I need to make it something like
"LastAnalysisT.*${MONTH}<I need a space here>.*${DAY}.*20${YEAR}"
So it would be something like:
LastAnalyst*May 24*2004
Where * just means I dont... (1 Reply)
Discussion started by: LordJezo
1 Replies