Sponsored Content
Top Forums Shell Programming and Scripting Repeated lines-case sensitive Post 302941754 by Akshay Hegde on Monday 20th of April 2015 07:15:52 PM
Old 04-20-2015
Try

Code:
awk '!A[tolower($0)]++' infile > outfile

Test
Code:
akshay@Aix:/tmp$ cat infile
aaa
abc
AAA
aaA
aBC

Code:
akshay@Aix:/tmp$ awk '!A[tolower($0)]++' infile
aaa
abc

 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Unix user ID's case-sensitive?

It has been quite a while since I used UNIX. I am developing a security system and I was wondering if UNIX and/or LINUX user ID's are case-sensitive. i.e. can user 'daveb' and 'Daveb' exist on the same system with completely different authorizations/priorities, etc.? (3 Replies)
Discussion started by: dmilleville
3 Replies

2. UNIX for Dummies Questions & Answers

Is Hostname Case sensitive ?????

Hello users, I have a question ? I was just wondering whether the hostname on unix systems are case sensitive. For example in the system which I work. ping TestHost and ping testhost gives me the same output i.e I get the reply from the remote host Is this applicable for all... (3 Replies)
Discussion started by: ajphaj
3 Replies

3. UNIX for Dummies Questions & Answers

how to disable case sensitive on RHEL ?

Hi all, Im newbie, can i disable case sensitive on RHEL environment, and how? Thank you. (2 Replies)
Discussion started by: blesets
2 Replies

4. Shell Programming and Scripting

Ignore case sensitive in Case Switch

In a Case switch, how to ignore case sensitive in the test: e.g. case "$field" in "TEST) action1;; *) action2;; esac How to go in action1 in case of $field = TEST , or Test , or test or .... without enumerating all possibilities... Thanks,... (1 Reply)
Discussion started by: annelisa
1 Replies

5. Solaris

Tcp_conn_req_max_q (CASE-sensitive?)

I was instructed by my superior to change kernel parameter, adding up this parameter to /etc/system. Server is Solaris 10 on SPARC. Tcp_conn_req_max_q 1024In my Google search, all I know that the sentence is in small case (tcp_conn_req_max_q) but as you can see above, instruction given... (4 Replies)
Discussion started by: Olli.Lang
4 Replies

6. UNIX for Dummies Questions & Answers

How to take parameters as non case sensitive

Is there a way for me to take a parameter then store it in a variable and use its value as non case sensitive? Ex. Lets say i have a parameter which contains "Hey". Then im gonna store it to GR using GR=$1. CL=/install/$GR.g How can i make GR non case sensitive so that the... (1 Reply)
Discussion started by: khestoi
1 Replies

7. UNIX for Advanced & Expert Users

find iname is being case sensitive

Can someone please tell me why iname is being case sensitive with this? $ find /media -iname *load* 2>/dev/null /media/Part 2/stuff/Downloads /media/Part 1/Application Data/Mozilla/Firefox/Profiles/wnul4kj4.irc/chatzilla/downloads /media/Part 1/Bob_5-22-2010/Application... (5 Replies)
Discussion started by: cokedude
5 Replies

8. Shell Programming and Scripting

Case sensitive awk file split

Hello all, This is my first thread so please let me know if I am doing anything wrong or not following etiquette. I have an input file that looks like 123a12345 345a12445 245a66792 245A12345 215A23566 and I want output files that look like a.txt 123a12345 345a12445 245a66792 ... (7 Replies)
Discussion started by: monstrousturtle
7 Replies

9. Shell Programming and Scripting

Case sensitive in If loop .

Hi All, select app from the menu: ABC DEF GHI JKL ALL # ALL will select all the apps in the menu echo "Enter your option" read option; if then <execute the below command> elif # option is the 1 selection from menu...not ALL <execute the below command> else (14 Replies)
Discussion started by: Devaraj A
14 Replies

10. Shell Programming and Scripting

Please help me in using case sensitive command

Hello All, Please help me with this I need to create a cronjob that should delete all files which are older than 30days with '*.txt' and should not delete files with '*TEST*.txt' either file name TEST is upper or test lower case sensitive here's the script /DIR -type f -name '*.txt'... (7 Replies)
Discussion started by: krish_007
7 Replies
XtSetSensitive(3)						   XT FUNCTIONS 						 XtSetSensitive(3)

NAME
XtSetSensitive, XtIsSensitive - set and check a widget's sensitivity state SYNTAX
void XtSetSensitive(Widget w, Boolean sensitive); Boolean XtIsSensitive(Widget w); ARGUMENTS
sensitive Specifies a Boolean value that indicates whether the widget should receive keyboard and pointer events. w Specifies the widget. DESCRIPTION
The XtSetSensitive function first calls XtSetValues on the current widget with an argument list specifying that the sensitive field should change to the new value. It then recursively propagates the new value down the managed children tree by calling XtSetValues on each child to set the ancestor_sensitive to the new value if the new values for sensitive and the child's ancestor_sensitive are not the same. XtSetSensitive calls XtSetValues to change sensitive and ancestor_sensitive. Therefore, when one of these changes, the widget's set_values procedure should take whatever display actions are needed (for example, greying out or stippling the widget). XtSetSensitive maintains the invariant that if parent has either sensitive or ancestor_sensitive False, then all children have ances- tor_sensitive False. The XtIsSensitive function returns True or False to indicate whether or not user input events are being dispatched. If both core.sensitive and core.ancestor_sensitive are True, XtIsSensitive returns True; otherwise, it returns False. SEE ALSO
X Toolkit Intrinsics - C Language Interface Xlib - C Language X Interface X Version 11 libXt 1.1.3 XtSetSensitive(3)
All times are GMT -4. The time now is 05:42 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy