1,817 Topics
| |
the output of both is the same .. could anyone please explain the working dynamcis ? Thanks | |
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 | |
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 | |
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. | |
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 ? | |
Hi, How should i store "hex" or "oct" values in C-Shell and display them. Thanks Srikanth M | |
How to call webpage from unix script? | |
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. | |
| 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 … |
Hi I want to check wether user exist in server or not uisng shell script? can any one help me regarding this | |
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 … | |
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 … | |
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?? … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 | |
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 … | |
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. … | |
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. … | |
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 … | |
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 … | |
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 … | |
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: … | |
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 | |
| 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 … |
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? | |
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 | |
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? |
The End.