Search Results

Search: Posts Made By: brunlea
2,711
Posted By pravin27
Modification in your code for x in...
Modification in your code

for x in /home/dir/*.log
do
TXTFile=$(basename $x ".log")".txt"
[ -f $TXTFile ] && cp $TXTFile /home/dir2/
done
2,711
Posted By balajesuri
for txtfile in /home/dir/*txt do ...
for txtfile in /home/dir/*txt
do
filename=${txtfile%.*}
filename=${filename##*/}

if [ -e "${filename}.log" ]
then
cp $txtfile /home/newdir/
rm -f $txtfile...
2,711
Posted By pravin27
If there are two file one is ".log" and one is...
If there are two file one is ".log" and one is any type of extention then
below code solve your purpose.

for x in /home/dir/*.log
do
TXTFile=$(basename $x ".log")
[ -f $TXTFile.[^log]* ] &&...
1,661
Posted By Kochappa
Hello, The below command will be sending...
Hello,

The below command will be sending files one after the other.

scp file1.log file2.log user@servername:~/upload/If you have a good list of files then just use a simple for loop

cat >...
2,011
Posted By gary_w
Ah, I believe I misunderstood you in what data...
Ah, I believe I misunderstood you in what data you needed. For the sake of completeness then here is my fixed sed solution:


$ cat x.dat
<SOAP...
Showing results 1 to 5 of 5

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