I am building a script that will execute programs using records/fields in a file as arguments.
Before I start testing that, I am working on reading the file properly and using printf to display the fields in the file.
I used typeset to format my output.
Now all I need is to figure out how to... (1 Reply)
Hello.
I have got 3 unix boxes A B C. Box A is being used to prepare some reports. After the reports generation, Box A sftp the reports to Box B and Box C. When I look at the report in Box B and Box C. The reports are different. In Box B, I see using od -x command there is CRLF (\r\n) at the end... (7 Replies)
I am trying to convert a txt file that includes one long string of data. The lines are separated with hex value 7C (for pipe).
I am trying to process this file using SQR (Peoplesoft) so I thought the easiest thing to do would be to replace the eol char with a CRLF in unix so I can just... (4 Replies)
I have a nawk that reads in a log file and outputs a file that matches my search.
IFS=" "
while read record
do
`echo $record | nawk 'BEGIN {
FS=" "
}
{
type_record=substr($0, 1, 1);
if (... (14 Replies)
1. The problem statement, all variables and given/known data:
write a script asciiFix.sh that takes an arbitrary number of file paths from the command line and carries out the same analysis on each one. If a file is not Windows ASCII, your script should do nothing to it. For each file that is... (7 Replies)
I need to append |\r\n (a pipe character and CRLF) at end of each record in Unix to all records where they are not already present.
So first check for the presence of |\r\n and if absent append it else do nothing (3 Replies)
OK below is what my sample file looks like. I need to sort by the Primary Key ie: {1:F01SAESVAV0AXXX0466020126} in the first record. Record seperator is $.
I tried sort, but it completely messes it up. I am thinking I will need to use something like awk which understands the record seperator... (6 Replies)
What is the command or script to remove CRLF but only when joined?
Tried using below but removed all instances of either
cat a.txt | tr -d "\r\n" > b.txt (14 Replies)
Hi Folks!
Need a solution for the following :-
Source data
-------------
123|123|<CRLF><CRLF><CRLF>|321<CRLF>
Required output
------------------
123|123|<LF><LF><LF>|321<CRLF>
<CRLF> represents carriage return
<LF> represents line feed
Being hunting high and low for a... (10 Replies)
Discussion started by: hishamzz
10 Replies
LEARN ABOUT DEBIAN
jailer.conf
JAILER(5) File Formats Manual JAILER(5)NAME
jailer.conf - configuration file of jailer
SYNOPSIS
jailer.conf
DESCRIPTION
jailer is a script for creating chrooted environments for Debian packages.
jailer.conf is the configuration file for jailer.conf
Every configuration definition has to start and end with a jail identifier, which should be unique and be in brackets.
<apache>
For example, an Apache chroot identifier should look like this:
</apache>
The identifier use needs to be closed.
The configuration for the chroot instance is defined inside these identifiers. The following lines can be used to describe the con-
figuration:
Root: /var/chroot/apache
This line describes the PATH of the chrooted enviroment.
Conf:
This line describes the PATH or PATH/filename which should be copied over to the chrooted environment. For example Conf:
/etc/apache/* , which uses a wild card.
Debs:
This line contains the name of those Debian packages which should be installed into the chrooted environment.
Junk-Debs:
This line contains those deb packages which should not be installed into the chrooted environment.
Junk:
This line contains those files or directories which should not be installed. For example /lib/* means all files and links under /lib
should not be installed, while /lib/libconsole.so.0.0.0 means a file which should not to be installed.
Extra:
This line contains those files or directories which should be installed into the chrooted environment. For example: /var/run will
install that a directory which is needed for the chrooted service.
WARNING
Do not configure your daemon inside your jail, because updatejail script will wipe out all the data inside the jail. If you would want to
change any settings inside the jail, make the changes in the original location and then run updatejail . This makes it possible to place a
jail even to a ramdisk.
SEE ALSO updatejail(8)jailer.conf(5), dpkg(8)AUTHOR
This manual page was written by Peter Holtzl <peter.holtzl@balabit.hu>.
December 4, 2001 JAILER(5)