Hi,
I need to split the fields in some text strings into separate variables.
The fields are separated by pipes.
The strings look roughly like this:
CUSTNAME|hostname|userid|gecos field|staff|disabled||SUDO
Currently I can do it using something like cut -d"|" -f1, but when I put that into... (4 Replies)
Hi,
I have line in input file as below:
3G_CENTRAL;INDONESIA_(M)_TELKOMSEL;SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL
My expected output for line in the file must be :
"1-Radon1-cMOC_deg"|"LDIndex"|"3G_CENTRAL|INDONESIA_(M)_TELKOMSEL"|LAST|"SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL"
Can someone... (7 Replies)
Hello everyone
Sorry I have to add another sed question. I am searching a log file and need only the first 2 occurances of text which comes after (note the space) "string " and before a ",". I have tried
sed -n 's/.*string \(*\),.*/\1/p' filewith some, but limited success. This gives out all... (10 Replies)
logs:
"/home/abc/public_html/index.php"
"/home/abc/public_html/index.php"
"/home/xyz/public_html/index.php"
"/home/xyz/public_html/index.php"
"/home/xyz/public_html/index.php"
how to use "cut" or "awk" or "sed" to get the following result:
abc
abc
xyz
xyz
xyz (8 Replies)
I came across and unexpected behavior with redirections in tcsh. I know, csh is not best for redirections, but I'd like to understand what is happening here.
I have following script (called out_to_streams.csh):
#!/bin/tcsh -f
echo Redirected to STDOUT > /dev/stdout
echo Redirected to... (2 Replies)
Hello.
Following recommendations for one of my threads, this is working perfectly :
#!/bin/bash
CNT=$( grep -c -e "some text 1" -e "some text 2" -e "some text 3" "/tmp/log_file.txt" )
Now I need a grep success for some thing like :
#!/bin/bash
CNT=$( grep -c -e "some text_1... (4 Replies)
How to use "mailx" command to do e-mail reading the input file containing email address, where column 1 has name and column 2 containing “To” e-mail address
and column 3 contains “cc” e-mail address to include with same email.
Sample input file, email.txt
Below is an sample code where... (2 Replies)
Dear Ladies & Gents,
I have a requirement to delete all the log files in /var/log/test directory that are older than 10 days and their first line begin with "MSH" or "<?xml" or "FHS". I've put together the following BASH script, but it's erroring out:
for filename in $(find /var/log/test... (2 Replies)
Hello.
System : opensuse leap 42.3
I have a bash script that build a text file.
I would like the last command doing :
print_cmd -o page-left=43 -o page-right=22 -o page-top=28 -o page-bottom=43 -o font=LatinModernMono12:regular:9 some_file.txt
where :
print_cmd ::= some printing... (1 Reply)
Discussion started by: jcdole
1 Replies
LEARN ABOUT DEBIAN
beacon
BEACON(8) Linux System Managers Manual BEACON(8)NAME
beacon - transmit periodic messages on an AX.25 port.
SYNOPSIS
beacon [-c <src_call>] [-d <dest_call>[digi ..]] [-l] [-m] [-s] [-t interval] [-v] port "message"
DESCRIPTION
Beacon transmits the message text on an AX.25 port every thirty minutes. The message is addressed to "IDENT" and is sent using the AX.25
callsign of the port specified on the command line. Typically the message text will contain spaces and/or other characters, therefore the
message text should be enclosed in quotes to ensure they are passed to the beacon program untranslated.
OPTIONS -c Configure the source callsign for beacons. The default is to use the interface callsign.
-d Configure the destination callsign for beacons. The default is "IDENT". Optional: Digipeaters may follow, separated with
spaces. Use -d "DEST DIGI1 DIGI2 .."
-l Enables the logging of errors to the system log, the default is off.
-m Changes the destination address to "MAIL" and sends the message text once only. This option overrides any destination call-
sign given with the -d option.
-s Sends the message text once only.
-t interval The time interval between messages, the interval is given in minutes and the default is thirty minutes.
-v Display the version.
SEE ALSO ax25(4), axports(5).
AUTHORS
Alan Cox GW4PTS <alan@cymru.net>
Jonathan Naylor G4KLX <g4klx@g4klx.demon.co.uk>
David Brooke G6GZH <db@fusk.demon.co.uk>
Linux 10 February 1997 BEACON(8)