Search Results

Search: Posts Made By: Janus
7,954
Posted By Janus
I love to be thorough and try to test all sorts...
I love to be thorough and try to test all sorts of output to ensure code stability. I came across an issue and a fix but incorporating it together seems to not be working as planned.

The goal of...
7,954
Posted By Janus
Ygor, I'm directing this question towards you,...
Ygor, I'm directing this question towards you, but anyone else that could clearly explain, (you don't have to dumb it down terribly, but enough to make sense) but I'm getting caught up in...
7,954
Posted By Janus
I think I got it: sed...
I think I got it:
sed 's/\(.*\)==-=-.*\(\.\)/\1\2/'

The second bracket I turned what it should look for into literally everything. That seemed to do the trick. *cartwheels*
7,954
Posted By Janus
Thank you, I see now how it all fits together. ...
Thank you, I see now how it all fits together. Seeing the actual meaning behind what each piece is doing helps out quite a bit! As stated in the replies above, .pdf isn't necessarily the only file...
7,954
Posted By Janus
Ygor, I'm very new to sed and have only started...
Ygor, I'm very new to sed and have only started to realize the true potential of it. I hate to be a bother, but if you could explain how your command is interpreted, it would be greatly helpful:
...
7,954
Posted By Janus
Cut -d Question
I went through quite a few threads and didn't find anything on this. I also looked on other sites and couldn't turn up an answer.

For completeness sake, I'm working off of solaris 10 in the korn...
10,030
Posted By Janus
^$ I did a lot more research and found that...
^$

I did a lot more research and found that if I used ^$, it'll print up and through the last line and blank line that follows thereafter

cat /etc/security/user | sed -n '/root:/,/^$/p'

My...
10,030
Posted By Janus
Sed Help (Using expression - line break)
*Note, I thought I was in Shell Programming and Scripting Q&A and posted in a wrong forum. To avoid confusion and to inform people that I'm not trying to "spam" the forums, I'm adding this note up...
9,855
Posted By Janus
Awesome, that was perfect, just what I needed. ...
Awesome, that was perfect, just what I needed. It's much easier to see where everything is going now. Having not worked with array's yet, that explanation cleared up the questions I had about the...
9,855
Posted By Janus
Andrek, I put in your code and it executed to...
Andrek, I put in your code and it executed to work great! I went one step further and added the following piece to list out any existing directories and it's corresponding files:

if [ -d...
9,855
Posted By Janus
Half of this figured out, made the following...
Half of this figured out, made the following corrections toying around with it:

Where I have the bolded piece of the script, replace that with:

if [ $"{filelist[$i]}" = "d" ]

As you can see,...
9,855
Posted By Janus
Unix Korn Shell Array Issue (SunOS)
Hello,

I'm currently messing around with arrays for the first time in scripting (Unix Korn Shell). All I'm trying to do right now before I make things complicated is read through and print out to...
6,074
Posted By Janus
Worked on it with my Unix Mentor and wanted to...
Worked on it with my Unix Mentor and wanted to share the results, vgersh, you were real close!

2 ways to approach with the "sed" command:

Approach 1: metastat | sed -n...
6,074
Posted By Janus
Submirror 0: d14 State: Okay ...
Submirror 0: d14
State: Okay
Submirror 1: d24
State: Okay
d14: Submirror of d4
State: Okay
d24: Submirror of d4
State: Okay
Submirror 0: d13
State: Okay
...
6,074
Posted By Janus
grep + lines after
Hello again, I'm still working on the redo of my script I created before and came across a grep question.

I'm on SunOS 5.9 and using the Korn Shell. I'm writing a function to check for validation...
2,353
Posted By Janus
Follow up: Found some issues when trying to...
Follow up:

Found some issues when trying to print out the variable after setting it. This is a note and reminder that when you go to echo the variable or print it, to enclose it in " ". Just so...
2,353
Posted By Janus
My hats off to you Perderabo, I thought I had...
My hats off to you Perderabo, I thought I had tried that but I guess I didn't, putting your suggestion to use:

compserver#cat /var/spool/cron/crontabs/sys | grep "0,20,40 \* \* \* \*...
2,353
Posted By Janus
Don't Quote Me On This...
Korn Shell Scripting on Solaris 9

Hello, this is my first post, I figure I share a problem and how I fixed it as well as ask a question that I'm currently stuck on. A version of "Give a Penny"...
Showing results 1 to 18 of 18

 
All times are GMT -4. The time now is 10:04 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy