05-19-2012
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi All,
How to remove a box like special character which appears at the end of a string/line/record. I have no clue what this box like special character is. It is transparent square like box. This appears in a .DAT file at the end of header.
I'm to compare a value in header with a parameter.... (16 Replies)
Discussion started by: Qwerty123
16 Replies
2. Shell Programming and Scripting
Hi All,
I have named a file with current date,time and year as follows:
month=`date | awk '{print $2}'`
date=`date | awk '{print $3}'`
year=`date | awk '{print $6}'`
time=`date +%Hh_%Mm_%Ss'`
filename="test_"$month"_"$date"_"$year"_"$time".txt"
> $filename
The file is created with a... (2 Replies)
Discussion started by: amio
2 Replies
3. Shell Programming and Scripting
Hi Friends,
I have .txt file which has 13000 records.
Each record is 278 character long.
I am using below code to extract the string and it takes almost 10 minutes.
Any suggestion please.
cat filename.txt|while read line
do
f1=`echo $line|awk '{print substr($1,1,9)}'`
f2=`echo... (6 Replies)
Discussion started by: ppat7046
6 Replies
4. Shell Programming and Scripting
I have a file with "@" in every line
fdgfgddfg@sfsdfdsf@dfdfd@@vfdfsdfd@
sfsdfs@sdfd@gfhfgh@@ddffg@sdf@
srfgtfsdfs@sdfertrd@eergfhfgh@@ddffg@sdf@
wttrtrt@sdfd@sdfdf@@sdfdfds@@@
I need to remove all the fourth and onwards occurences of "@".
so my final o/p would be
fdgfgddfg@sfsdfdsf@dfdfd@... (7 Replies)
Discussion started by: Shivdatta
7 Replies
5. Shell Programming and Scripting
I need to remove new line character from end of file.
Suppose here are content.
a|b|c|d|r
a|b|c|d|r
a|b|c|d|r
<new line>
that means file contains 4 lines but data is there in 3 lines.
so I want that only 3 lines should be there in file.
Please help (20 Replies)
Discussion started by: varun940
20 Replies
6. Shell Programming and Scripting
Hi,
I am trying to remove lines once a string is found till another string is found including the start string and end string. I want to basically grab all the lines starting with color (closing bracket). PS: The line after the closing bracket for color could be anything (currently 'more').... (1 Reply)
Discussion started by: Dabheeruz
1 Replies
7. Shell Programming and Scripting
how to Remove comma as last charector in end of last line of file:
example:
input file
---------------
aaaaaa,
bbbbbb,
cccc,
12345,
____________
output file :
-----------
aaaaaa,
bbbbbb, (6 Replies)
Discussion started by: RahulJoshi
6 Replies
8. Shell Programming and Scripting
Hi,
How can I generate a string of random characters (alpha+numeric) of a particular length ?
For e.g. for
n=5, output = 'kasjf'
n=10, output = 'hedbcd902k'
Also, please let me know if random (valid) dates could also be generated.
Thanks (7 Replies)
Discussion started by: rishigc
7 Replies
9. Shell Programming and Scripting
Good day, I am a newbie here and thanks for accepting me
I have a task to modify input data where my input data looks like
123|34567|CHINE
1|23|INDIA
34512|21|USA
104|901|INDIASee that my input has two columns with different character length but max length is 5 and minimum length is 0 which... (1 Reply)
Discussion started by: fastlearner
1 Replies
10. Shell Programming and Scripting
im trying to get
awk to print the string between 3rd and 4th backslashs to end of line
test could be any word
this
http://example.com/test/ >to this
http://example.com/test/ > testalso the other way round insert string at end of line... (13 Replies)
Discussion started by: bob123
13 Replies
LEARN ABOUT OSX
submitdiaginfo
SubmitDiagInfo(8) BSD System Manager's Manual SubmitDiagInfo(8)
NAME
SubmitDiagInfo -- sends diagnostic information to Apple
SYNOPSIS
SubmitDiagInfo
DESCRIPTION
SubmitDiagInfo is a system process which runs periodically. If the user has opted-in for automatic reporting of diagnostic and usage infor-
mation, then SubmitDiagInfo collects and sends to Apple any recent diagnostic information which has not yet been sent to Apple.
SubmitDiagInfo also cleans up any diagnostic and usage information which was created more than one month ago and is no longer needed.
Sending diagnostic and usage reports to Apple helps us improve the quality and performance of our products and services. It helps Apple
identify common usage trends and issues that enable us to allocate our resources efficiently, and it helps us provide better support services
to you and other customers. All of the diagnostic and usage information is collected anonymously from your computer in a way that does not
personally identify you. Reports may include the following information:
- Details about application or system crashes, freezes, or kernel panics.
- Information about events on your computer (e.g. whether a certain function, such as waking your computer was successful or not).
- Usage information (e.g. data about how Apple and third party software, hardware and services are being used).
Automatic reporting of diagnostic information is off by default and no information is sent to Apple unless a user has opted-in to automatic
collection of diagnostic information. A user is offered the opportunity to opt-in for automatic collection of additional diagnostic and
usage information after the user has manually sent a crash, hang or panic report to Apple. Users may at any time opt in or out of automatic
reporting in the Security & Privacy pane of the System Preferences application under the "Privacy" tab.
All diagnostic and usage information which is eligible for automatic reporting is visible in the Console application under the "DIAGNOSTIC
AND USAGE INFORMATION" heading in the application's sidebar. (The information appears here even if a user has not yet opted-in for automatic
reporting.) For security purposes, some system diagnostic information will only be visible to admin users and will only be submitted when an
admin user is logged in.
Users who need technical support should use http://www.apple.com/support or other authorized support channels. Developers who are ADC mem-
bers should submit bug reports using http://bugreporter.apple.com in order to allow for two way communication between Apple and the bug
reporter.
SEE ALSO
ReportCrash(8)
Mac OS June 2, 2019 Mac OS