Sponsored Content
Top Forums Shell Programming and Scripting How to replace a character in a file Post 302087267 by preethgideon on Wednesday 30th of August 2006 05:43:28 PM
Old 08-30-2006
Sorry have not understood yet . Smilie
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

How would you replace the n character in a file with some xyz?

How would you replace the n character in a file with some xyz? (2 Replies)
Discussion started by: JosephGerard
2 Replies

2. Shell Programming and Scripting

to replace one character by numbers in a file

suppose u have a file aas P-H 123 gdg O-U 223 hdy I-Y 12 fgd K-O 333 ssa L-P 32 output shud be like that aas P123H gdg O223U hdy I12Y fgd K333O ssa L32P thanks (7 Replies)
Discussion started by: cdfd123
7 Replies

3. Shell Programming and Scripting

How to replace a character in the file?

Hi All, I have file contains the following information. chem00s4.mis.amat.com ] Critical 3/21 chem00s4.mis.amat.com ] Normal 3/22 chem00s4.mis.amat.com ] Normal 3/23 chem00s4.mis.amat.com ] Normal 3/24 chem00s4.mis.amat.com ] Critical 3/25... (2 Replies)
Discussion started by: ntgobinath
2 Replies

4. Shell Programming and Scripting

read in a file character by character - replace any unknown ASCII characters with spa

Can someone help me to write a script / command to read in a file, character by character, replace any unknown ASCII characters with space. then write out the file to a new filename/ Thanks! (1 Reply)
Discussion started by: raghav525
1 Replies

5. Shell Programming and Scripting

replace character only in first line of a file

Hi, I need to replace a character in a specific position in only the first line of a file (actually many files). Change T to a P in position 103. I'm on solaris and my implementation of sed doesn't have the -r capability. Thx, Tim (8 Replies)
Discussion started by: web-guy01
8 Replies

6. Shell Programming and Scripting

how to replace a character with blank in a file

hi, I have a doubt in replacing characters with blank. My requirement is that, i have one file and looks like below 4:ALTER SYSTEM DISCONNECT SESSION '193,191' IMMEDIATE; 6:ALTER SYSTEM DISCONNECT SESSION '205,7274' IMMEDIATE; 5:ALTER SYSTEM DISCONNECT SESSION '206,34158' IMMEDIATE;... (4 Replies)
Discussion started by: sridhusha
4 Replies

7. Shell Programming and Scripting

Replace last character in file

Greetings UNIX folks, I am running a tcsh script and trying to replace the last character of a file with the number 0. I know that the last character of the file will always be 1, but I only want to replace the last character. Example: 78062 26.55 78.77 1 MYGF1 24.89 15.78 1 ... (2 Replies)
Discussion started by: TheSMan5
2 Replies

8. Shell Programming and Scripting

Replace a character in a file

Hello, Can anyone help me? I need to replace the letters (A, B, C..) of the second column in this file by a number i.e. 1. current file 0123456 0A123 0003355 Marion 1234567 0B117 0003388 Anthony 1112333 0C345 0459877 Ann new file 0123456 01123 0003355 Marion 1234567 ... (3 Replies)
Discussion started by: Lilu_CK
3 Replies

9. UNIX for Dummies Questions & Answers

Replace character string in txt file using input file(S)

Hi I have a large txt file on my AIX server and I need to replace some text using two other files. So filename1 has about 500 lines similar to: txtcode SYStem100 I have the string I want to change in string2 and the new stringname in string3. Does anyone know a way of doing this? I have... (1 Reply)
Discussion started by: Grueben
1 Replies

10. Shell Programming and Scripting

Replace character in a file.

I have a data like this in a file. 05/08/2017,U,01,116326001 05/08/2017,U,01,116226001 05/08/2017,U,01,116726323 05/08/2017,U,01,116236001 I want replace the date(1st column) of all records. Ex: 05/08/2017 to 04/02/2017 Please use CODE tags when displaying sample input, sample output,... (1 Reply)
Discussion started by: Artlk
1 Replies
KERNEL-COMMAND-LINE(7)						kernel-command-line					    KERNEL-COMMAND-LINE(7)

NAME
kernel-command-line - Kernel command line parameters SYNOPSIS
/proc/cmdline DESCRIPTION
The kernel, the initial RAM disk (initrd) and basic userspace functionality may be configured at boot via kernel command line arguments. For command line parameters understood by the kernel, please see kernel-parameters.txt[1] and bootparam(7). For command line parameters understood by the initial RAM disk, please see dracut.cmdline(7), or the documentation of the specific initrd implementation of your installation. CORE OS COMMAND LINE ARGUMENTS
systemd.unit=, rd.systemd.unit=, systemd.dump_core=, systemd.crash_shell=, systemd.crash_chvt=, systemd.confirm_spawn=, systemd.show_status=, systemd.log_target=, systemd.log_level=, systemd.log_color=, systemd.log_location=, systemd.default_standard_output=, systemd.default_standard_error=, systemd.setenv= Parameters understood by the system and service manager to control system behavior. For details, see systemd(1). quiet Parameter understood by both the kernel and the system and service manager to control console log verbosity. For details, see systemd(1). debug Parameter understood by both the kernel and the system and service manager to control console log verbosity. For details, see systemd(1). -b, emergency, single, s, S, 1, 2, 3, 4, 5 Parameters understood by the system and service manager, as compatibility options. For details, see systemd(1). locale.LANG=, locale.LANGUAGE=, locale.LC_CTYPE=, locale.LC_NUMERIC=, locale.LC_TIME=, locale.LC_COLLATE=, locale.LC_MONETARY=, locale.LC_MESSAGES=, locale.LC_PAPER=, locale.LC_NAME=, locale.LC_ADDRESS=, locale.LC_TELEPHONE=, locale.LC_MEASUREMENT=, locale.LC_IDENTIFICATION= Parameters understood by the system and service manager to control locale and language settings. For details, see systemd(1). fsck.mode= Parameter understood by the file system checker services. For details, see systemd-fsck@.service(8). quotacheck.mode= Parameter understood by the file quota checker service. For details, see systemd-quotacheck.service(8). systemd.journald.forward_to_syslog=, systemd.journald.forward_to_kmsg=, systemd.journald.forward_to_console= Parameters understood by the journal service. For details, see systemd-journald.service(8). vconsole.keymap=, vconsole.keymap.toggle=, vconsole.font=, vconsole.font.map=, vconsole.font.unimap= Parameters understood by the virtual console setup logic. For details, see systemd-vconsole-setup.service(8). udev.log-priority=, rd.udev.log-priority=, udev.children-max=, rd.udev.children-max=, udev.exec-delay=, rd.udev.exec-delay=, net.ifnames= Parameters understood by the device event managing daemon. For details, see systemd-udevd.service(8). plymouth.enable= May be used to disable the Plymouth boot splash. For details, see plymouth(8). luks=, rd.luks=, luks.crypttab=, rd.luks.crypttab=, luks.uuid=, rd.luks.uuid=, luks.options=, rd.luks.options=, luks.key=, rd.luks.key= Configures the LUKS full-disk encryption logic at boot. For details, see systemd-cryptsetup-generator(8). fstab=, rd.fstab= Configures the /etc/fstab logic at boot. For details, see systemd-fstab-generator(8). modules-load=, rd.modules-load= Load a specific kernel module early at boot. For details, see systemd-modules-load.service(8). SEE ALSO
systemd(1), bootparam(7), dracut.cmdline(7), systemd-fsck@.service(8), systemd-quotacheck.service(8), systemd-journald.service(8), systemd- vconsole-setup.service(8), systemd-udevd.service(8), plymouth(8), systemd-cryptsetup-generator(8), systemd-fstab-generator(8), systemd- modules-load.service(8) NOTES
1. kernel-parameters.txt https://www.kernel.org/doc/Documentation/kernel-parameters.txt systemd 208 KERNEL-COMMAND-LINE(7)
All times are GMT -4. The time now is 09:52 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy