Search Results

Search: Posts Made By: useretail
1,648
Posted By useretail
Processing files one by one using data from pipe
Hi guys, I receive a list from pipe (with fixed number of lines) like this:
name1
name2
name3

And in my ./ folder I have three files:
01-oldname.test
02-someoldname.test...
1,844
Posted By useretail
I understand. But the script will not parse any...
I understand. But the script will not parse any parameters until I know their exact names.

For example if I will not edit the script to parse #SETTINGSPARAMETER, script will not output it.

The...
1,844
Posted By useretail
Thanks a lot! If I understand correctly, if there...
Thanks a lot! If I understand correctly, if there will be a new parameter, script will not output it, right?
1,844
Posted By useretail
Sorry, but this time it is my fault! I truncated...
Sorry, but this time it is my fault! I truncated the desired output and you got me wrong.
I also forgot to mention that this script shouldn't calculate new date anything. It should only output to...
1,844
Posted By useretail
I just want to output to stdout. This is the...
I just want to output to stdout. This is the desired output:
1,844
Posted By useretail
Thanks again. But how can I parse that file?...
Thanks again.

But how can I parse that file? Is it possible?
1,844
Posted By useretail
[All variants] Change settings
Hi, I have a big settings confg (file attached). There are a few separate tasks that I have to accomplish. All scripting/programming languages are appreciated.

1. I need to parse all values and...
Forum: IP Networking 02-14-2016
2,318
Posted By useretail
[SOLVED] Finding lost machine on network trouble
Couldn't find my PC on network. Root of evil the was in bad patch-cable.
Forum: IP Networking 08-17-2015
6,487
Posted By useretail
127.0.0.1 vs 0.0.0.0
Which one should I use in '/etc/hosts'?
Please explain in details.

Random quotes on the topic:
2,972
Posted By useretail
Yes, it does remove parentheses, but not the...
Yes, it does remove parentheses, but not the content in them.
Next time I should ask precisely.
2,972
Posted By useretail
[All variants] remove first pair of parentheses
How to remove first pair of parentheses and content in them from the beginning of the line?

Here's the list:
(ok)-test
(ok)-test-(ing)
(some)-test-(ing)-test
test-(ing)

Desired result:...
12,097
Posted By useretail
OS: POSIX-compliant shell: sh/bash terminal:...
OS: POSIX-compliant
shell: sh/bash
terminal: rxvt (does it really matter?)

filesize: i don't know.. from 8 bytes to 8 terabytes

will there always be two "00" pairs: have no idea

do you...
1,586
Posted By useretail
with or without newline?
with or without newline?
1,586
Posted By useretail
for i in {1..1024}; do base64 -i encrypt.txt -o...
for i in {1..1024}; do base64 -i encrypt.txt -o temp; mv -f temp encrypt.txt; done
for i in `seq 1024`; do base64 -i encrypt.txt -o temp; mv -f temp encrypt.txt; done
i=0; while (( i++ < 1024 ));...
12,097
Posted By useretail
Binary search and replace
Hello again. I have two problems - is it possible to solve them?
1. I want to replace a few bytes after specific hex-string.
i.e.: I want to replace two bytes after AA AB AC:
AA AB AC 00 00 AA AA...
4,987
Posted By useretail
You nailed it Don. (I will reply with another...
You nailed it Don.
(I will reply with another post after I try all these examples. Thanks guys.)
4,987
Posted By useretail
You're right, I provided bad examples. See...
You're right, I provided bad examples. See updated question.
4,987
Posted By useretail
Bash condition test at the end of string
I want to check (using bash condition test function) if string contains three spaces, ignoring last three spaces at the end of string.

string_to_report='foo bar foo bar '...
7,405
Posted By useretail
Scrutinizer yeah, first command replaces to the...
Scrutinizer
yeah, first command replaces to the desired result in three passes:
-foo-bar-foo-bar-foo_bar-foo-bar-

Is it possible to replace to that result using multiple substitutions in one...
7,405
Posted By useretail
The question is how to use multiple substitutions...
The question is how to use multiple substitutions in one expression. I just provided bad example.
7,405
Posted By useretail
Multiple substitutions in one expression using sed
Hi, I'm trying to get multiple substitutions in one expression using sed:

echo "-foo-_-bar--foo-_bar_-_foo_bar_-foo_-_bar_-" | sed -e "s/[_-|-_|--]/-/g"

So, as you can see I'm trying to replace...
Showing results 1 to 21 of 21

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