Search Results

Search: Posts Made By: zaideeabu
23,852
Posted By zaideeabu
Would this logic work? FileReader fr = new...
Would this logic work?

FileReader fr =
new FileReader("grepcommands.txt");
BufferedReader br = new BufferedReader(fr);
String inputscript="";
String allscript = "";
sess= conn.openSession();...
8,657
Posted By zaideeabu
Work fine here too... :rolleyes: sh-3.2$...
Work fine here too... :rolleyes:

sh-3.2$ testing.txt
Enter the character
A
upper case
sh-3.2$ testing.txt
Enter the character
a
Small case
sh-3.2$ testing.txt
Enter the character
3...
4,002
Posted By zaideeabu
If I understand the problem correctly :confused:,...
If I understand the problem correctly :confused:, for kourne-shell, can do something like below:

#!/bin/ksh

file_cntr=0
while [[ $file_cntr != 4 ]]; do
# do copy file
scp ...

...
1,619
Posted By zaideeabu
k-shell script
Assuming the list already exist;
list="liffe_trade2 ./eurexPrice ksh ..."

#!/bin/ksh
list=`echo $list | egrep "eurex | liffe"`

for item in $list
do
basename $item
done

OR simply
...
35,484
Posted By zaideeabu
Or if you prefer to add it manually, :eek: vi...
Or if you prefer to add it manually, :eek:
vi <filename>
go to end of each line <press $>
add ^M character <press CTRL+V followed by CTRL+M>
7,016
Posted By zaideeabu
Re: zip command
Have u tried ftp in ASCII mode ?
2,693
Posted By zaideeabu
Re: Very small Shell Script Help...
#!/usr/bin/ksh
if [[ $1 != "" ]]; then
ext=$1
else
echo "Not enough input arguments."
echo "Usage: basename $0 <extension_name>
exit
fi

if [[ ! -d $ext ]]; then
mkdir -p...
Showing results 1 to 7 of 7

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