Search Results

Search: Posts Made By: GERMANICO
1,902
Posted By GERMANICO
always the same message!!!!!! ...
always the same message!!!!!!


CR_CHR_GSM_*.data.gz: No such file or directory
1,902
Posted By GERMANICO
the same message: CR_CHR_GSM_*.data.gz:...
the same message:


CR_CHR_GSM_*.data.gz: No such file or directory
1,902
Posted By GERMANICO
Ksh script: std Out/err
Hello gurus, this is part of my script:


ls -1 ${MyFile} >> ${dir_log}ListFile${Now}.tmp
FILENUM=`cat ${dir_log}ListFile${Now}.tmp| wc -l | awk '{print $1}'`>> /dev/null
if [ ${FILENUM} -lt 1...
4,518
Posted By GERMANICO
KSH: substitution character, AWK or SED?
Hi Gurus,
I am working with a korn shell script. I should replace in a very great file the character ";" with a space.
Example:

2750;~
2734;~
2778;~
2751;~
2751;~
2752;~

what the...
4,666
Posted By GERMANICO
all ok I mistook me...!!!! Thanks
all ok I mistook me...!!!!

Thanks
4,666
Posted By GERMANICO
Hi, the command works, but the result is not...
Hi,
the command works, but the result is not correct. In output it always brings the whole line....
4,666
Posted By GERMANICO
good idea, but I get this error: gzcat:...
good idea, but I get this error:


gzcat: compressed data not read from a terminal. Use -f to force decompression.
4,666
Posted By GERMANICO
KSH: A PROBLEM awk SUBSTRING
Hi Gurus,
I am working with a korn shell script to simplify some operations of creation file of spool for a Bulk-Copy. Thi is my code:

In a for cycle:

gzcat ${file} |awk '{ print...
2,178
Posted By GERMANICO
Hi, could you make an example of your problem?
Hi, could you make an example of your problem?
2,107
Posted By GERMANICO
I recover the parameters from a file of...
I recover the parameters from a file of configuration in this way:

##### Constants
# recover properties from file
. ../cfg/init.cfg

these are the values:


DIRLIST="20101227 20101228...
8,895
Posted By GERMANICO
try very easy: diff file1 file2 | tail...
try very easy:


diff file1 file2 | tail +2 | cut -d">" -f2
2,107
Posted By GERMANICO
KSH SHELL: problem calculation number of lines inside compressed file
Hi Gurus,
I am working with a korn shell script to simplify some operations of calculation number of lines inside compressed file.
The called function (inside a cycle) is the following:

...
3,016
Posted By GERMANICO
edit your file with VI: ...
edit your file with VI:


:1,$s/#regex/regex/g
2,348
Posted By GERMANICO
you try the connection directly from yours prompt...
you try the connection directly from yours prompt dos in this way:

ssh -l<user> <hostname>
2,348
Posted By GERMANICO
Try: stty erase n^ stty erase b^
Try:


stty erase n^
stty erase b^
6,271
Posted By GERMANICO
Try: for file in *.csv do file_new=`echo...
Try:

for file in *.csv
do
file_new=`echo ${file} |awk 'BEGIN {FS="_"} {print $1 "_" $2 ".csv"}'`
mv ${file} ${file_new}
done
1,630
Posted By GERMANICO
Hi, could you make an example of your problem?
Hi, could you make an example of your problem?
Forum: Open Source 01-25-2011
340,811
Posted By GERMANICO
VI...!
ONLY VI!!!
13,032
Posted By GERMANICO
dear signor Corona, I could have understood...
dear signor Corona,
I could have understood badly also, but my solution it was alone to help...
I don't need his useless lesson
13,032
Posted By GERMANICO
Use SFTP.exp ...
I had a similar problem, and I have resolved with this script:

#!/usr/local/bin/expect -f #<---insert here your expect program location
# procedure to attempt connecting; result 0 if OK, 1...
5,210
Posted By GERMANICO
#!/bin/ksh CHECKFOUND=`ls -ltr dropez* | grep...
#!/bin/ksh
CHECKFOUND=`ls -ltr dropez* | grep -c dropez`
if [[ ${CHECKFOUND} -eq "8" ]]
then
do stuff
else
do other stuff
fi

this solution is very similar, but In this way, you have...
181,433
Posted By GERMANICO
****** ksh *******
ONLY KSH!
3
1,738
Posted By GERMANICO
Describe a bit more in detail what you want to...
Describe a bit more in detail what you want to do, thanks.
11,844
Posted By GERMANICO
....the same
exactly the same...!
I was joking....
11,844
Posted By GERMANICO
another solution
without the command "gzip" but with the command "gzcat"...
it is faster...:b:

for files in *.gz
do
FILE=`echo ${files} | cut -d"." -f1`
gzcat ${files}| tail +2 > ${FILE}
mv ${files}...
Showing results 1 to 25 of 28

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