we are ftping zipped up files from the development server to the production server daily.The files are in this format filename.dat.20061231.12131.gz
I have to unzip the file (i can do that with gunzip) and then strip out the timestamp after the .dat extension.
I can do something like this
... (4 Replies)
I know the typical way to script automate an ftp session is to pass all of the commands to ftp, with something 'like' the following:
echo USER $user
echo PASS $pass
My question concerns other methods or tricks people have used so that the username and ESPECIALLY the password are... (7 Replies)
Hi
I have a requirement as follows. My Input file is as follows.
COL1,COL2,COL3,COL4,COL5
987,2,3~7~5,400~468~598,0005~4687~5980
1111,2,2~7,400~468,0005~897
Expected OUTPUT
============
COL1,COL2,COL3,COL4,COL5
987,2,3,400,0005
987,2,7,468,4687
987,2,5,598,5980
1111,2,2,400,0005... (6 Replies)
Hi,
We have Oracle Database on AIX 5.3 server.We want to give ftp access to a user to a specific folder.He should be able to put and get files from that specific folder only.Moreover he should not be able to cd to any other filesystems also along with root directory.
Please note that as per... (1 Reply)
I've created a specific FTP user restricted to only it's home dir. Eg as below:
User: ftp01
Home Dir: /home/ftp01
As I want this user to only able to access his home dir only, I've created /etc/ftpaccess.ctl and refresh the inetd daemon:
useronly: ftp01
readwrite: /home/ftp01
It... (1 Reply)
Hi,
I need to grep for text between " 01/Aug" and " 02/Aug" in a text file.
The awk command usually fails with the error saying "line too long"
Is there other simpler ways to achieve this ? (12 Replies)
Hi,
This code works for me for file in $(find /path/to/dir -type f); do tr -d '\r' <$file >temp.$$ && mv temp.$$ $file done
However, i want this code to skip all .class files.
Can you help me with the modified code. (2 Replies)
Dear Masters,
I usually run bash to get file from ftp using command below (user : nobody, password : guest)
#!/bin/bash
cd /xx/xy/prog
FILE="list_country.xls"
/usr/bin/ftp -in 1.2.116.12 << END
user nobody guest
ascii
cd /XYZ/ABC
binary
get $FILE
quit
END
But in this case,... (9 Replies)
Hi,
I wish to remove special charecters at the end of each line "^M" from all files under a folder and sub-folders.
I do not seem to have dos2unix or Perl and my OS is Linux mymachine 2.6.32-431.5.1.el6.x86_64 #1 SMP Fri Jan 10 04:11:43 IST 2014 x86_64 x86_64 x86_64 GNU/Linux (8 Replies)
Hi,
Below is my script where i wish to remove '^M' charecters from all files in the directory and sub-directories. Below code which is not able to remove all '^M' characters from all my files in all sub directories.
find properties/* -type f -exec sh -c '
for file do
tr -d '^M' < $file >... (3 Replies)
Discussion started by: mohtashims
3 Replies
LEARN ABOUT LINUX
repertoiremap
REPERTOIREMAP(5) Linux User Manual REPERTOIREMAP(5)NAME
repertoiremap - map symbolic character names to Unicode code points
DESCRIPTION
A repertoire map defines mappings between symbolic character names and Unicode code points when compiling a locale with localedef(1).
Using a repertoire map is optional, it is needed only when symbolic names are used instead of now preferred Unicode code points.
Syntax
The repertoiremap file starts with a header that may consist of the following keywords:
<comment_char>
is followed by a character that will be used as the comment character for the rest of the file. It defaults to the number sign (#).
<escape_char>
is followed by a character that should be used as the escape character for the rest of the file to mark characters that should be
interpreted in a special way. It defaults to the backslash ().
The mapping section starts with the keyword CHARIDS in the first column.
The mapping lines have the following form:
<symbolic-name> <code-point> <comment>
This defines exactly one mapping, <comment> being optional.
The mapping section ends with the string END CHARIDS.
FILES
/usr/share/i18n/repertoiremaps
Usual default repertoire map path.
CONFORMING TO
POSIX.2.
NOTES
Repertoire maps are deprecated in favor of Unicode code points.
SEE ALSO locale(1), localedef(1), charmap(5), locale(5)GNU 2014-06-02 REPERTOIREMAP(5)