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 DEBIAN
whack
WHACK(1) General Commands Manual WHACK(1)NAME
whack - mangle requests to a printer or damage a printer
SYNOPSIS
whack [-h | -v] [-i] [-w] ids
whack [-j] [-v] [-s] [-w] printers
DESCRIPTION
whack mangles line printer requests or damages line printers. When the first form of the command is used, the printed output of the job is
mangled as specified by the options. When the second form of the command is used, the printer itself is damaged as specified by the
options.
OPTIONS -h Horizontal. Make the output run across the page horizontally, ignoring linefeeds and other form movement characters or embedded
commands.
-v Vertical. Make the output run vertically in one column (the current column) down the paper, ignoring any form movement characters
or embedded commands.
-i ISO mode. Select, at random, a different ISO code set to use while printing the rest of the job.
-w Write a taunting message on the user's terminal after the jobs have been whacked. If the user is not logged in locally, then
mail will be sent instead.
-j Jam. Self-explanitory.
-v Voltage surge. Send a voltage spike down the transmit lead(s) of the printer. Physical contact with the printer should be
avoided while using the -v option.
-s Spit. Causes the printer to rapidly eject it's paper load into the output bin. Depending upon the speed of the ejection, a few
characters could actually print on each page.
FILES
/etc/termcap
HISTORY
Written by Eric L. Pederson <eric@bofh.org.uk>.
28 September 1995 WHACK(1)