10 More Discussions You Might Find Interesting
1. Programming
Newbie question. I created a class:
class WP(seleniumrequests.PhantomJS):
def __init__(self, wpurl='https://blah.org/download/release-archive/', bwppurl='https://blah.org/plugins/browse/popular/'):
self.wp=wpurl
... (5 Replies)
Discussion started by: metallica1973
5 Replies
2. Shell Programming and Scripting
I need help with a tcl code. I have a variable "myIP" which reads IP address from socket. How do I use regex to find out if it belongs to a group for e.g., 50.65.75.240/28 or 50.65.75.128/25 etc. (2 Replies)
Discussion started by: ampak
2 Replies
3. Shell Programming and Scripting
Hi,
i want to replace
"Hi How
are You when
did you go to
delhi"
to
"Hi How
are you when
did you come from
delhi"
in a file.
Any idea how to do it? (2 Replies)
Discussion started by: abhitanshu
2 Replies
4. UNIX for Dummies Questions & Answers
Hi,
I want to write a script that does something like this:
I have a file, in which in every line, there is a string of words, and followed by some space, a number.
Now, I want to identify the line, which has the largest startFace number (say m=8118), take that number and add it to the... (2 Replies)
Discussion started by: super_commando
2 Replies
5. Shell Programming and Scripting
Hi guys,
I will need some help with a to automate a challenge/response sequence when I try to SCP files from a server to another.
The scenario is like this :
After selecting in a script the option to send files via scp (case switch):
I get this output from linux term:
The... (4 Replies)
Discussion started by: REX:)
4 Replies
6. Shell Programming and Scripting
Currently I am outputting users and I want to number them starting with 1...
grep name list.txt | awk -F"=" '{ print $2 }' | while read user; do
echo -e "1\t|$user"
Currently I have:
1 | john
1 | amy
1 | max
I want it to look like
1 | john
2 | amy
3 | max (2 Replies)
Discussion started by: etranman1
2 Replies
7. Shell Programming and Scripting
Hi,
I am trying to locate the occurences of certain pattern like 'Possible network disconnect' in a text file. I can get the actual lines matching the pttern using:
grep -w 'Possible network disconnect' file_name.
But I am more interested in getting the timing of these events which are... (7 Replies)
Discussion started by: sagarparadkar
7 Replies
8. Shell Programming and Scripting
I am trying to search a file for a value: "Top 30 reject reasons" and want the next 30 lines after that and output in a text file.
If I knew the line number, I can use a combination of head and tail commands to get my results, but this doesn't seem to work when I don't have a line number.
I... (2 Replies)
Discussion started by: oriqin
2 Replies
9. Shell Programming and Scripting
Hi
I have some files that contain be anything up to 100k lines - eg. file100k
I have another file called file5k and I need to produce filec which will contain everything in file100k minus what matches in file 5k..
ie.
File100k contains
1FP
2FP
3FP
File5k contains
2FP
I would... (2 Replies)
Discussion started by: frustrated1
2 Replies
10. UNIX for Dummies Questions & Answers
I've searched the man page for an option for the ls command to print the number of files in a directory. I'm moving files and folders around and thought a count of files would be a quick way to determine if I was missed one somewhere. Some "unix's" shells do this I think... maybe linux...
... (4 Replies)
Discussion started by: jimmyc
4 Replies