10 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
Hi,
On AIX 7
To search a word I do:
/myword
But to find an exprssion fro example:
"Begin Customization"
How to do?
Thanks. (1 Reply)
Discussion started by: big123456
1 Replies
2. Shell Programming and Scripting
Hi All,
I would like to search a regular expression by passing as an i/p variableto AWK.
For Example ::
162.111.101.209.9516
162.111.101.209.41891
162.111.101.209.9516
162.111.101.209.9517
162.111.101.209.41918
162.111.101.209.9517
162.111.101.209.41937
162.111.101.209.41951... (7 Replies)
Discussion started by: Girish19
7 Replies
3. Shell Programming and Scripting
Hello ,
Could anyone help me to define the string in regular expression way .
Below is my string
\rtf1\ansi\deff0{\fonttbl{\f0\fswiss Helv;}{\f1\fnil MS Sans Serif;}}
{\colortbl ;\red0\green0\blue0;}
\viewkind4\uc1\pard\cf1\lang1033\f0\fs16
The string will always start as \rtf1 and... (6 Replies)
Discussion started by: Pratik4891
6 Replies
4. Shell Programming and Scripting
Hi All,
I have a sftp session log where I am transferring multi files by issuing "mput abc*.dat". The contents of the logfile is below -
#################################################
Connecting to 10.75.112.194...
Changing to: /home/dasd9x/testing1
sftp> mput abc*.dat
Uploading... (7 Replies)
Discussion started by: k_bijitesh
7 Replies
5. Shell Programming and Scripting
Hello,
Awk seem treat the pattern as regular expression, how can awk search not using regular expression? e.g. just represent for "", not "A" or "a" . I don't want to add backslash . (2 Replies)
Discussion started by: 915086731
2 Replies
6. Shell Programming and Scripting
Dear all,
I have a specific problem that I don't quite understand how to solve. I have two files, both of the same format:
XXXXXX_FIND1 bla bla bla
bla
bla
bla
bla
bla
bla
bla
bla
bla
========
(return)
XXXXXX_FIND2 bla bla bla
bla
bla
bla (10 Replies)
Discussion started by: TheTransporter
10 Replies
7. Shell Programming and Scripting
Hi,
I have a file like this
comment.txt
1.img
2.img
3.img
OK
x.img
y.img
z.img
not ok
1.img
2.img
3.img
bad
1.img
2.img
3.img (7 Replies)
Discussion started by: avatar_007
7 Replies
8. Shell Programming and Scripting
Hi ,
I have a file with "|" (pipe) as a delimeter. I am looking for the record count where 5th field is a number with 15 digit length only.
all the records with above requirement is valid rest all are invalid. I need count of valid records and invalid records.
Can anyone please help (9 Replies)
Discussion started by: vikash_k
9 Replies
9. Shell Programming and Scripting
I'm trying to have my perl script telnet into the network device execute a command then dump the output of the command into a variable. The script then greps for the word "STANDBY". I can't seem to get the script to print out the output because it seems that the script can't find the word... (1 Reply)
Discussion started by: xmaverick
1 Replies
10. Shell Programming and Scripting
I have a file (file1) with around 5000 records and another file (file2) with 50000 records.
I want to search each word in file 1 from file 2 and spew the output of the matches in file3.
Can someone please help me here.
I tried doing this in ksh
for i in `cat file1`
do
grep -w $i... (15 Replies)
Discussion started by: knijjar
15 Replies