Recently we migrated an application in HP UX to Linux. The files(scripts & logs)download from HP UX coming in a formatted way in MS notepad. However the files in Linux are not in correct format in MS notepad(No spaces , some spl symbols like square).We tried both ASCII and binary but no use.File Downloaded by using FileZila
Surprising thing was it is in formatted way in notepad++. How ever we are not supposed to use notepad++. Please help
HP UX -
Linux --
Thanks
Last edited by nag_sathi; 07-03-2013 at 03:21 AM..
Reason: added notes - filezila
I'm trying to read the output of a .sql script (simple insert and commit oracle pl/slq script) to a log file using a shell script. My problem is I end up with a log file that looks like this:
sd12@phenix97:/detain/sd12/logs > cat 20071205_detain_20071206.log
12320496 rows created. Commit... (11 Replies)
HI guys,
I have created a script to read 1 column in a csv file and then place it in text file.
However, when i checked out the text file, it is not in a column format...
Example:
CSV file contains
name,age
aa,11
bb,22
cc,33
After using awk to get first column
TXT file... (1 Reply)
Can somone take a look at this script for me - I'm trying to get it to exit if the format of dateToLookFor is not in the format YYYYMMDD:
function search
{
cd $logsloc
echo "Enter date in format YYYYMMDD (enter to exit):"
read dateToLookFor
echo $dateToLookFor | grep -q ... (2 Replies)
hi all
I have a file with many lines like
aa;bb;cc;dd;ee
bb;aa;dd;ee;bb
cc;ee;bb;dd;aa
ee;cc;bb;aa;dd
.
.
.
etc
The first line is in right format,Please help me how to use "SED" to change the rest of the lines to the format like line 1
thank all! (1 Reply)
I have the date of the file passed into a variable also current date formatted same passed into a separate variable and compare the two with an if statement and statement always comes up false. Even though I verified the dates. Any help would be awesome.
Filecrtdate=`ls -l $i | awk '{print... (19 Replies)
Hi! how do i know if the input is the same as the required date format? the date should be dd/mm/YYYY ex. 2/3/2012 or 15/11/2012
all the following conditions must return an error:
*input of string
*day is > 31 or < 1
*month is > 12 or < 1
*year is < 2013
suppose the date format is stored... (1 Reply)
Hi,
I am running two scripts as below.
In Script 1 i am getting correct output in proper HTML format while in script 2 i am not getting output in mail and only html code is getting printed.I want to get the output of script 2.
Please guide.
1.IFILE=/home/home01/Report.csv
if #Checks... (7 Replies)
I have a script that looks like this:
dirname2=/usr/tmp/filelist/*/*
for dirname2 in /tmp/filelist/*/*; do (cd $dirname2/catalog ||echo "file does not exist" && echo "$dirname2" |cut -d '/' -f 7,8 && echo $i && ls -la |awk 'NR>3 {SUM += $5} END { print "Total number of kb " SUM }');done... (2 Replies)
All,
Objective : Extract the correct format of a file name.
Please share the script command which will extract the correct format of the file after untarring.
Example : If the file is of .csv format then extract filename.csv
if the file is having .CSV then extract the same.CSV
if the file... (1 Reply)
Hi Experts,
path=/db/files/
format=$1
User can enter any file format.compare the user file format with actual file format existed in the directory /db/files. User enter all characters as "A" apart from date format.
example1: user will be entering the file format AAA_AA_YYYYMMDD.AAA
Actual... (6 Replies)
Discussion started by: nalu
6 Replies
LEARN ABOUT CENTOS
vfs_tsmsm
VFS_TSMSM(8) System Administration tools VFS_TSMSM(8)NAME
vfs_tsmsm - VFS module for handling offline files with Tivoli Storage Manager Space Management
SYNOPSIS
vfs objects = tsmsm
DESCRIPTION
This VFS module is part of the samba(7) suite.
The tsmsm VFS module is an extension for handling offline files with Tivoli Storage Manager Space Management.
It tries to avoid calling expensive DMAPI calls with some heuristics based on the fact that number of blocks reported of a file multiplied
by 512 will be bigger than 'online ratio' of actual size for online (non-migrated) files. If heuristic check fails, the module calls DMAPI
and asks for a specific attribute which is present for offline (migrated) files. If this attribute presents, the file is considered
offline.
This module is not stackable.
OPTIONS
tsmsm:hsm script = [ path to hsm script ]
hsm script should point to a shell script which accepts two arguments: operation and filepath. the tsmsm module only uses "offline" for
operation to set the file under filepath offline.
tsmsm:online ratio = [ number ]
Ratio to check reported size against actual file size. The default value is 0.5.
tsmsm:dmapi attribute = [ attribute-name ]
Name of a DMAPI attribute that is present when a file is offline. The default is "IBMobj" (which is what GPFS uses).
tsmsm:dmapi value = [ value for the DMAPI attribute ]
Value that the DMAPI attribute should have for the file to be considered offline. The default is empty (no value required).
EXAMPLES
A GPFS mount with TSM support can be exported via Samba as follows:
[gpfs_tsm_share]
vfs objects = tsmsm gpfs
path = /test/gpfs_mount
VERSION
This man page is correct for version 4.0 of the Samba suite.
AUTHOR
The original Samba software and related utilities were created by Andrew Tridgell. Samba is now developed by the Samba Team as an Open
Source project similar to the way the Linux kernel is developed.
Samba 4.0 06/17/2014 VFS_TSMSM(8)