Search Results

Search: Posts Made By: badbunny9316
23,117
Posted By badbunny9316
File java and shell script is at different location
Hi durden_tyler,

Thanks for your code. I have try it but I encounter some error. For your info my java code and shell script is at different location.So, I try to specify the java code location...
23,117
Posted By badbunny9316
Pass string from shell script to java
Hi,

I,m writing a program in shell script and currently this script is calling a java program.

I have a problem to pass string variable from my shell script to the java program. I don't know on...
4,110
Posted By badbunny9316
Insert C code in shell script
Hi,

Anybody know on how to insert C code in shell script. I am writing BLOB data to a database table in C but I don't know on how to insert the C code in shell script. Thanks in advance.
22,395
Posted By badbunny9316
grep part of file name
Hi,

I have a problem to use grep in my script .

If I want to grep the file for example : PTWO9089.txt
The code below works .
grep ^PONE

But, I dont know on how to grep the file like this...
23,773
Posted By badbunny9316
It works!! Have to add new requirements~
Hi,

Thanks guys for all the script.
After reviewing all of your script, I have choose the one from alepi..
And my program has work after customizing the script a little bit..

Thank You so...
23,773
Posted By badbunny9316
Hi all, Thanks Franklin52 for the reminder. ...
Hi all,

Thanks Franklin52 for the reminder.

This is my desired output :

COM20090412_1.txt
COM20090412_2.txt
PONE145.txt
COM20090412_3.txt
PONE181.txt
COM20090412_4.txt

To devtakh :...
23,773
Posted By badbunny9316
Hi all, Let me explain ya.. In folder...
Hi all,

Let me explain ya..

In folder A, there are several file with different name.
Example :

PTWO121.txt
PTWO122.txt
PONE145.txt
PTWO151.txt
PONE181.txt
PTWO191.txt

I only want to...
23,773
Posted By badbunny9316
Thanks devtakh, But I think u have...
Thanks devtakh,

But I think u have misunderstand my problem.

PTWO is not the folder name. It is a file name.

Let me clear the situation to you. In folder A there are many different files...
23,773
Posted By badbunny9316
Thanks amitranjansahu, But my biggest...
Thanks amitranjansahu,

But my biggest problem right now is how to grep all the filename that start with PTWO and change them to the same new name. There are also other filename in the directory....
23,773
Posted By badbunny9316
Grep and rename the filename
Hi All,

Can you please help me.

The situation is like this. There are many different file name in this directory.
I have to grep all the file that the name start with "PTWO" and rename it to...
Showing results 1 to 10 of 10

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