Hi
for eg my file has:
val1 | val2 | val1 | val2 | val1 | val2 | val1 | val2 |
here i need to replace '|' with '|\n' where the occurence of '|' is divisble by 2
so that the output comes like this
val1 | val2 |
val1 | val2 |
val1 | val2 |
val1 | val2 |
Requesting suggestions in... (1 Reply)
Hi
My input file is like this for eg:
abc abc abc abc abc abc
i would like to replace "abc" with "cba" where the occurrence is divisible by 2
of eg here 2nd, 4th and 6th occurence shud be replace
can anyone suggest in awk or sed (11 Replies)
Hi,
I have a file, which contains ^C or ^A characters from mainfrme system, it's dec 192 or octal 300 hex C0. I want to replace this character with new line.
I used commands, but it didn't worked.
tr '\o300' '\n' <t >t2
#or
tr '\xC0' '\n' <t > t2
Can somebody help me to do... (2 Replies)
Hi guys,
I like to find the Line number of Nth Occurence of a Search string in a file.
If possible, if it will land the cursor to that particualar line will be great.
Cheers!! (3 Replies)
can you please tell me
(1) how to delete 1st and 3rd line only from a file.
(2) How to delete last 4 lines in a file that has 2 blank lines out of last 4 lines.
Thank you. (2 Replies)
Hello people,
Once more I need your help with SED/AWK
I need to delete up to the Nth occurence of a char (from the beggining) and until the Mth occurence of a char (from the end)
Example:
Input:
a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z
Output:
i,j
Must delete up to the... (2 Replies)
Hi,
I couldn't figure how to extract until last occurence of a character.
I have the string ./dir1/file1/abc.sh
The output should be /dir1/file1
So, the command should display the path until last occurence of "/".
Thanks. (3 Replies)
I have a large file and many lines are duplicated. I'm trying to delete lines with every second occurrence of a pattern. Did tried searching similar question but no luck.
I can delete all lines matching pattern with :g/pattern/d but don't want to lose data.
Sample pattern to delete... (6 Replies)
I have file in which the data looks like this,
01,0000000,xxxxxxx/
02,xxxxxxxx,yyyyyy/
03,test1,41203016,,/
01,0000000,xxxxxxx/
02,xxxxxxxx,yyyyyy/ ... (16 Replies)
Hello,
Environment:
I am under Ubuntu 18.04 bionic. I have an sql file consisting of 10K lines.
Objective:
What I am trying to attain is to remove everything coming after 2nd tab in each line. While searching for the answer, I found two answers and both gave expected result just for the first... (2 Replies)
Discussion started by: baris35
2 Replies
LEARN ABOUT DEBIAN
wifi-radar
wifi-radar(1) General Commands Manual wifi-radar(1)NAME
WiFi Radar - utility for managing WiFi profiles
SYNOPSIS
wifi-radar [OPTION]...
DESCRIPTION
WiFi Radar is a PyGTK2 utility for managing WiFi profiles.
It will look for the config file in /etc/wifi-radar/wifi-radar.conf. You can change that in wifi-radar.
If the configuration file does not exist, it will create it, so you must always run it within a correctly permitted account (as root or use
sudo or pam).
Recent versions partially implement WPA-TKIP with wpa_supplicant. You need a running wpa_supplicant installation with a /etc/wpa_suppli-
cant/wpa_supplicant.conf file. Then by setting in your /etc/wifi-radar/wifi-radar.conf file the "use_wpa = yes" option and "wpa_driver =
ipw" for example, wpa_supplicant will be launched when you connect using this profile.
But currently you can't set your wpa_supplicant options like the psk, proto, key_mgmt etc. using wifi-radar. Your wpa_supplicant configu-
ration file should be set and tested already. If you have different networks set in wpa_supplicant.conf, then you can switch using wifi-
radar.
The wifi-radar script accepts the following command-line options:
OPTIONS -v, --version for printing the version.
FILES
/etc/wifi-radar/wifi-radar.conf
See for more information.
BUGS
Probably lots!
Because of repeated scanning, WiFi Radar is very power consuming.
Please report bugs to the mailing list <https://lists.anl.gov/mailman/listinfo/wifi-radar>
MORE INFORMATION
The GIT repository is available at https://git.berlios.de/cgi-bin/gitweb.cgi?p=wifi-radar;a=summary
If you have questions, visit http://wifi-radar.berlios.de
AUTHOR
This Python program was originally written by Ahmad Baitaimal <ahmad@bitbuilder.com>. It has been maintained at various times by Brian
Elliott Finley <brian@thefinleys.com> and Sean Robinson <seankrobinson@gmail.com>. Contributions have been provided by:
o Douglas Breault <genkreton@comcast.net>
o Nicolas Brouard <nicolas.brouard@libertysurf.fr>
o Gary Case <gcase@redhat.com>
o Jon Collette <jonc@etelos.com>
o David Decotigny <com.d2@free.fr>
o Simon Gerber <gesimu@gmail.com>
o Joey Hurst <jhurst@lucubrate.org>
o Ante Karamatic <ivoks@ubuntu.com>
o Richard Monk <rmonk@redhat.com>
o Kevin Otte <kotte@redhat.com>
o Nathanael Rebsch <nathanael@dihedral.de>
o Andrea Scarpino <andrea@archlinux.org>
o Patrick Winnertz <winnie@debian.org>
SEE ALSO wifi-radar.conf(5)wpa_supplicant(8)WiFi Radar 2.0 July 2009 wifi-radar(1)