Solved

commande linux

Posted on 2016-07-20
2
33 Views
Last Modified: 2016-08-27
Hi evryone
Looking linux command that replaces the last two digits of each line by two digits xx.


M;+33788428120;1;12947;S;20160719
M;+33788552202;1;12947;S;20160719
M;+33789006044;1;12947;S;20160719
M;+33789395021;1;12947;S;20160719
M;+33789492400;1;12947;S;20160719
M;+33789571772;1;12947;S;20160719
0
Comment
Question by:Marc PETIT
2 Comments
 
LVL 68

Accepted Solution

by:
woolmilkporc earned 500 total points (awarded by participants)
ID: 41721156
sed -i 's/..$/xx/' inputfile

"-i" will change the file "in place". Omit it to see the results on your terminal beforehand.
3

Featured Post

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

You ever wonder how to backup Linux system files just like Windows System Restore?  Well you can use Timeshift in Linux to perform those similar action.  This tutorial will show you how to backup your system files and keep regular intervals. Note…
The purpose of this article is to demonstrate how we can upgrade Python from version 2.7.6 to Python 2.7.10 on the Linux Mint operating system. I am using an Oracle Virtual Box where I have installed Linux Mint operating system version 17.2. Once yo…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now