Search Results

Search: Posts Made By: cmarzan
1,809
Posted By cmarzan
Hi Scrutinizer...
Hi Scrutinizer (https://www.unix.com/members/302052697.html),

Thanks this works for me.

echo "${foo#"${foo%???????}"}"
1,809
Posted By cmarzan
sorry it should be from right to left. I stand...
sorry it should be from right to left. I stand corrected.

Thanks to you sir.
1,809
Posted By cmarzan
yes it is.. thanks a lot :)
yes it is..

thanks a lot :)
1,809
Posted By cmarzan
the value will be coming from for loop
the value will be coming from for loop
1,809
Posted By cmarzan
How to print 7 chars from left of filemane?
Hi Guys

Kindly help me on my predicament. I want to get the 7 chars of this filename



I need to get the ALL.cmd from this filehame filename_a_ALL.cmd

Thanks
1,299
Posted By cmarzan
many thanks to sir don cragun
many thanks to sir don cragun
1,299
Posted By cmarzan
How to get all the files inside a folder then put the value in a variable?
Hi

here is my code

for i in `ls *.cmd`
do
msg
aaa imp -U$AAAUSER -P$AAAUSERPWD <$i>>$curdir/import_tap.out -Jutf8
done

I can only get all files with .cmd extension. what i need to get...
1,119
Posted By cmarzan
How to find a filename of a folder?
Hi,

Please help me i have a file directory in .txt. inside this directory is a list of names of folders to find inside in a folder.

to make more easy to understand

below is my list inside...
2,596
Posted By cmarzan
Hi R.Signh, Here is the entire script that...
Hi R.Signh,

Here is the entire script that I'm working on.

oap_find_patch_fnc() {
echo " Enter PATCH number you want to retract or 99 to exit \c"
read patch_number...
2,596
Posted By cmarzan
Hi R.Signh, I got another problem i'm sorry....
Hi R.Signh,

I got another problem i'm sorry.

Since I already confirm that the file.cmd is existing, I need to do a cd.

p_num=$1
ret_object=$2
path_2=$3

value=`find -type f -name...
2,596
Posted By cmarzan
Hi R.Singh, Many thanks to you... below...
Hi R.Singh,

Many thanks to you...

below is the result of the command you gave to me

cat: check_file_status.ksh: No such file or directory
File present in directory/sub directories....
2,596
Posted By cmarzan
Hi R.Singh, Thanks for you effort. Here...
Hi R.Singh,

Thanks for you effort.

Here is the example of the structure of a folder

MainFolder

Sub-folder_1
Sub-folder_1.1
Sub-folder_1.2

Sub-folder_2
Sub-folder_2.1...
2,596
Posted By cmarzan
find Files in sub-directory
Hi

Just want to ask, Is it possible to find a file from a directory up to its sub-directories?

Thanks,
cmarzan
680
Posted By cmarzan
Many thanks to you guys...
Many thanks to you guys...
680
Posted By cmarzan
What -f can do?
Just want to ask if -f can also use to check if a directory is existing. Below is my code



oap_find_patch_fnc() {
echo " Enter patch number you want to retract or 99 to exit \c"
read...
688
Posted By cmarzan
Thanks a lot Aia it's now working ok...
Thanks a lot Aia it's now working ok...
688
Posted By cmarzan
What wrong?
oap_ret_fnc() {
echo " Enter patch number you want to retract or 99 to exit\c"
read ret_patch

if [$ret_patch == 99]
then
exit 0
else
if [ -f "$ret_patch" ]
then
mv...
Showing results 1 to 17 of 17

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