I'm trying to remove the null characters from a file and copy it to std output.
I'm using emacs and I create the following one line bash file (followed by the error messages):
sed -e 's/^@//' <ConfigItemReplicator.install.log
/usr/bin/bash: -c: line 0: unexpected EOF while looking for... (1 Reply)
Here is my code.
for file in *1.3.html ; do mv "$file" `echo $file | tr '.1.3' ''` ; done
For some reason I am getting an error.
mv: file.idlesince.1.3.html and file.idlesince.1.3.html are identical
Could this be done a different way? (5 Replies)
Hi guys,
Hope you are all well.
This is a line of data from a csv file. I have used vi and set the 'set list' option to display the trailing $ character.
"01","Grocery","01006","eat Fish & Spreads"$
I have tried the following commands, but neither of them appear to be working?
1) tr... (13 Replies)
Hi All,
As all of us know that while moving a file from Windows to Unix some unwanted ^M characters appear in the file. For my case I have release package in zip format which looks like Module_Name_Tag.zip. It contains some directory structure...like
Module_Name_Tag.zip
|
|--trunk/... (2 Replies)
Hi,
I have one file in the following format.
exa_resu_adj.4ge v.47645 PERSONAL INFORMAIONS PVT LTD 31 Dec 2009 04:36 Page 1
SALARY REPORT
Account Account Name CCode Bill No Balance T Amt
----------- ------------ ------- ---------- ------------- -------------
17490001 Mr Ram PM 10... (6 Replies)
Hi,
I have an csv file and there are some non printable characters(extended ascii) so I am trying to create a clean copy of the csv file . I am using
this command:
tr -cd "" < /opt/informatica/PowerCenter8.6.0/server/infa_shared/SrcFiles/ThirdParty/locations.csv > ... (4 Replies)
I tried using below command
tr -cd "" < InputFile.xml > output.txt ============= This removes all the tabs/newline/extra spaces from a file
it successfully removed all the extra spaces,tabs and new line characters but then the complete file become one record. I want to retain one new line... (1 Reply)
Hello
I've question on the requirement I am working on.
We are getting a fixed length file with "33" characters long. We are processing that file loading into DB.
Now some times we are getting a file with "35" characters long. In this case I have to remove two characters (in 22,23... (14 Replies)
i know , the below question has been repeated.
can you guys guide me .
I have the below input
999999 xxxxxxxxxxxxxx 123.45 2013-05-02 08:14 1 1 1 xxxx
999999 xxxxxxxxxxxxxx 123.45 2013-06-02 02:14 1 4 1 dddd
i need to remove from the column 54 to 70 , as like the below output.... (9 Replies)
I want to remove 1st and last two characters of each line of the file
Ex: file1
zzfile1ee
@xfile2:y
qfile3>>
@ file4yy
and redirect to the file called new
Basically file will have any charcter including space, spical character...
Please help.... (7 Replies)
Discussion started by: shell1509
7 Replies
LEARN ABOUT HPUX
slp
slp(1) General Commands Manual slp(1)NAME
slp - set printing options for a non-serial printer
SYNOPSIS
cols] indent] lines] pages] pages]
DESCRIPTION
sets printer formatting options such as the number of lines per page, number of characters per line, and indentation. These characteris-
tics are controlled by the printer driver as described in lp(7). acts on the current standard output.
Options
recognizes the following options and arguments:
Report all option settings.
Specify a character printer
where backspace characters pass through the driver unchanged. The absence of this option indicates a line printer.
The driver takes the necessary action to accommodate backspace characters.
Resets the printer back to line-printer mode.
Limit the number of columns to be printed to
cols. Characters beyond the specified limit are truncated.
Reset options to default for the device.
This action is not taken until the next open occurs on the device.
Indent indent columns before printing the first column.
Select cooked mode.
Cooked mode must be used with a cooked device special file which is identified by an lp mnemonic that is not preceded
by the character
Specify the number of
lines per page. The last new-line character of each page is changed to a form-feed.
Set the page size to infinity.
Since the last new-line of the page is never encountered, no new-line characters are changed to form-feeds.
Select a raw mode for graphics dumps.
All other options are ignored except If the option is not given, is assumed.
Eject zero or more
pages after the final close of the device.
Eject zero or more
pages when the device is opened.
EXAMPLES
In a typical case, the printer is set to 80 columns, no indentation, with no form-feeds between pages:
WARNINGS
Use of the command in conjunction with the spooler (see lp(1)) might cause undesirable side effects. The spooler model files make assump-
tions regarding the configuration and can get confused when the default values are altered. Although most options can be altered without
difficulty, special problems sometimes result from adjusting the number of lines and the number of columns per page.
AUTHOR
was developed by HP.
SEE ALSO lp(1), ioctl(2), lp(7).
slp(1)