Solved

commande linux

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

New My Cloud Pro Series - organize everything!

With space to keep virtually everything, the My Cloud Pro Series offers your team the network storage to edit, save and share production files from anywhere with an internet connection. Compatible with both Mac and PC, you're able to protect your content regardless of OS.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
linux boot fsck problem 3 61
nagios 1 22
nagios remote hosts 9 43
issue in getting eth0 IP in oracale virtual box Linux VM 4 42
Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
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 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…
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.

910 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

28 Experts available now in Live!

Get 1:1 Help Now