• Post Reply Bookmark Topic Watch Topic
  • New Topic

Command unix on data of array  RSS feed

 
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi all of you i hope you re fine

so i do a code that give me an aray (myData) of string

it contains that:
Vl3

Gi34

Fa56

Gi66


and i want throw a command unix " show run interface Fa56/Gi...." about every data of this array

and i want do a test if this data begins with Vl (do somethi)g and if begins with Gi the same and if it begins wth Fa
so a want you hep me to how can i do a test id data from myData begins with Fa or Vl or Gi
Thank you
 
Bartender
Posts: 6109
6
Android IntelliJ IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
wafa khan wrote:how can i do a test id data from myData begins with Fa or Vl or Gi
Thank you


Look at the methods in the String class.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!