9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hello,
I've got a list of a single column numbers like
3000.66
3002.55
3062.23
3242.12
etc...
I would like to delete all numbers higher than for example 3060.00 and lower
than 2990.00
How can I do that?
Thanks in advance (2 Replies)
Discussion started by: Board27
2 Replies
2. AIX
Hello!
We have an AIX box (6.3), we are looking for a way to get list of logged in users and their IP. The issue we have is running who -ub shows hostname and we are wanting to get the ip. Any suggestions of ideas? Thanks in advance for any help! (4 Replies)
Discussion started by: entropy1980
4 Replies
3. Shell Programming and Scripting
Hello again gentlemen.
I would like to make a shell script to 'optimize' a plain text full of IPs.
Let's suppose to have this text file:
1.192.63.253-1.192.63.253
1.0.234.46/32
1.1.128.0/17
1.116.0.0/14
1.177.1.157-1.177.1.157
1.23.22.19
1.192.61.0-1.192.61.99
8.6.6.6
I want to... (2 Replies)
Discussion started by: accolito
2 Replies
4. Shell Programming and Scripting
Hi Everyone,
I typed a command:
awk '{ print $1}' $LOGFILE | sort | uniq -c | sort -nr > $DEST/a.txt
And I got file a.txt which show
6 1.1.1.1
3 2.2.2.2
2 3.3.3.3
1 4.4.4.4
Just now, I want to get exact ips which has first column > 5 to a file b.txt. In this situation, the... (5 Replies)
Discussion started by: testcase
5 Replies
5. Shell Programming and Scripting
Hello all,
I'm trying to copy all files within a specified directory to another location based on a find filter of mtime -1 (Solaris OS). The issue that I'm having is that in the destination directory, I want to retain the source directory structure while copying over only the files that have... (4 Replies)
Discussion started by: hunter55
4 Replies
6. Shell Programming and Scripting
Hi,
I have a very big directory structure that consists of many sub-directories inside.There are around 50 ".gz" files under this dir structure.
I want to copy all the gz files alone to a seperate location.
Plz help me. (2 Replies)
Discussion started by: villain41
2 Replies
7. Shell Programming and Scripting
I am trying to feed a list of IP's to do lookups from a database. My script works only for the first IP but all subsequent IPs output as 'unknown'.
#!/usr/bin/php -q
<?
$ip = file('ip.txt');
foreach ($ip as $ip_num => $ip) {
echo $ip;
$out=sprintf("%u", ip2long($ip));
... (1 Reply)
Discussion started by: hazno
1 Replies
8. Shell Programming and Scripting
HI,
Can any tell me how to filter the list of files greater than the size specified by user. The size should be provided by user as an input.
Regards
shiva (6 Replies)
Discussion started by: shivu
6 Replies
9. AIX
Hi,
I need to login to a remote server.
Go to a particular path.
Get the lists of files on that path.There may be n number of files.
I need to delete only those files from above created list which are 7 days older.
I have achieved above using ftp protocol, but now the constraint has... (0 Replies)
Discussion started by: mail_amitnagpal
0 Replies