10 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
hi I made this simple script to extract data and pretty much is a list and would like to extract data of two words separated by commas and I would like to make a new text file that would list these extracted data into a list and each in a new line.
Example that worked for me with text file... (5 Replies)
Discussion started by: dandaryll
2. Shell Programming and Scripting
I need to count the number of errors associated with the two words occurring in the file. It's about counting the occurrences of the word "error" for where is the word "index.js". As such the command should look like. Please kindly help. I was trying: grep "error" log.txt | wc -l (1 Reply)
Discussion started by: jmarx
3. Shell Programming and Scripting
I want to grep a log ("server.log") for words in a separate file ("white-list.txt") and generate a separate log file containing each line that uses a word from the "white-list.txt" file.
Putting that in bullet points:
Search through "server.log" for lines that contain any word... (15 Replies)
Discussion started by: nbsparks
4. Shell Programming and Scripting
I have a input file like this.
30 | TXDatacenter | TXBackupDC
10 | UKDatacenter | UKBackupDC
0 | NLDatacenter | NLBackupDC
I need to get these values in different variables like this.
PriCenter1=TXDatacenter... (5 Replies)
Discussion started by: Visha
5. Shell Programming and Scripting
I have one long line text with semicolon used as separator between values in that line. Now, I want to separate the line into multiple line right after every 29th field.
example input line:
... (2 Replies)
Discussion started by: erlanq
6. Shell Programming and Scripting
I have a file which is delimetered by ',' i need to filter out a file with respect to the number of fileds in each line.
i neeed to filter out the lines with 8 column to another file and rest to another file.
... (3 Replies)
Discussion started by: ratheeshjulk
7. Shell Programming and Scripting
I have one line files with 17 records separated by a semi-colon. I need to create a variable from each record, which I can do via a separate awk for each one, but I know there has to be a better way. Along with pulling out the variable, I need to convert some url coding like a + to a space, etc.... (4 Replies)
Discussion started by: numele
8. UNIX for Dummies Questions & Answers
How to separate numbers and words(with full alphabets) in a particular file and store it in two different files.
Please help me out for this.Using shell scripting.
:confused::confused: (1 Reply)
Discussion started by: kamakshi s
9. Shell Programming and Scripting
Please help me in creating files through K-shell scripts.
I am having one file in this format.
I want to read the above file and create new file through k shell script.
The new file should looks like this.... (4 Replies)
Discussion started by: bsrajirs
10. UNIX for Dummies Questions & Answers
I want to list all the words in my file on a separate line.
I am using the bourne(sh)/bourne again shell(bash).
theA (2 Replies)
Discussion started by: Astudent