Visit Our UNIX and Linux User Community

Search Results

Search: Posts Made By: systemsb
2,912
Posted By systemsb
it works
Sean

Thanks
S
2,912
Posted By systemsb
renaming xls file
I am trying to move and rename an excel file by appending date to it but i am not getting the desired result

mv SrcFiles/Sales.xls SrcFiles/SG_Archive/Sales_`date +%Y%m%d%H%M%S`.xls


result:- ...
4,663
Posted By systemsb
sqlldr help
1.The below script works perfectly fine in dev. However, i have been told that i cannot hardcode the password into the file during production impementation. Is their way i could ask the user to enter...
3,699
Posted By systemsb
getting list of directories on windows using ftp
is this possible ?

i want to get the complete path of current working directory and folders under that directory ( ignore the files in them ) on windows usingn ftp from a unix box

The reason i...
291,517
Posted By systemsb
windows to unix folder replication
Perdebro

How do i do it the other way round

eg. Let say, i have a main folder called abc on windows and similar folder on unix.

If i creat any subfolders to abc on windows, how do i...
3,024
Posted By systemsb
folder replication between windows and unix
1. How do i replicate folders between windows and unix.

if i create a subfolder under NDC in windows, it should automatically create a
subfolder in unix as well.

windows nt

/NDC/SUBFOLDERS...
2,810
Posted By systemsb
pls be more specific
pls be more specific
61,454
Posted By systemsb
What if number of fields are not known and they...
What if number of fields are not known and they vary among the lines
how do we capture and print them as shown above

while IFS=, read site space number . . . . . ( n number of fields )
79,904
Posted By systemsb
% scp /home/parthum1/* ...
% scp /home/parthum1/* user2@machine:/home/parthum2

/home/parthum1/ - Source Directory
user2 - user name of the destination machine
machine - machine name or ip address of the machine...
1,550
Posted By systemsb
mikie I think its trying to expand the...
mikie

I think its trying to expand the variable and since that variable is not intialized it is
replacing it with a BLANK.
see below

dam@athena:~$ echo '{ print $6 }'
{ print $6 }...
42,021
Posted By systemsb
If stdin opens a file and redirects the content...
If stdin opens a file and redirects the content of the file to a command
then echo should work

I know this works

dam@athena:~$ more < abc.txt
sssss

Why then doesnt it work with echo ?
1,881
Posted By systemsb
See below .... $vi a.sh ab=$(pwd) echo "...
See below ....

$vi a.sh
ab=$(pwd)
echo " "
echo "Current working directory is $ab"
FILE=$(basename $ab)
echo "FILE returns $FILE "
echo " "
ab=$(pwd)
echo "Current working directory is...
42,021
Posted By systemsb
echo with stdin
Why doesnt echo output the contents of the file abc.txt as shown below ?

chid@athena:~$ cat abc.txt
sssss
chid@athena:~$ echo < abc.txt

chid@athena:~$
3,231
Posted By systemsb
Plain Unix Certification for oracle developers
Hi

I have read every possible thread here on unix certification.

I was looking for a suggestion as to which is a reasonable certification in terms of price and familiarity in the market.

All...
4,226
Posted By systemsb
at the prompt and if you are in the current...
at the prompt and if you are in the current directory do the following

./filename
2,862
Posted By systemsb
Thanks for the reply could you please...
Thanks for the reply

could you please explain to me what this means

. \( ! -name . -prune \)
2,862
Posted By systemsb
renaming files
directory name = /usr/tom/1997

files -
ABC_1997_ST1_BCD.SQL
BCD_1997_ST1_EFG_SAB.SQL
TTT_EBC_1997_ST1_A.SQL

sub directory - /usr/tom/1997/jan

a) I want to just rename the all files...
4,675
Posted By systemsb
Try this
Are you spooling the file like this below..?

>>spool c:\SOMETHING_SOMETHING&&filedate.csv

then

Try

c:\SOMETHING_SOMETHING&&filedate..csv

You need to use two dots.
7,553
Posted By systemsb
double dashes
function date_diff
{
integer _dt1=$(date_to_num ${1:?})
integer _dt2=$(date_to_num ${2:?})
integer _ndt=0
if [[ $_dt2 -gt $_dt1 ]]
then
((_ndt=_dt2-_dt1))
fi
print -- $_ndt
}

...
11,587
Posted By systemsb
typeset and export command difference
Can anyone please explain what the difference is between these two commands

typeset - ?

export - i know with this even child process can read the variable

Declare - ?

i use bash shell
...
15,417
Posted By systemsb
It works
Thanks Everyone for your suggestions and tips
15,417
Posted By systemsb
Can you show me how to do using awk or sed ...
Can you show me how to do using awk or sed

Yes all the lines are of the same pattern
15,417
Posted By systemsb
string concatenation
my input file contains thousands of lines like below

234A dept of education
9788 dept of commerce
8677 dept of engineering

How do i add a delimeter ':' after FIRST 4 CHARACTERS in a line...
Showing results 1 to 23 of 23

 

Featured Tech Videos

All times are GMT -4. The time now is 12:43 PM.
Unix & Linux Forums Content Copyright 1993-2020. All Rights Reserved.
Privacy Policy