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. UNIX for Beginners Questions & Answers
I have a file with a list of references towards the end and want to apply a grep for some string.
text ....
@unnumbered References
@sp 1
@paragraphindent 0
2017. @strong{Chalenski, D.A.}; Wang, K.; Tatanova, Maria; Lopez,
Jorge L.; Hatchell, P.; Dutta, P.; @strong{Small airgun... (1 Reply)
Discussion started by: kristinu
1 Replies
3. Shell Programming and Scripting
we want to fetch the latest file in a given directory and also the file name should match the below pattern
Example file name ->hrdata-2015-10-13-16-45-26.xml(2015-10-13-16-45-26- it is not current timestamp, we just need to check for the pattern)
We expect the file will have the... (3 Replies)
Discussion started by: vishwanath001
3 Replies
4. Shell Programming and Scripting
Hi,
I have a log file that looks like this
"delete" : {
"_type" : "cl",
"_id" : "1000600000000562636",
"_version" : 1,
"status" : 200,
"found" : false
}
}, {
"delete" : {
"_type" : "cl",
"_id" : "1000600000000562643",
... (4 Replies)
Discussion started by: wahi80
4 Replies
5. UNIX for Dummies Questions & Answers
Hi all!
Thanks for taking the time to view this!
I want to grep out all lines of a file that starts with pattern 1 but also does not match with the second pattern.
Example:
Drink a soda
Eat a banana
Eat multiple bananas
Drink an apple juice
Eat an apple
Eat multiple apples
I... (8 Replies)
Discussion started by: demmel
8 Replies
6. UNIX for Dummies Questions & Answers
Hi,
I have a file f1 wi the following data
f1.txt
========
Report ID
Report Name
-----------------------------------------------------------------
Post Requests : 2 Post successes : 2
=============================================
I need to search for the... (2 Replies)
Discussion started by: RP09
2 Replies
7. UNIX for Dummies Questions & Answers
Hi gurus,
A file contains many words in format "ABC.XXXX.XXXX.X.GET.LOG" (X->varying). Now my shell script want this list (only words in formatABC.XXXX.XXXX.X.GET.LOG ) to continue the process. Pls help me.
Thanks,
Poova. (8 Replies)
Discussion started by: poova
8 Replies
8. AIX
Hi all,
I have two instance of jboss (jboss and jboss2). In a shell script that I am writing, I need to grep for each instance of jboss.
If i use ps -ef|grep 'jboss', it will also return the process for my second instance of jboss, which is jboss2. Can someone tell me how can i specify the... (1 Reply)
Discussion started by: haroon_a
1 Replies
9. Shell Programming and Scripting
Hi,
I wish to use a column, as inputted by a user from command line, for pattern matching.
awk file:
{
if($1 ~ /^8/)
{
print $0> "temp2.csv"
}
}
something like this, but i want '$1' to be any column as selected by the user from command line.
... (1 Reply)
Discussion started by: invinclible0009
1 Replies
10. Shell Programming and Scripting
I originally had a shell script that did a grep 10 times to pull out the number of times a certain pattern occured in a file: ie...
aOccurances=`grep aPattern file|wc -l`
bOccurances=`grep bPattern file|wc -l`
...
...
...
fOccurances=`grep fPattern file|wc -l`
As the file got bigger with... (0 Replies)
Discussion started by: junkmail426
0 Replies