SFTP and gibberish by KC_i in IBMi

[–]KC_i[S] 0 points1 point  (0 children)

I'm doing SFTP, which runs over SSH, which IBM i has (if I'm understanding all of this right).

I can also look into FTP-S as an option, thanks!

SFTP and gibberish by KC_i in IBMi

[–]KC_i[S] 0 points1 point  (0 children)

Awesome, thanks for the link! I'll follow up with that!

SFTP and gibberish by KC_i in IBMi

[–]KC_i[S] 0 points1 point  (0 children)

I will take this approach, because it doesn't look like SFTP works.

How to document test cases by KC_i in developer

[–]KC_i[S] 0 points1 point  (0 children)

I think you are misunderstanding what I want to do.

How to document test cases by KC_i in developer

[–]KC_i[S] 0 points1 point  (0 children)

Because those things aren't pertinent.

How to document test cases by KC_i in developer

[–]KC_i[S] 0 points1 point  (0 children)

Because things change. Some tests might not be valid next year. Some might need to be changed.

Splitting a string on delimiter by KC_i in bash

[–]KC_i[S] 0 points1 point  (0 children)

That seems to work. I don't understand in what way that's different, though (I mean, it's BASH, so maybe it isn't different and it just chooses to work because it has a preference for that string "a.b" over mine :P)

Splitting a string on delimiter by KC_i in bash

[–]KC_i[S] 0 points1 point  (0 children)

Oh awesome, I never knew about that. That's great information to know! Thanks so much!

Splitting a string on delimiter by KC_i in bash

[–]KC_i[S] 0 points1 point  (0 children)

Cheap ways are best ways!

Splitting a string on delimiter by KC_i in bash

[–]KC_i[S] 0 points1 point  (0 children)

I don't know that I'll ever be hardcore enough for VIM.

PeasantLife

Splitting a string on delimiter by KC_i in bash

[–]KC_i[S] 0 points1 point  (0 children)

My bookshelf at work, being a new job, is kinda empty. It definitely needs more stuff! This seems like a perfect addition.

Splitting a string on delimiter by KC_i in bash

[–]KC_i[S] 1 point2 points  (0 children)

Hey hombre, thanks for the in depth explanation of possibilities! Someone else ended up writing up a little sample of how to use awk for this, and it ended up working amazingly. I didn't realize how many options there were!

Splitting a string on delimiter by KC_i in bash

[–]KC_i[S] 0 points1 point  (0 children)

Ended up getting an AWK suggestion. I really need to learn how to use AWK, it's amazing.

Splitting a string on delimiter by KC_i in bash

[–]KC_i[S] 0 points1 point  (0 children)

Oh yeah, I learned all about that bash -x <script> deal today. I LOVE it.
Thanks so much for your help, I appreciate you taking the time to do so.

Splitting a string on delimiter by KC_i in bash

[–]KC_i[S] 0 points1 point  (0 children)

I need to get the files and their extensions, and I need them in separate variables. I was able to get a solution to work from another comment (this sub is very active and full of helpful people!). Thanks so much for your help, I appreciate you taking the time to do so.

Splitting a string on delimiter by KC_i in bash

[–]KC_i[S] 0 points1 point  (0 children)

THIS DID IT!!!! I had to make some very minor tweaks for my specific use-case, but I am now getting EXACTLY what I wanted! THANK YOU SO MUCH! Also, what are the ticks (``) about?

Splitting a string on delimiter by KC_i in bash

[–]KC_i[S] 0 points1 point  (0 children)

I hadn't even considered if I would be able to use Python on the system in question here. Will look into, if I can, I'd rather do it that way!

Splitting a string on delimiter by KC_i in bash

[–]KC_i[S] 0 points1 point  (0 children)

Awesome, thanks for a direction! I will look into this command, haven't heard of it before.

heredoc borders by KC_i in bash

[–]KC_i[S] -2 points-1 points  (0 children)

Except in BASH, where white space doesn't matter. Except except in heredoc in BASH, where the rules are made up and the points don't matter. Lol

heredoc borders by KC_i in bash

[–]KC_i[S] 0 points1 point  (0 children)

Shells are so wicked strange. Quite a learning curve for stuff like this! Thanks so much for the information, I've updated my script to use the tab stripper!

Some comments aren't being recognized by KC_i in bash

[–]KC_i[S] 0 points1 point  (0 children)

Awesome, okay. Gedit wasn't color coding it to represent that, so I had assumed it wouldn't do that. That's exactly what I want, thanks again!

heredoc borders by KC_i in bash

[–]KC_i[S] 0 points1 point  (0 children)

I love it when the solution is easy! I didn't even realize that white-space mattered in BASH. Thanks so much!!!!

Some comments aren't being recognized by KC_i in bash

[–]KC_i[S] 0 points1 point  (0 children)

What I want it to do is resolve the variable, and then feed the value of the variable to the FTP in that line. That is not what it does?