Search Results

Search: Posts Made By: tiger99
2,212
Posted By tiger99
Thank you era. sed works very well
Thank you era.
sed works very well
2,212
Posted By tiger99
copy loses the text format
Hi
I try to copy part of text from one file to another file. My problem is the text in the new file loses all the format.

My code is:
#!/bin/sh
while red line
do
if [ "$line" != "THE...
23,146
Posted By tiger99
Hi All I have spent almost a week trying to...
Hi All
I have spent almost a week trying to resolve my cut issue.

I have two files:
new:
79 /vobs/aw/database/proc/awAcctMgmt/awGetOptionCallActionByLevel.proc@@/main/solmar08/1

80 ...
23,146
Posted By tiger99
Sorry, I probably didn't make my question clear. ...
Sorry, I probably didn't make my question clear.

I have a file (proc.txt) which has a list of lines I want to remove from a file (draft). I can not hard code the lines in my shell script since...
23,146
Posted By tiger99
Hi In my draft: author: date: ...
Hi
In my draft:
author:
date:
/vobs/aw/database2/a.proc@@/main/2
/vobs/aw/database3/b.proc@@/main/2
/vobs/aw/database5/c.proc@@/main/2

In my proc.txt
/vobs/aw/database3/b.proc@@/main/2
...
23,146
Posted By tiger99
copy and paste a specific line
Hi
I am having some trouble cut and paste a file based on the content of another file.

I have a file called draft. I need to cut and paste its content to another file based on the content of a...
22,513
Posted By tiger99
Hi All I have just realized that beside...
Hi All
I have just realized that beside removing anything after $$, I also need to remove anything before the file name.

That is, if my file has the following:...
22,513
Posted By tiger99
Hi Vino I tried your code. However, it doesn't...
Hi Vino
I tried your code. However, it doesn't solve my grep problem.

Do you have any other solution?

Thanks
22,513
Posted By tiger99
Hi All Thank you all for your help. I am using...
Hi All
Thank you all for your help. I am using cut, because it's easier to understand for me


I have an issue with grep before pipe the result to get the $$.. removed.

I have
grep ".proc"...
22,513
Posted By tiger99
someone post the similar problem as mine. It...
someone post the similar problem as mine.

It is to remove .null T from 'M000071.null T'
The script
echo 'M00071.null T' | sed 's#^\(M[0-9][0-9]*\)[.]null.*#\1#'
works

I try
echo...
22,513
Posted By tiger99
remove part of a line
Hi
I need some help with using shell script to analyze the content of a file. I hope someone can help me.

I have a file with content like the following:...
6,894
Posted By tiger99
file comparison script
Hi
I need to write a script that can check files in a folder one by one and compare against a fixed file.

i.e.
I have some files in folder_a
file1.txt
file2.txt
file3.txt
and a fixed file...
27,481
Posted By tiger99
Thank you Dennis for the example There is...
Thank you Dennis for the example

There is another substitution I need to do and I am having a lot of trouble getting it to work.

I need to check a file for any line that begins with...
8,265
Posted By tiger99
Hi shamrock Thanks for your help However...
Hi shamrock
Thanks for your help

However the code you suggested
ls -R | xargs grep "test"

gives me a huge list with ending "No such file or directory".
i.e.
grep: expr.sh: No such file or...
8,265
Posted By tiger99
searching content of files in the current and sub directories
Hi
I was wondering why command 2 doesn't work like command 1 below.

1.
find . -exec grep "test" '{}' \; -print

2.
ls -R | grep "test"

I am trying to search "test" from all the files...
27,481
Posted By tiger99
shell script to edit the content of a file
Hi
I need some help using shell script to edit a file.

My original file has the following format:

/txt/email/myemail.txt
/txt/email/myemail2.txt
/pdf/email/myemail.pdf...
84,446
Posted By tiger99
Hi porter sorry, I would not be doing any...
Hi porter

sorry, I would not be doing any "insert" SQL statement.

I need to
1. use shell script to read the first column of data in csv file
2. pass the data to a sybase stored procedure...
84,446
Posted By tiger99
Hi porter Should I be storing the data from csv...
Hi porter
Should I be storing the data from csv file in a variable?

I use sybase

Thanks
84,446
Posted By tiger99
Thank you porter for your reponse If I...
Thank you porter for your reponse

If I convert my excel file to csv file, is it possible to read the first column of data in csv file using shell script?

i.e (in my csv file I have)
1234,bob...
84,446
Posted By tiger99
Thanks for your reponse matrixmadhan But I...
Thanks for your reponse matrixmadhan

But I was told to use SH.

Does anyone know how to use SH to read excel data?

Thanks
84,446
Posted By tiger99
reading data from excel using shell script
Hi all
I am new to shell scripting.

I need to write a shell script that reads each row of an USER_ID colume in a excel file.

the excel has around 10000 rows of data.

Can someone gives me...
7,941
Posted By tiger99
Best Unix OS out there???
Hi all
I am interested in learning Unix OS. Does anyone know what is the most popular Unix OS out there and where I can download them?
Thanks in advance for your help
Showing results 1 to 22 of 22

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