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)
sed 's/^..//' file1.txt > file2.txt
this will remove the first two characters of each line of a text file, what sed command will remove the last two characters? This is a similar post to my other....sry if I'm being lazy....
I need a file like this (same as last post)
>cat file1.txt
10081551... (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 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)
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)
On SPARC Solaris 10. I set the app account so it's expired. I also want it
so not required to change password at first login, I can do this by
removing the numbers after the password in /etc/shadow.
example using user1
The /etc/shadow file looks like this:
user1:kOmcVXAImRTAY:0::::90::
... (8 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)
How do I remove the printer escape sequence, the first 5 characters, that occurs on every 33rd line in a file, see hex dump of line 1.
0000 1e 00 00 00 00 0a 0a 0a 20 0a 20 20 20 20 20 20 ....
0010 20 20 20 20 20 20 20 20 20 20 0a 42 49 4c 4c 20
Thanks, (2 Replies)
Discussion started by: jgt
2 Replies
LEARN ABOUT DEBIAN
shtool-install
SHTOOL-INSTALL.TMP(1) GNU Portable Shell Tool SHTOOL-INSTALL.TMP(1)NAME
shtool-install - GNU shtool install(1) command
SYNOPSIS
shtool install [-v|--verbose] [-t|--trace] [-d|--mkdir] [-c|--copy] [-C|--compare-copy] [-s|--strip] [-m|--mode mode] [-o|--owner owner]
[-g|--group group] [-e|--exec sed-cmd] file [file ...] path
DESCRIPTION
This command installs a one or more files to a given target path providing all important options of the BSD install(1) command. The trick
is that the functionality is provided in a portable way.
OPTIONS
The following command line options are available.
-v, --verbose
Display some processing information.
-t, --trace
Enable the output of the essential shell commands which are executed.
-d, --mkdir
To maximize BSD compatiblity, the BSD "shtool "install -d"" usage is internally mapped to the "shtool "mkdir -f -p -m 755"" command.
-c, --copy
Copy the file to the target path. Default is to move.
-C, --compare-copy
Same as -c except if the destination file already exists and is identical to the source file, no installation is done and the target
remains untouched.
-s, --strip
This option strips program executables during the installation, see strip(1). Default is to install verbatim.
-m, --mode mode
The file mode applied to the target, see chmod(1). Setting mode to ""-"" skips this step and leaves the operating system default which
is usually based on umask(1). Some file modes require superuser privileges to be set. Default is 0755.
-o, --owner owner
The file owner name or id applied to the target, see chown(1). This option requires superuser privileges to execute. Default is to skip
this step and leave the operating system default which is usually based on the executing uid or the parent setuid directory.
-g, --group group
The file group name or id applied to the target, see chgrp(1). This option requires superuser privileges to execute to the fullest
extend, otherwise the choice of group is limited on most operating systems. Default is to skip this step and leave the operating
system default which is usually based on the executing gid or the parent setgid directory.
-e, --exec sed-cmd
This option can be used one or multiple times to apply one or more sed(1) commands to the file contents during installation.
EXAMPLE
# Makefile
install:
:
shtool install -c -s -m 4755 foo $(bindir)/
shtool install -c -m 644 foo.man $(mandir)/man1/foo.1
shtool install -c -m 644 -e "s/@p@/$prefix/g" foo.conf $(etcdir)/
HISTORY
The GNU shtool install command was originally written by Ralf S. Engelschall <rse@engelschall.com> in 1997 for GNU shtool. It was prompted
by portability issues in the installation procedures of OSSP libraries.
SEE ALSO shtool(1), umask(1), chmod(1), chown(1), chgrp(1), strip(1), sed(1).
18-Jul-2008 shtool 2.0.8 SHTOOL-INSTALL.TMP(1)