10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi there,
I am new to Unix and had below requirement to finish my task.
I have file1.dat which has data as shown below.
case1.txt
case2.txt
case3.txt
case4.txt
file1.dat has only file names
I have folder which has above files mentioned in file1.dat
./all_files
case1.txt... (6 Replies)
Discussion started by: raj028
6 Replies
2. Shell Programming and Scripting
Hello Experts!
I am trying to perform a common task, searching data from within a file and placing what is found into another.However, I have not been able to figure the “How to” with this situation.
I need to search through all lines within this text and pull the first positional attributes... (5 Replies)
Discussion started by: leepet
5 Replies
3. Shell Programming and Scripting
Hi,
I have a sample file as shown below, I am looking for sed or any command which prints the complete word only from the input file.
Ex:
$ cat "sample.log"
I am searching for a word which is present in this file
We can do a pattern search using grep but I need to cut only the word which... (1 Reply)
Discussion started by: mohan_kumarcs
1 Replies
4. Shell Programming and Scripting
How to search a particular word in a file.
in my file contains lacks of rows. (2 Replies)
Discussion started by: pmreddy
2 Replies
5. Shell Programming and Scripting
Hi need help with a script or command
My requirement is
- I need to do a "ls -ltr tcserver*.syslog" files in /tmp, direct the output to a file
ls -ltr tcserv*.syslog | grep "Jan 31" | awk '{printf "\n" $9}' > jandat.logs
-Then open each file in above list and search for string/word,... (4 Replies)
Discussion started by: karghum
4 Replies
6. Shell Programming and Scripting
How to search for a word like "computer" in a column (eg: 4th field) of a '***' delimited file and add a column at the end of the record which denotes 'Y' if present and 'N' if not. After this, we need to again check for words like 'Dell' but not 'DellXPS' in 5th field and again add another column... (5 Replies)
Discussion started by: Jassz
5 Replies
7. Shell Programming and Scripting
HI,
I want to get few line from the file which is in .gz file. .gz file contains many txt files and I want to search a string in all these txt files and need to get the previous 3 line as output including current line(where search string present).
I tried the zgrep and got the line number,... (5 Replies)
Discussion started by: sateesh512
5 Replies
8. Shell Programming and Scripting
Hi
I'm trying to search for the last instance of the word 'cache' in a HTML file that I have downloaded from YouTube.
I'm using the following syntax, but an error is thrown when I try it.
grep -f "cache"
Also I wish to append the above grep command to the below so that the search for cache... (3 Replies)
Discussion started by: colmbell
3 Replies
9. Shell Programming and Scripting
Hi All,
I have a sql output file has below. I want to get the values 200000040 and 1055.49 .Can anyone help me to write a shell script to get this.
ACCOUNT_NO
------------------------------------------------------------
BILL_NO ... (8 Replies)
Discussion started by: girish.raos
8 Replies
10. Shell Programming and Scripting
Hello,
I have a file which contains some SQL statements. I need to take out the table name from the file. Table name will always end with "_t". can anyone help me in getting that?
for e.g.
---
SQL_STMT do_sql_insert: cmd="insert into account_t ( poid_DB, poid_ID0, poid_TYPE, poid_REV,... (9 Replies)
Discussion started by: vishy
9 Replies