Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

commande linux

Posted on 2016-07-20
2
Medium Priority
?
70 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 68

Accepted Solution

by:
woolmilkporc earned 2000 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

1. Introduction As many people are interested in Linux but not as many are interested or knowledgeable (enough) to install Linux on their system, here is a safe way to try out Linux on your existing (Windows) system. The idea is that you insta…
The purpose of this article is to show how we can create Linux Mint virtual machine using Oracle Virtual Box. To install Linux Mint we have to download the ISO file from its website i.e. http://www.linuxmint.com. Once you open the link you will see …
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Suggested Courses

721 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