Solved

commande linux

Posted on 2016-07-20
2
60 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 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

Independent Software Vendors: 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

If you use Debian 6 Squeeze and you are tired of looking at the childish graphical GDM login screen that is used by default, here's an easy way to change it. If you've already tried to change it you've probably discovered that none of the old met…
Have you ever been frustrated by having to click seven times in order to retrieve a small bit of information from the web, always the same seven clicks, scrolling down and down until you reach your target? When you know the benefits of the command l…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…
Suggested Courses

636 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