Search Results

Search: Posts Made By: midniteslice
5,093
Posted By midniteslice
You sir, are correct. I was so determined to get...
You sir, are correct. I was so determined to get sed to work that I never even thought about that. Either way, as I understand it, the 22, being an absolute number, is what caused sed to quit...
5,093
Posted By midniteslice
Trying to use a sed command in a while loop
I have a file with just over 1 million lines. I am trying to write a script that will find 1400 instances of two particular patterns and insert a url on the 22nd line after the second pattern is...
5,919
Posted By midniteslice
Here is everything i have in my script right...
Here is everything i have in my script right now...

#!/bin/bash

echo
echo "This script will find a string in the JCATS .fplan file and replace the next line with"
echo "the next line with...
5,919
Posted By midniteslice
Well Sir, I'm back to the Unterminated quoted...
Well Sir, I'm back to the Unterminated quoted string...

/bin/sh: Syntax error: Unterminated quoted string
pipe nan%
/home/bj/Desktop/Final_JCATS_userin2.sh inf%
5,919
Posted By midniteslice
That was by far the quickest reply I have every...
That was by far the quickest reply I have every gotten on a forum. I really appreciate it aigles!!!

unfortunately, now i'm getting this error. I apologise if it's something simple. I'm still new...
5,919
Posted By midniteslice
Progress bar using lsof and awk
Hey all. I added this to my script, hoping for a progress bar or percentage complete
lsof -o0 -o -p $$ |
awk '
BEGIN { CONVFMT = "%.2f" }
$4 ~ /^[0-9]+r$/ && $7 ~ /^0t/ {...
14,859
Posted By midniteslice
I got it working with an echo command. ...
I got it working with an echo command. essentially, i guess both are doing the same thing, just outputting in a different format?. Yours is a whole lot cleaner!! heh. I can't thank you enough for...
14,859
Posted By midniteslice
Thanks FRANS! This looks a lot simpler than I...
Thanks FRANS! This looks a lot simpler than I thought it would be. I'll try it out as soon as i get on my linux box.
I for the most part understand whats happening here. Could you explain the...
14,859
Posted By midniteslice
I don't have my linux box handy, and thats where...
I don't have my linux box handy, and thats where all my code snippets are, i'll post them when i get home tonight. Here are some examples of the files:
File 1:
Type: SystemDeclarationData;7 ...
14,859
Posted By midniteslice
Need to find a string, check the next line, and if it matches certain criteria, replace it with a s
Hey Fellas.

I am new to scripting. I have searched through the forums and found a lot of good info, but I can't seem to get any of it to work together. I am trying to find a particular sting...
7,818
Posted By midniteslice
Hey Fellas. I am new to scripting. After...
Hey Fellas.

I am new to scripting. After searching the forums, this is about the closest to what i'm looking for. I am trying to find a particular sting in a file and replace the next line, ...
Showing results 1 to 11 of 11

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