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 output to stdout. Sample output (truncated):
2. I need to create a new setting DATEB and write it to file before TEXT by adding n days to value of DATEA. For example here I added 300 days (truncated):
I just want to output to stdout. This is the desired output:
Quote:
Code:
VALUEA
2017-01-01
Lores ipsum
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
VALUEB
2017-02-02
...
Last edited by useretail; 02-28-2017 at 11:54 AM..
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:
test
test-(ing)
test-(ing)-test
test-(ing)
Here's what I already tried with GNU sed:
sed -e... (6 Replies)
how and where can i change permanent the settings of nslookup?
each time i change it by doing
nslookup
set timeout=2
the nslookup , does not save the settings , how can i do it in permanent way? (2 Replies)
Hi,
I have 48 cores in my server. I want to assign 50% of the cores to certain programs and rest to some other programms. I found the command "taskset" very good option to assign cpu afinity to already running programms or newly created programms.
But the problem is even if i set a cron to... (1 Reply)
Hi,
I use to work on solaris via putty
and always on session start
- i use to increase the font to 14 bold
- capture session output to a file
my requirement) to make these changes permanent, so that i need not to change the settings everytime i connect via putty
please advice.
... (0 Replies)
Hello All,
In the output of the command "mpdcontrol -no xlist", I found that, some of the preferred paths are marked as "err". You can see the output below:
# mpdcontrol -noxlist
Unit Dev# MPD_ID/Policy DeviceName FC_AL DevMajMin IOcnt State... (0 Replies)
As a regular (non-root) user on Unix servers I'm accustomed to changing my .profile file to set paths that I frequently use, etc.
I am trying to learn unix and set up a test server running SunOS 5.8. When I login as root I don't see a .profile file that belongs to root wherein I could change the... (1 Reply)
I support a product which writes to log files and it's currently formatting the date in US format. I've established this is due to these settings:
account1# locale -k d_fmt t_fmt
d_fmt="%m/%d/%y"
t_fmt="%H:%M:%S"
If I log on with a different account the settings are different:
... (1 Reply)