Using jquery i'm creating searchboxes that pull data from a MYSQL DB. How can I add tooltips into this:
var impact_header_text = $("<div>Impact (EX: Panic)</div>"); <-- display header
var impact_search_box = $('<input>') <--actual searchbox...
I have a function that gets the number of submitted tickets for each user. How do I make this get the top five submitters (and their respective ticket totals) and lump the rest of the count into "other." This data is being pulled from a database. thanks!
var user_burt_count = [];
for ( var...
I have a file containing about 30,000 characters on 3-4 lines. I need to extract the text between two tags <TAG1> and <TAG2>. I've tried a couple things but nothing yields the results i'm looking for. Below is an example of the text and the last code snippet I tried.
Text Example...
Hi Folks,
I'm trying to figure out a way to generate large numbers of NFS getattr calls. I first tried using a simple ls -laR script, but that primarily generated access calls. Does anyone have any ideas?
sh -c "for i in {1..50}; do ls -lasiR ${NFS_MNTPNT_DIR}; sleep 2 done"
--- You must...
Hi Folks,
How can I redirect stdout back into a hash in my script (susphash)? Here I am logging into a remote server and running a command. I want all the lines of the command put into a hash. Is there a way to redirect that output that is more elegant than writing to a temp_file and then...
Hi Folks,
I'm trying to figure out how to script something that will go through a directory and reset the sychronization bit on a file. Looking at the fsecurity output below I need Sychonrize=1. Frankly I am not a windows programmer and am not sure how the subroutine should look. I would...
Is there a way in excel to do some semi-automated pattern matching and add a new column as a result? Here are some specifics:
I have two excel files. One contains only two columns and essentially never changes (Masterlist). The second file is a report that is generated daily with different bits...
I have a file containing the following information I need to extract only the IP addresses from this file and move them to another file. Any suggestions?
vfiler1 running
ipspace: default-ipspace
IP address: 123.123.123.123 [unconfigured]
Path: /vol/palermo...
Hi All,
Lets say I have two files and want to perform a substitution of the data in file1 based on the file2. Based on these initial two files I would like file1 to be changed to what is below. Note: file2 will be about 2500 lines.
__file1__
23
45
62
61
22
__file2__
23, joe
45, bob
62, pawan...
I have a set of logs that looks like this (below). For each line the first seven chunks are the same. I would like to put the file into an array and then split the data first by spaced until I reach chunk 8, which is of a variable length. I would like everything past /vol/vol0/(5) or equivalent...
Is there any easy way to use the script syntax below with "Threads" to create a multithreaded application. Very simply I want to this entire block to be run with each ARGV specified at the command line simultaneously.
#!/usr/bin/perl
@filers = @ARGV;
if( @ARGV < 1)
{
print...
I have a large text file that contains multiple subsection. Each section starts and ends with the same text:
Starts with: %%%BEGIN_SECTION
Ends with: %%%END_SECTION%%%
I would like to break up each section into its own file and name the file by the section header. For example if my data...
I have an array containing three variables. The "section" variable contains a number 1,2,3,4....n. Every n is part of the same transaction. I would like to parse the array by that (section) element. For example, I would like to create a subarray for every "63" that I could then print to a file...
I have a variable that contains date and times. I would like to convert these into epoch time, perform some basic calculations and convert the output back into human readable format. Here is a workflow with specific data and examples:
--------------------------------------------------------...
All-
I'm trying to parse through a bunch of log files and perform some calculations. What I need to do is pipe this data into an array (one line at a time) and then query the array. For example I would be performing operations such as:
i. writing out each section (ndmpd:77, ndmpd:28...
All-
I have a quick BASH scripting questions. Lets say I want to run the following commands X number of times:
ls -la /test
stat /test/file.test
whois bob
cat /test/file.test >> /tmp/testme
ect
How can I loop this is a BASH shell?
--- You must not fight too often with one enemy, or you will...
I have an array (@data) that contains data like this:
10 /var/tmp/test
8 /tmp/fdfd.s
132 /tmp/test/test2/sdafsdfsd
22 /opt/test/blah.txt
I would like to extract ranges of data based on the numbers in the first column. For example, all strings that are between 0-20 and all string that are above...
I need to generate the character count for each string (full path and filename excluding the ./) generated by the find command.
find . -name "*" -print
./long.sh
./.snapshot/sv_hourly.0
./.snapshot/sv_hourly.0/.ssh/known_hosts
./.snapshot/sv_hourly.0/WINDOWS
Any help would be appreciated.
---...
I need to know how to translate an IF/THEN statemenr that works fine in any shell into something that is understandable by the crontab. This is going to be used to run dozens of complicated scrips and cannot be hardcoded into each script.
if [ `/opt/VRTSvcs/bin/hagrp -state ClusterService -sys...
Hi All:
I need a script that will move in and out of directories and perform a command. I have a directory structure that looks like this:
scan_data/
scan_data/TEST-IT/
scan_data/TEST-IT/001
scan_data/TEST-IT/002
...
scan_data/
scan_data/WIP-FR/
scan_data/WIP-FR/001
scan_data/WIP-FR/007
...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.