10-10-2016
That might be doable if you post the input data and the desired output. Which tools do you prefer?
Any attempts/ideas/thoughts from your side?
6 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi all,
I have a doubt in SQL Loader.
We have SEQUENCE function in SQL Loader or can create Sequence in Oracle database for generating a number sequence for
a column while loading data using SQL Loader into table or multiple tables.
My requirment is this.
For the first run in SQL... (2 Replies)
Discussion started by: vinoth_kumar
2 Replies
2. Shell Programming and Scripting
Hello,
I have a file that looks like this:
num11 num12 num13 word1
num21 num22 num23 word2
num31 num32 num33 word3
.
.
.
I would like to search for the lines that contain a given number, but I need to narrow the search only to the first field, that means that the number has to... (4 Replies)
Discussion started by: shira
4 Replies
3. Shell Programming and Scripting
Hi All,
I am doing a perl script validation for Phone numbers.
The normal phone number format is 01-32145.
I need to do two validations for the phone number
1) A valid phone number can have at least two digits as prefix and at least five digits as postfix. e.g. 01-01011
2) A... (5 Replies)
Discussion started by: subin_bala
5 Replies
4. UNIX for Advanced & Expert Users
a=`grep -i a.sh filename.sh|cut -d "|" -f4`
b=`expr $a + 1`
filename=`grep -i a.sh filename.sh`
while read line
do
echo $line
echo $filename
if
then
echo "entered if"
nawk ' BEGIN { FS="|"; OFS="|" }
{ sub('$a', '$b', $4)
print $0}' filename.sh
fi
echo "exit if"
done <... (1 Reply)
Discussion started by: hs.giri
1 Replies
5. Shell Programming and Scripting
Hi Everyone,
I have a flatfile "inbox.txt" which contains some information:
Location 0, folder "Inbox", SIM memory, Inbox folder
SMS message
SMSC number : "+24800000023"
Sent : Sat 04 Aug 2012 09:01:00 PM +0700
Coding : Default GSM alphabet... (5 Replies)
Discussion started by: testcase
5 Replies
6. Shell Programming and Scripting
Hello all
I have a data base of information that is formatted like so:
JSD4863 XXX-XX-XXXX DOE, JOHN C JR-II BISS CPSC BS INFO TECH 412/779-9445
I need the last four digits of the phone number. However, many lines contain
'garbage data' that I'm not interested in. So i used a 'for loop'... (7 Replies)
Discussion started by: smartSometimes
7 Replies
CHFN(1) Linux Reference Manual CHFN(1)
NAME
chfn - change your finger information
SYNOPSIS
chfn [ -f full-name ] [ -o office ] [ -p office-phone ] [ -h home-phone ] [ -u ] [ -v ] [ username ]
DESCRIPTION
chfn is used to change your finger information. This information is stored in the /etc/passwd file, and is displayed by the finger pro-
gram. The Linux finger command will display four pieces of information that can be changed by chfn : your real name, your work room and
phone, and your home phone.
COMMAND LINE
Any of the four pieces of information can be specified on the command line. If no information is given on the command line, chfn enters
interactive mode.
INTERACTIVE MODE
In interactive mode, chfn will prompt for each field. At a prompt, you can enter the new information, or just press return to leave the
field unchanged. Enter the keyword "none" to make the field blank.
OPTIONS
-f, --full-name
Specify your real name.
-o, --office
Specify your office room number.
-p, --office-phone
Specify your office phone number.
-h, --home-phone
Specify your home phone number.
-u, --help
Print a usage message and exit.
-v, --version
Print version information and exit.
SEE ALSO
finger(1), passwd(5)
AUTHOR
Salvatore Valente <svalente@mit.edu>
chfn October 13 1994 CHFN(1)