There is already one thread with the same heading. But here the case is little different.
i have a line which have a field separator '|'
Code:
abc|def|ghi|jkl|mno|pqr|stu|vwx|yz
I want to replace every 3rd occurance + next character with the same + newline character..
If i try to type a capital letter with accent (e.g. Ř) in kde-konsole, I get the following result: ˇR - the letter and the accent as two characters. The normal behaviour is that after pressing ˇ character, it is not output immediately but another character is expected. In the konsole tho, the character is output immediately. In other applications, it works fine.
So, the linux "top" command has the real time-like loop with console output (nothing fancy), but it uses non-blocking console input which doesn't display typed character in the command line. How it's done? Is there any library for it, do they use threads?
Due to some encoding problems, some characters in my database have been interpreted uncorrectly. Some chars have been replaced with the 'replacement character'.
I need to find all such chars and replace them with space. I have been googling different solutions using sed, bash, perl, etc with no luck. Could someone share a solution how to find such characters (i.e.
I would like to replace /n with ',' and after replace remove last semicolon then put a open brace in starting and closing brace in end of line. See below example:
input:
Code:
1234
3455
24334
234
output:
Code:
('1234,'3455',24334','234')
Thanks
I have a an inittab file with the following entry:
console::askfirst:-/bin/ash
According to this Man page a '+' character in the process field means
init will not do utmp and wtmp accounting for that process.
However, it does not say anything about a '-' character. What does having the '-' character in the process field do?
Hi,
I am beginner to Shell Scripting.
I have a String like this "testabcdef", i need the first character as it is and the remaining character should be replaced by the the '*' character. e.g(t***********)
PLZ Suggest me.
After removing console-tools using
apt-get --purge remove console-tools
I am getting the following error during boot
init: Failed to spawn console-setup main process: unable to execute: No such file or directory
fsck from util-linux-ng 2.17.2
fsck from util-linux-ng 2.17.2
So it looks like remove messed up to correctly remove console-tools package.
Hi All,
I am facing some problems with bad characters in my file.For example-
Code:
00000000509 TCI DEVOFFERS= 1
Now I want to remove all bad characters and replace with *.
Please suggest some solution.
Along with that How to mention a range of ASCII values in TR command to replace?
Say I want to replace ASCII value 32 -38(Dec) with Asterisk(*), how to perform with TR command in UNIX.