Search Results

Search: Posts Made By: irongeekio
9,820
Posted By irongeekio
Thanks so much quirkasaurus. Your first reply was...
Thanks so much quirkasaurus. Your first reply was very helpfull thanks. The hint to use more is great. YOU THE MAN...
9,820
Posted By irongeekio
found the 15 lines this work better.
cat $FILE | grep -A 15 "Ethernet.* "\"\" > outputfile

cat outputfile


Interface Ethernet0/1 "", is up, line protocol is up
Hardware is i82546GB rev03, BW 100 Mbps...
9,820
Posted By irongeekio
cat file1 read line-per-line then grep -A 15 lines down in fileb
STEP 1
# Set variable
FILE=/tmp/mainfile
SEARCHFILE =/tmp/searchfile

# THIS IS THE MAIN FILE.
cat /tmp/mainfile

Interface Ethernet0/0 "outside", is up, line protocol is up
Hardware is...
1,393
Posted By irongeekio
Just to clarify: 1. A "SHOW RUN" is done on...
Just to clarify:

1. A "SHOW RUN" is done on the device in question. This creates an output file called MAINFILE which now has a copy of the running configuration of the device in question.

2. A...
1,393
Posted By irongeekio
Help in loop find question at STEP 3
STEP 1
# Set variable
FILE=/tmp/mainfile
SEARCHFILE =/tmp/searchfile


cat /tmp/mainfile

Interface Ethernet0/0 "outside", is up, line protocol is up
Hardware is i82546GB rev03, BW 100...
Showing results 1 to 5 of 5

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