10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hello Team,
input text:... (7 Replies)
Discussion started by: chandana.hs
7 Replies
2. Shell Programming and Scripting
how to check
1. If variable is declared or not
2. If any value if assigned to variable or not.
in UNIX shell script (6 Replies)
Discussion started by: ace_friends22
6 Replies
3. Programming
are you suppose to only use one DIR declarations, for example
DIR *dir_ptr;
because I'm declaring mine like so:
DIR *dir_ptr_src, *dir_ptr_dest;
and using it like so:
if( ( dir_ptr_src = opendir ( av ) ) != NULL && ( dir_ptr_dest = opendir( av ) ) != NULL ) /* check if... (3 Replies)
Discussion started by: l flipboi l
3 Replies
4. Shell Programming and Scripting
I have folder like main. inside main folder there are subfolders & files like main1 main2 main3, file1, file2, file3.
I want folders main1 & main2, file1, file2 from main folder. copy them into new folder.
Please suggest me how to do it.
I am new to shell programming (2 Replies)
Discussion started by: ypremcha
2 Replies
5. Shell Programming and Scripting
Hi,
I have a text file in following format:
2.45
5.67
6.43
I have to cut the values before decimal and store them in a file.
So the output file should look like:
2
5
6
.
.
and so on...
Can someone suggest me a sed/awk command for doing this? (2 Replies)
Discussion started by: sajal.bhatia
2 Replies
6. Shell Programming and Scripting
Hi Guys,
What does this mean actually ? Can somebody give me any explanation ?
x=${x:=1}
Thanks (2 Replies)
Discussion started by: amit.behera
2 Replies
7. Shell Programming and Scripting
I declared a variable x that gets the count(*) from a table. The table name is also defined as a variable.
What's wrong with this statment :
X=” select count(*) from ${table_name}“
then
y = `${X}${table_name}'
echo ${y}
It throws an error saying count not found.
Please... (1 Reply)
Discussion started by: dsravan
1 Replies
8. Shell Programming and Scripting
Hi,
i have a file as follows:
jonathan:bonus1,bonus2
gerald:bonus1
patrick:bonus1,bonus2
My desired output is
jonathan:bonus1
jonathan:bonus2
gerald:bonus1
patrick:bonus1
patrick:bonus2
my current code is
cat $F | awk -F""
how should i continue the code? Can i do something... (5 Replies)
Discussion started by: new2ss
5 Replies
9. Programming
hey there
well i have a small problem with my code. when for example :
" /bin/sleep 10 & ls -l mila > xyz " is entered, the program is supposed to separate the two commands 1) /bin/sleep 10 & and 2) ls -l mila > xyz. im not sure of how to achieve this. my current program stores both commands... (2 Replies)
Discussion started by: mile1982
2 Replies
10. Programming
what does this mean when a variable is declared as
register int i;
Thanks. :confused: (2 Replies)
Discussion started by: laila63
2 Replies