Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: czarj
  • Content: Threads
  • Order by date
  1. czarj

    tooltips inside searchbox

    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...
  2. czarj

    getting top five from array

    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...
  3. czarj

    extracting text between two tags in a very long string

    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...
  4. czarj

    script to generate Getattr calls against NFS?

    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...
  5. czarj

    Redirecting STDOUT back into hash

    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...
  6. czarj

    script to set sychronization bit of files

    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...
  7. czarj

    Excel: Pattern Matching and printing.

    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...
  8. czarj

    extracting IP adresses from a file

    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...
  9. czarj

    Substitution between two files

    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...
  10. czarj

    Split log file into array by blank space for first seven chunks only

    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...
  11. czarj

    Multithreading a foreach loop with Threads

    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...
  12. czarj

    Split fil into smaller files for each text-based subsection

    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...
  13. czarj

    parsing array by individual element

    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...
  14. czarj

    Date Converstion/Calc: Date String --&gt; epoch --&gt; different date string

    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: --------------------------------------------------------...
  15. czarj

    Create array from log files and perform queries

    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...
  16. czarj

    Looping CLI commands for X iterations in BASH

    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...
  17. czarj

    Extract data from array based on range from a column

    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...
  18. czarj

    Character count for each string in a 'find' output

    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. ---...
  19. czarj

    IF Then in crontab

    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...
  20. czarj

    Script: working in subdirectories

    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 ...

Part and Inventory Search

Back
Top