10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I will appreciate if you help me here in this script in Solaris Enviroment.
i have 2 files :
2)... (10 Replies)
Discussion started by: teokon90
2. Shell Programming and Scripting
I'm trying to figure out how to speed up the following as I want to use multiple commands to search thousands of files.
is there a way to speed things up?
Example I want to search a bunch of files for a specific line, if this line already exists do nothing, if it doesn't exist add it... (4 Replies)
Discussion started by: f77hack
3. Shell Programming and Scripting
I need a program that read a file line by line and prints out lines 1, 2 & 3 after an empty line... An example of entries in the file would be:
SRVXPAPI001 ERRO JUN24 07:28:34 1775
REASON= 0000, PROCID= #E506 #1065: TPCIPPR, INDEX= 003F
... (8 Replies)
Discussion started by: Ferocci
4. Shell Programming and Scripting
I am doing some enhancements in an existing shell script. There it used the awk command in a function as below :
IFS=" " command eval 'awk "
result = $*
exit(result == 0)
It calls the function float_expr to evaluate two values ,... (1 Reply)
Discussion started by: mady135
I get a file which has all its content in a single row.
The file contains xml data containing 3000 records, but all in a single row, making it difficult for Unix to Process the file.
I decided to insert a new line character at all occurrences of a particular string in this file (say replacing... (4 Replies)
Discussion started by: ducati
I have data coming in 4 columns and there are new line characters \n in between the data. I need to remove the new line characters in the middle of the row and keep the \n character at the end of the line.
File is comma (,) seperated.
37,Airtel \n... (8 Replies)
Discussion started by: sasikari
7. Shell Programming and Scripting
So, I want to read line-by-line a text file with unknown number of files....
while ; do
b=`sed -n '$ap' test`
a=`expr $a + 1`
$here do something with b etc
the problem is that sed does not seem to recognise the $a, even when trying
sed -n ' $a p'
So, I cannot read... (3 Replies)
Discussion started by: hakermania
8. Shell Programming and Scripting
My awk program is failing. I figured out using command
od -c filename
that the last line of the file doesnt end with a new line character.
Mine is an automated process because of this data is missing.
How do i handle this?
I want to append new line character at the end of last... (2 Replies)
Discussion started by: pinnacle
9. Shell Programming and Scripting
I have some txt files. I have to create another text file which contains the portion starting from the format "Date Sex Address" to the end of the file. While using grep -n on Date it also gives me the previous line containg Date. and also Date may be DATE in some files.
My file is like this... (10 Replies)
Discussion started by: Amiya Rath
10. UNIX for Dummies Questions & Answers
I need to delete all lines in a file which starts with "|" character. Can some one assist me?
Thanks (2 Replies)
Discussion started by: borncrazy