06-12-2009
remove newline chars in each record of file
Hi,
I have a fixed width file with record length 10.
I need to remove multiple newline characters present in each record.
EX:
af\n72/7\n
s\n3\nad\n
2\n\n33r\n
In the above file I want to remove new lines in red color(\n) but not (\n)
Please provide me a solution.
Thanks,
Sri
9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Please tell me the command(s) to remove a particular record from the file and placing the rest of the record in a seperate file. (9 Replies)
Discussion started by: kanu_pathak
9 Replies
2. Shell Programming and Scripting
Hi All,
We append the output of a file's size in a file. But a newline character is appended after the variable.
Pls help how to clear this.
filesize=`ls -l test.txt | awk `{print $5}'`
echo File size of test.txt is $filesize bytes >> logfile.txt
The output we got is,
File size of... (4 Replies)
Discussion started by: amio
4 Replies
3. Shell Programming and Scripting
Hi:),
I am having 110 records in a file and I want to delete particular record (say 63rd) . Which command can be use to achieve this ? (4 Replies)
Discussion started by: devmns
4 Replies
4. Shell Programming and Scripting
Dear Friends,
Need your help to fix the issue we are facing.
We have a requirement - Need to remove specific records from a comma separated file and create new file. It should check "filter.csv" file and then accordingly remove records from the input file and generate the output file.(not case... (5 Replies)
Discussion started by: SatishW
5 Replies
5. Shell Programming and Scripting
Greetings!
Can we automate the process of removing a newline char from selected rows in a fixed width file using a shell?
Input is like
abcd1234
xyzd1234
abcd
a1b2c3d4
abcd1234
xyzd1234
xx
abcd1234
Expected output -
abcd1234xyzd1234
abcda1b2c3d4abcd1234xyzd1234
xxabcd1234
... (3 Replies)
Discussion started by: mailme0205
3 Replies
6. Shell Programming and Scripting
Hi,
I have a very huge file, around 1GB of data.
I want to remove the newline characters in the file but not preceded by the original end delimiter {}
sample data will look like this
1234567
abcd{}
1234sssss
as67
abcd{}
12dsad3dad
4sdad567
abcdsadd{}
this should look like this... (6 Replies)
Discussion started by: ratheeshjulk
6 Replies
7. Shell Programming and Scripting
Hi i have need of read a file value with cat command and remove first 2character for example cat /sys/class/rtc/day
0x12
Remove char
12
And put this value in a variable
is possible with a script thanks for help (6 Replies)
Discussion started by: enaud
6 Replies
8. Shell Programming and Scripting
Greetings Experts,
I am in AIX; I have a file generated through awk after processing the input files. Now I need to replace or remove the new-line characters on all lines that doesn't have a ; which is the last character on the line. I tried to use sed 's/\n/ /g' After checking through the... (6 Replies)
Discussion started by: chill3chee
6 Replies
9. UNIX for Beginners Questions & Answers
Hi,
I came across one issue recently where output from one of the columns of the table from where i am creating input file has newline characters hence, record in the file is spread over multiple lines. Fields in the file are separated by pipe (|) delimiter. As header will never have newline... (4 Replies)
Discussion started by: Prathmesh
4 Replies
LEARN ABOUT DEBIAN
anubisadm
ANUBISADM(1) General Commands Manual ANUBISADM(1)
NAME
anubisadm - interface for GNU Anubis database administration
SYNOPSIS
anubisadm anubisadm [COMMAND] [OPTIONS] URL
DESCRIPTION
This manual page documents briefly the anubisadm command.
anubisadm is a program for GNU Anubis database manipulation.
OPTIONS
A summary of options is included below:
COMMAND is one of:
-c, --create
Creates the database.
-l, --list
List the contents of an existing database.
-a, --add
Add a new record.
-m, --modify
Modify existing record.
-r, --remove
Remove existing record.
--version
Display program version number and exit.
--help Display this help screen and exit.
OPTION is one or more of:
-i, --authid=STRING
Specify the authid to operate upon. This option is mandatory with --add, --modify and --remove. It is optional when used with
--list.
-p, --password=STRING
Specify the password for the authid. Mandatory with --add, --modify and --remove.
-u, --user=STRING
Specify the system user name corresponding to the given authid. Optional for --add, --modify and --remove.
-f, --rcfile=STRING
Specify the rc file to be used for this authid. Optional for --add, --modify and --remove.
SEE ALSO
anubis(1), anubisusr(1),
AUTHOR
anubisadm was written by The Anubis Team (read the AUTHORS file).
This manual page was prepared by Krzysztof Burghardt <krzysztof@burghardt.pl>, for the Debian project (but may be used by others).
2007 Sep 09 ANUBISADM(1)