Solved

commande linux

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

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

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

Linux users are sometimes dumbfounded by the severe lack of documentation on a topic. Sometimes, the documentation is copious, but other times, you end up with some obscure "it varies depending on your distribution" over and over when searching for …
The purpose of this article is to fix the unknown display problem in Linux Mint operating system. After installing the OS if you see Display monitor is not recognized then we can install "MESA" utilities to fix this problem or we can install additio…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
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.

810 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