how to concatenate a string and variable like
a=rahul
and i want to put it into another variable 'b' as "rahul_prasath"
i dont want to use another variable for "_prasath"
how to do it? (1 Reply)
I'm trying to concatenate records from 2 files and output it to a third file. The problem I'm running into is that it seems like the "While" command is limited to processing one file at a time. It seems like you could read a record from file1 into a variable. Then do the same for the for file2.... (4 Replies)
Hello,
I have got one file with more than 120+ million records(35 GB in size). I have to extract some relevant data from file based on some parameter and generate other output file.
What will be the besat and fastest way to extract the ne file.
sample file format :--... (2 Replies)
Hi,
I want to display the string value with number value. I dont know how to display. Can anyone help me.
This is my code
export A=${file_name}
echo $a $b $sum | awk '{ printf "%011.f,%014.f,%014.f\n", $1,$2,$3}' >> ${MRR_OUTPUT}
the out put shold be
${A}, $a, $b
filename,... (2 Replies)
I want o add a variable in addition to a file which will be send with sendmail. I have problems to find the correct syntax for concatenating this variable called $MyVariable.
sendmail mai@domain.com </tmp/errormessage.txt $MyVariable]
Thanks for your help! (2 Replies)
I have a variable
var=string1:string2:string3
I want to get the string de-concatenated and put it as
var1=string1
var2=string2
var3=string3
Thanks in advance.
---------- Post updated at 02:18 PM ---------- Previous update was at 01:45 PM ----------
I got the solution as below:... (2 Replies)
I have a data of 1 lac lines with the following format
abcde,1,2,3,4,
,ee
,ff
,gg
,hh
,mm
abcde,3,4,5,6,
,we
,qw
,as
,zx
,cf
abcde,1,5,6,7,
,dd
,aa
,er
....
.... (6 Replies)
Hello,
Can somebody help me to solve this inconsistent data issue. I have a pipe delimiter file and one of the column is a comment. I am trying to concatenate into one single sentence. For instance, I have a file actually with 2 records but the way it considers the first record is as different... (3 Replies)
addgroup(8) System Manager's Manual addgroup(8)NAME
addgroup - Adds a new group interactively
SYNOPSIS
/usr/sbin/addgroup
DESCRIPTION
Security Note
If you have enhanced security installed on your system, you should use the dxaccounts program to add a group. See Security and the dxac-
counts(8) reference page for more information.
The addgroup command is an interactive program for adding new groups to the /etc/group file. The program prompts you for specific informa-
tion and informs you of its activity and error conditions.
Only the superuser can execute this command.
The program performs the following tasks: Queries for a new group name. The default can be chosen by pressing the Return key, which will
cause the program to exit without adding a new group. Enter the new group name, 8 characters or less, or Return to exit. If the new group
entered already exists in the /etc/group file, the program informs you of this and cycles back to the query for a new group name. If the
new group entered does not already exist, the program continues. Queries for a group number (GID) for the new group. A default GID, which
is based on previously existing GID's in the /etc/group file, is displayed and can be selected by pressing the Return key. Enter a new GID
or accept the default. If the new GID entered already exists in the /etc/group file, the program informs you of this and cycles back to
the query for a new group number (GID). If the new GID entered does not already exist in the /etc/group file, the program uses this GID
and adds the new group to the /etc/group file.
At this point, the program ends.
This interface has been superseded by the groupadd command-line interface, and the Account Manager (dxaccounts) graphical user interface.
RESTRICTIONS
The group name is limited to eight characters.
EXAMPLES
Enter a new group name or <Return> to exit: newgroup Enter a new group number [112]:
FILES
Specifies the command path. Group file Lock file
SEE ALSO
Commands: adduser(8), dxaccounts(8), groupadd(8), removeuser(8)
Files: group(4)addgroup(8)