10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Ommit the numbers or any characters only at 7th or 8th columns after the dot (.) . Since the group column has 1 and 2 spaces.
Thanks
-rw-r--r--. 1 user1 domain users 619 2017-04-13 16:16:50.284598383 +0000 aa
drwxr-xr-x. 2 root root 6 2017-05-08... (8 Replies)
Discussion started by: invinzin21
8 Replies
2. Shell Programming and Scripting
Hi Gurus,
I need replace some charactors in a file.
in following example. I need replace from 4th charactor to 6th charactor with x in each line.
abcdefghijklmn
123456789011
excepted result:
abcxxxghijklmn
123xxx789011
Thanks in advance. (6 Replies)
Discussion started by: ken6503
6 Replies
3. Solaris
Hi experts,
Can somebody explain, what is 9th field in /etc/shadow ? The last digit - (5 Replies)
Discussion started by: solaris_1977
5 Replies
4. AIX
Hi everyone,
I have a file called pdf.txt which has the following list inside:
7110412_1_31122012.pdf
7286510_4_46667100.pdf
4002176_1_00018824.pdf
...
I need a looping script to REMOVE the 8th and 9th character of the filenames listed, no matter what character that is.
So... (4 Replies)
Discussion started by: chipahoys
4 Replies
5. Shell Programming and Scripting
Hi,
I need to replace 10 characters string (21-30) in a file with another string.
I tried using cut command, i am able get these 10 charaters, but do not know how to replace them inside the file.
for example file content(these are alphanumeric characters):... (3 Replies)
Discussion started by: Johny001
3 Replies
6. Shell Programming and Scripting
i have a few scripts in which i need to find string"ali1@abcd.com" and replace it with "ali@abcd.com"
i used 2 below commands but none of them is permanently replacing the old string in the script s.sh
perl -pi -e 's/ali1@abcd.com/ali@abcd.com/g' s.sh
sed 's/ali1@abcd.com/ali@abcd.com/g'... (7 Replies)
Discussion started by: ali560045
7 Replies
7. Shell Programming and Scripting
Hi,
I have a file in which i want to replace the charaters from position 3-5 with a particular string for the first line.
For ex
The file contains
abcdefghij
jkdsflsfkdk
908090900
i want to replace the characters 3-5 for the first line as 678
so, the file should look like
... (7 Replies)
Discussion started by: dnat
7 Replies
8. Shell Programming and Scripting
Hi all,
I have a file with multiple lines. I want to replace characters 7 through 14 of every line with 0000000
Input:
12345678901234567890
23456789012345678901
Output
12345600000004567890
23456700000005678901
Please help.
JaK (9 Replies)
Discussion started by: jakSun8
9 Replies
9. UNIX for Dummies Questions & Answers
Hi,
I have a data like this in a file,
402003279034002000100147626030003300010000000000002000029000000 ær^M^\MÍW^H
I need to replace those special char to some other char like # or $
Is there any ways to do it...
I tried commands tr,sed and many but it was not able to replace because... (1 Reply)
Discussion started by: solai
1 Replies
10. Shell Programming and Scripting
Is there a simple way to replace the 9th character of every line in a text file?
Right now it is a space and instead I want to stick in a 0, every line is the same.
Is there a quick way to do this in Unix? (Solaris) (5 Replies)
Discussion started by: LordJezo
5 Replies