Search Results

Search: Posts Made By: rujuta_rahalkar
1,685
Posted By rujuta_rahalkar
Try this out.. This code will take all files...
Try this out..
This code will take all files with '.out' as extension and search for the string in those file and finally print the desired lines into a new file.

ls *.out | while read name
do...
8,409
Posted By rujuta_rahalkar
Can you please tell me what does this part of the...
Can you please tell me what does this part of the code exactly does --
&& !a[substr($1,1,3)]++'
7,309
Posted By rujuta_rahalkar
Have a doubt for the below code -- nawk...
Have a doubt for the below code --

nawk '$1=$1' FS='\n' RS= ORS='\n\n' infile


In this code there is no print statement. Even then we get the output after running this script. How is that...
4,099
Posted By rujuta_rahalkar
You can use the below command to get the 1st 160...
You can use the below command to get the 1st 160 characters of the text . (test is the file which contains the text)

head -160c test

Note: the new line characters and spaces are also...
4,099
Posted By rujuta_rahalkar
I have just made a small addition to the previous...
I have just made a small addition to the previous code ..


cat test | awk ' $0 ~ /Additional Text/ { print $0; getline;
while ( $0 !~ /Original Severity/ )
{
print $0;
getline;
}
}
' |...
4,099
Posted By rujuta_rahalkar
Hi This is the script for date conversion - ...
Hi
This is the script for date conversion -
File test contains the entire text.

cat test | awk -F ' ' ' $0 ~ /Event Time/ { printf $6 "-"; if ($0 ~ /Nov/ ) printf "11"; if ($0 ~ /Dec/ )...
4,099
Posted By rujuta_rahalkar
I did not get about which value after the = ... u...
I did not get about which value after the = ... u need ..
Could you please explain tht ?
4,099
Posted By rujuta_rahalkar
Hi Please try the below code .. Here...
Hi

Please try the below code ..
Here 'test' is the file which contains the entire text.

cat test | awk ' $0 ~ /Additional Text/ { print $0; getline;
while ( $0 !~ /Original...
Showing results 1 to 8 of 8

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