1,817 Topics

Member Avatar for
Member Avatar for leghorn

the output of both is the same .. could anyone please explain the working dynamcis ? Thanks

Member Avatar for masijade
0
148
Member Avatar for leghorn

we know perl gives us the facility to use hashes %ages = ('Martin' => 28, 'Sharon' => 35, 'Rikke' => 29); what if I want to do the same thing in shell script ?? thanks

Member Avatar for masijade
0
143
Member Avatar for Deva.VG

Hi, The below link provides a solution to access snipping tool using shell script, but the same is not working against windows-8 http://www.mrexcel.com/forum/excel-questions/497620-shell-snipping-tool-returns-run-time-error-53-file-not-found.html Please suggest us to use snipping tool against shell scripting in Windows-8

0
94
Member Avatar for np complete

In our college we practice python on ssh. This command prints all the computers ( processes ) logged in. ps -A | grep bash I was wondering how to obtain my process ID for that session.

Member Avatar for L7Sqr
0
280
Member Avatar for Siberian

I hope this is the correct area for this post, I'm not to sure where it would fall into, regarding SSH ? Onto my question, is there a method to access Vi or Nano to find the exact path where a directory lies in the <root> directory ?

Member Avatar for JeoSaurus
0
114
Member Avatar for msrikanth

Hi, How should i store "hex" or "oct" values in C-Shell and display them. Thanks Srikanth M

Member Avatar for JeoSaurus
0
88
Member Avatar for mathura.shreedher
Member Avatar for popa1

Hi, I want to write a batch file which will 1.Open windbg debugger 2.Perform "attach to process" to my program. 3.Will create and then will save the dump file. 4. Perform Detach to the process. 5. Close windbg debugger Can anybody help me with it? thanks Popa.

Member Avatar for agrothe
0
118
Member Avatar for Rahul47

I dont know what caused such a filenames and i am not able to remove these files. $ ls A????cd new????cat> >> A A????cd new????cat ????A Desktop Downloads file.sh menu.sh new new1.sh new.sh Pictures rename Videos A????cd new????cat |A A?echo A Documents even.sh filetest.sh Music new1.lst new.lst palindrome.sh Public Templates …

Member Avatar for Rahul47
0
203
Member Avatar for arunkumarch

Hi I want to check wether user exist in server or not uisng shell script? can any one help me regarding this

Member Avatar for CrazyDieter
0
267
Member Avatar for duke.tim

How can an array be accessed from within another function? Here is an example of some code. editarray can not seem to access values of the array from outside of the writetofile function. Is there any way to change the scope of the array? #!/bin/sh writetofile() { templine=`cat /dev/stdin` export …

Member Avatar for Watael
0
244
Member Avatar for rje7

How to find the difference of two files and get a 3rd file with the newer information alone. for example: There are two files file1 and file2 **file1** apple mango pear **file2** apple mango pear cat and dog I need a file with **fileout** cat and dog how to achieve …

Member Avatar for rje7
0
152
Member Avatar for duke.tim

Why is it that no matter how long I put the sleep command or loop, cat is unable to read the file, even though the file already exsists? Is there any way of reliably waiting for the whois to finish, write to file and then read that the file exsists?? …

Member Avatar for duke.tim
0
240
Member Avatar for shamusk

I am new to the awk scripts. I am confused about the delimiter concept in the awk script. say delimiter is , or | or anything, then a new line is treated as a next line ? like e.g. 00|01|05|05|03|13|12|04|06|80| 03|01|01|00|52|10|12|11|05|12| So there are 10 fields in each row, and …

Member Avatar for Watael
0
158
Member Avatar for manuel.a.gonzalez.5494

I was wondering how could I solve this problem, I have a php project in which I have tables, but I didn't use `<thead>` and `<tbody>`, but now I am using DataTable jquery plugin, and it needs that the tables have them, so I need to modify all of my …

0
100
Member Avatar for leghorn

hi all only the weirdest thing happened with me just now. I was debugging a shell script and I found that a step that was supposed to execute later ws getting executed prior to another step for no reason. You know any ? i mean have a look at the …

Member Avatar for Watael
0
116
Member Avatar for techman41973

When using the Grep command to find a search string in a set of files, is there a way to dump the results to a text file? Also is there a switch for the Grep command that provides cleaner results for better readability, such as a line feed between each …

Member Avatar for JeoSaurus
0
297
Member Avatar for techman41973

occasionally I run a backup of my phpbb forum files from the Shell command line: zip -r forum_backup ~/public_html/forum/* I'd like to add date elements to the file name, so that the zip file created is automatically formed as forum_backup_05182013.zip or something similar Thanks

Member Avatar for JeoSaurus
0
258
Member Avatar for mossman mudas

i have an awk script and in the end section i create my table data with printf and i want to sort it so i used pipe then sort i am calling it like this awk -f awkscript file in bash i can get it to work the way i …

Member Avatar for mossman mudas
0
236
Member Avatar for chriswelborn

I'm no pro when it comes to BASH, but I have been known to shell-script my way out of a problem here and there. One of the useful things you can do is a for-loop, whether it be used on file names, script arguments, or just a string of words. …

Member Avatar for chriswelborn
0
298
Member Avatar for chriswelborn

I'm no pro when it comes to BASH, but I have been known to shell-script my way out of a problem here and there. One of the useful things you can do is a for-loop, whether it be used on file names, script arguments, or just a string of words. …

Member Avatar for chriswelborn
0
378
Member Avatar for chriswelborn

This is another useful script I came across. It prints a color-code chart in your terminal. It can help you find the color-code you are looking for, or view the current color-scheme you are using (people use it on reddit/r/unixporn to show off their system's theme, I use it to …

0
371
Member Avatar for chriswelborn

I didn't write this, the credits are in the code. It's a code-golf version, and I'm sorry about that. I am trying to 'decode' it but I don't have the skills, so the 'decoded' version doesn't have the right colors. This is an example of what you can do with …

0
1K
Member Avatar for leghorn

hi,a question .. why does my script work as sh script.sh and not as ./script.sh ?? also,i was trying to write a script that would filter out a pattern in a .txt file and display the count of the same. Say my pattern is king, and there are 4 "king"s …

Member Avatar for chriswelborn
0
147
Member Avatar for m_ishwar

Hello everyone. I am trying to compile this simple code using gcc under Cygwin terminal. //A function that just returns a value// int my_function() { return 0xbaba; } I saved the code as basic.c I issue the command $gcc basic.c in the Cygwin terminal And I get the error: gcc: …

Member Avatar for m_ishwar
0
608
Member Avatar for leghorn

hi New to shell scripting. While trying hands at it I came across the operators -z -o in the if block. Any relevant info would be appreciated **if [ -z "$xa_" -o "$va_" == "yes" ]** cheers guys

Member Avatar for leghorn
0
123
Member Avatar for Rahul47

vi is basically used independently .....but what if vi commands are used in shell script ? I am trying to accomplish functionality of mv command using a shell script. what I want is to yank whole text of one file1 and paste it in file2. this all should happen in …

Member Avatar for Watael
0
256
Member Avatar for lewashby

I'M wanting to write my own command/script for compiling my c++ files. I use g++ -g -Wall filename.cpp -o filename I'M trying to figure out how I can trip of the last four characters (.cpp) from a string. Any ideas?

Member Avatar for rojomoke
0
245
Member Avatar for toldav

Hi Any one can guide me to the right direction. I trying to run my scripts from anywhere, how about to do it: I did this but is not working. export PATH = $PATH:/scripts/pyhon But is not working Thank you

Member Avatar for L7Sqr
0
102
Member Avatar for yue.sun.35

Hi guys I try to run this shell in java but it never works. Process p = Runtime.getRuntime().exec(" cat *.java|sed '/import/d'|sed'/package/d'>>b.java "); when I change the cmd to something like "ls" or "open foo.java" the code will works. Any idea why?

Member Avatar for jwenting
0
94

The End.