Search Results

Search: Posts Made By: frappa
12,389
Posted By frappa
This could fit your needs: cd in your...
This could fit your needs:

cd in your working directory and:


mydate=`date +%Y%m%d_%k%M%S`
for myfile in `ls *.txt.xls`
do
newname=`echo ${myfile} | sed "s/\./\_${mydate}\./" `
mv...
1,684
Posted By frappa
Hi, a couple of good guides: Bash Guide...
Hi,

a couple of good guides:
Bash Guide for Beginners (http://tldp.org/LDP/Bash-Beginners-Guide/html/index.html) : a bash scripting beginner's guide with plenty of example scripts.
...
3,036
Posted By frappa
hi, I think you may have a look at: bash -...
hi,
I think you may have a look at:
bash - How do I send a file as an email attachment using Linux command line? - Stack Overflow...
13,459
Posted By frappa
Hi, if the database is Oracle, you may use: ...
Hi,

if the database is Oracle, you may use:
Update...
...
SET SERVEROUTPUT ON
DEFINE MYDATE = _DATE
exec dbms_output.put_line('Update completed at ' || TO_CHAR(MYDATE) );
SET SERVEROUTPUT...
Forum: Ubuntu 11-24-2012
9,934
Posted By frappa
Hi tkota: 1. the sshd_config files seems ok,...
Hi tkota:

1. the sshd_config files seems ok, I don't think you should edit it.

2. check for correct permissions on the server-side ~/.ssh directory of the user you are going to login with; they...
750
Posted By frappa
Hi, have a look at man find useful...
Hi,

have a look at
man find

useful expression fitting your needs may be:
ctime, mtime

remember that:
Numeric arguments can be specified as
+n
for greater than n,

-n
for less than n,...
Forum: Red Hat 11-24-2012
1,872
Posted By frappa
Hi, if you mean to enable general query log,...
Hi,

if you mean to enable general query log, you may find hints at:
MySQL query logging (http://www.redips.net/mysql/query-logging/)
but be aware that this kind of logging is generally intended...
13,459
Posted By frappa
Hi, have you tried to store the queries'...
Hi,

have you tried to store the queries' results in files and then going to parse those files in order to get the values for the intended variables?

see ya
fra
Forum: Fedora 09-30-2012
1,887
Posted By frappa
Hi, the sequence I usually follow in such...
Hi,
the sequence I usually follow in such situations is the following:
1. create a new partition on the remaining free space of the physical disk (say the new partition is call /dev/sda1);
2....
2,887
Posted By frappa
Hi, if the SQL dialect is Oracle SQL*Plus, a...
Hi,
if the SQL dialect is Oracle SQL*Plus, a possible solution is in the last post to the following orafaq thread:
OraFAQ Forum: Unix Passing String Arguments to SQL*Plus from a Unix Shell...
1,276
Posted By frappa
sed 's/ .*|/|/' <file.txt> output: ...
sed 's/ .*|/|/' <file.txt>
output:
abc|bd|bkd123 .. 1space
abc|badf|bakdsf123 .. 2space
abc|bqe|bakuowe .. 3space
Forum: IP Networking 08-21-2012
2,950
Posted By frappa
== ssh port forwarding == -- Case 1.1. -...
== ssh port forwarding ==
-- Case 1.1. - Opening ssh forwarding tunnel from local host client1 to remote host host1 --
on host client1 launch command:
<client1> # ssh -t -L...
1,370
Posted By frappa
ok so, if he made the search and removal job via...
ok so, if he made the search and removal job via command line there is a chance his commands are still recorded into the history file.
if you share the same operating system login account on the...
1,370
Posted By frappa
Hi, did your colleague made space-cleaning...
Hi,

did your colleague made space-cleaning via Oracle (i.e. by shrinking datafiles, removing old RMAN backups, etc.) or did he operated via operating system commands (i.e. deleting filesystem...
1,716
Posted By frappa
Hi, please check that the cat command is inside...
Hi,
please check that the cat command is inside backticks (the last one seems a single quote instead).

Moreover, the -c switch of tar command results in the re-creation of the .tar archive at...
881
Posted By frappa
egrep "^Hello" A.txt > B.txt
egrep "^Hello" A.txt > B.txt
700
Posted By frappa
Hi, check your definition of currentname...
Hi,
check your definition of currentname variable, and if there actually is a file named like the value set in currentvalue variable.

see ya
fra
1,370
Posted By frappa
ok, it seems that the previous guy was backing up...
ok, it seems that the previous guy was backing up with cpio directly to a tape device.

You may find infos about the execution and outcomes of the backup with ps -eaf (and looking for the presence...
700
Posted By frappa
Hi, in a shell environment what you may do...
Hi,

in a shell environment what you may do is using sed to generate the new file name you want to rename the original file to, i.e.

[...]
currentname=mainlog.YYYYMMDD.log
newname=`echo...
1,370
Posted By frappa
Hi, try to collect some additional infos,...
Hi,

try to collect some additional infos, i.e.:
- look inside /var/spool/cron in order to read all the system users' crontabs;
- does the company use a centralized backup software? if yes, it...
1,764
Posted By frappa
Hi, did you already look to see if rsync may...
Hi,
did you already look to see if rsync may fit your needs?
see ya
fra
776
Posted By frappa
cat input.txt | awk ' NR % 3 == 1 { printf $1 " "...
cat input.txt | awk ' NR % 3 == 1 { printf $1 " " }; NR % 3 == 2 { printf $0 } ; NR % 3 == 0 { print $1 , $3 } '

look for 'modulo' operator on awk manual.
see ya
fra
1,184
Posted By frappa
Hi, may you please show the output of the...
Hi,
may you please show the output of the running script and the output of cat path/filename.txt| grep 'P_BUS_DATE'?
11,563
Posted By frappa
renchar="2" for file in `ls /directory` do ...
renchar="2"
for file in `ls /directory`
do
prefix=`echo ${file} | cut -c1-4`
suffix=`echo ${file} | cut -c6-`
mv ${file} ${prefix}${renchar}${suffix}
done
2,158
Posted By frappa
hi, may you check what's the current output...
hi,

may you check what's the current output for netstat -an without piping to grep?

see ya
fra
Showing results 1 to 25 of 170

 

Featured Tech Videos

All times are GMT -4. The time now is 08:00 AM.
Unix & Linux Forums Content Copyright 1993-2019. All Rights Reserved.
Privacy Policy