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 Mike Lewis 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: *

  1. jdespres

    Print out first 3 strings in a specified column

    Bummer...... I don't have "xmlstarlet" installed :( #### This seems to work ::---> raw-quickc () { export MCCLI=/usr/local/avamar/bin/mccli export BIN=/home/admin/bin echo...
  2. jdespres

    Print out first 3 strings in a specified column

    I totally forgot! mccli command can output xml! <Row> <ID>9145117800006709</ID> <Status>Completed</Status> <ErrorCode>0</ErrorCode> <StartTime>2015-12-26 20:11 EST</StartTime> <Elapsed>00h:07m:05s</Elapsed> <EndTime>2015-12-26 20:18 EST</EndTime>...
  3. jdespres

    Print out first 3 strings in a specified column

    Yeah, xxxx is just alphabet characters Thanks Joe Despres
  4. jdespres

    Print out first 3 strings in a specified column

    Hey Feherke..... That didn't work :( Thanks! You shouldn't work on this any more... Joe Despres
  5. jdespres

    Print out first 3 strings in a specified column

    awk -W version GNU Awk 3.1.8 Using awk on a Avamar system :) #### Here's the raw out put from the mccli command ::---> 9145091880251509 Completed w/Exception(s) 10010 2015-12-23 20:00 EST 00h:59m:07s 2015-12-23 20:59 EST Scheduled Backup 6.2 TB 0.1% yyy.com /xxxx Windows...
  6. jdespres

    Print out first 3 strings in a specified column

    didn't work.... I do like the ::---> '\\s\\s+' Thanks! Joe Despres
  7. jdespres

    Print out first 3 strings in a specified column

    Separating columns via multiple spaces... awk -F '[[:space:]][[:space:]]+' '{ print $1, $7"/"$6, $12 }' Each column of data will have multiple data separated by spaces.. Not sure how to print out only the first 3 items in $12.... Any idea's Thanks.... Joe Despres
  8. jdespres

    generate data

    #### This worked ::---> for i in 0{0..9} {10..23}; do echo S$i $i:00; done Thanks Joe Despres
  9. jdespres

    generate data

    Unfortunately Avamar doesn't have ksh available :( Looks like declare is the same as typeset thou... it doesn't have the "-Z" switch... Bummer :( Thanks Joe Despres
  10. jdespres

    generate data

    I would like to generate that looks like this ::---> S00 00:00 S01 01:00 S02 02:00 S03 03:00 S04 04:00 S05 05:00 S06 06:00 S07 07:00 S08 08:00 S09 09:00 S10 10:00 S11 11:00 S12 12:00 S13 13:00 S14 14:00 S15 15:00 S16 16:00 S17 17:00 S18 18:00 S19 19:00 S20 20:00 S21 21:00 S22 22:00 S23 23:00...
  11. jdespres

    scan tru multiple files for multiple bits of data

    Would like to grep tru multiple files with items to grep as well...
  12. jdespres

    scan tru multiple files for multiple bits of data

    I need to scan through 28 files ::---> /bin/ls -alt $SDIR/*$IDENTIFIER*log|awk '{print $9}'|grep Celerra.avtar.log | tee $ALL > $FILESLOG And I want to pull out multiple items from each file ::---> for i in `cat $FILESLOG` do echo -e "/bin/grep "<5905>" $SDIR/$i | awk '{print $1, $11}' \c"...
  13. jdespres

    How can I colorize my help?

    hhhhmmmmm I must of copied wrong... I'm getting a bunch of characters before and after.. Thanks! Joe Despres
  14. jdespres

    How can I colorize my help?

    I'm trying to create a colorful help for all the functions I'm creating... I have the following ::---> gethelp () { cat << EOF act ::---> Get one or more clients activity. act <Client_name or Client_list> his ::---> Get one or more client backup history. his <Client_name or Client_list>...
  15. jdespres

    How can I automate adding in keys

    How can I automate running the following ::---> ssh-agent bash ssh-add .ssh/dpnid Thanks..... Joe Despres
  16. jdespres

    Testing doesn't seem to be working

    That worked..... I should of thought about the tmp file... Thanks! Joe Despres
  17. jdespres

    Testing doesn't seem to be working

    Trying to get the following code to work.... DATE=`date +%Y-%m-%d -d "yesterday"` for i in `cat IR_clients.txt` do echo -e "$i \c" mccli activity show --name=$i|grep -i $DATE | if [ $? -ne 0]; then echo -e "\n" else cut -c 17-38 |awk 'BEGIN {RS="="} $1=$1' fi done Looping thru a list...
  18. jdespres

    How do I add in a CR between two characters

    Seems to work for me...........
  19. jdespres

    How do I add in a CR between two characters

    Used tr instead ::---> tr '><' '>\n' Thanks.... Joe Despres
  20. jdespres

    How do I add in a CR between two characters

    I have a line of data thats pretty long... I would like to break this data up ... I would like to insert a carriage return line feed between the following two characters >< This will make looking at the data a bit better! Thanks... Joe Despres

Part and Inventory Search

Back
Top