Member Avatar
... I have an empty file called backups in my backups directory to keep the tar file from trying to backup itself. Does anyone know why I'm getting this output? -> ... Note that there was a backtick between leading and ../ .
by lewashby 14 in Linux and Unix ()
Member Avatar
Hi, I have built a shell extension handler, using this as a template: ... In this instance, it registers with a ".ts" extension: ... The project compiles fine, and the registration works also. But on one PC, it fails to load (the context menu for .ts files is not updated), …
by BobFX in Software Development ()
Member Avatar
Team, Presently i have some 20 files which i need to copy and store in the common directory. below is the example: script name: dir.sh cp /tmp/abc /home/abc/xyz cp /tmp/def /home/abc/xyz cp /tmp/hij /home/abc/xyz The above script is run, it copies the source files on the destination directory(xyz), wanted to …
by whizkidash in Software Development ()
Member Avatar
I want to write a shell script which finds main() in the given folder files and sub folder files
by Atharva. in Linux and Unix ()
Member Avatar
Hello, I have written the basic shell script "myscript.sh", which prints Hello World. I want to call this script using PL/SQL. Please let me know the procedure(steps) for the same. Thank you.
by Azii in Software Development ()
Member Avatar
Hello everybody. How can i get "ls" from shell scripting? I tried this but it doesn't work, i saved it in a file: ... I know the second line is not correct, so what should i type? Getting "ls" is just an example, i infact want to import this line …
by Niloofar24 15 in Software Development ()
Member Avatar
Hi everybody. I'm using python to create sql database. I created a test.db file and then made a table on it with the name "fims" and inserted some data on it.... title text, year text and director text. And then set values for them. Now when i type "sqlite3 test.db" …
by Niloofar24 15 in Software Development ()
Member Avatar
Hi friends! I'm coding a program; i have a Tkinter window with a view button and i can add names with entry box and add button into a list that will be saved on a db file. Now i want the program to show the list names otomaticly when the …
by Niloofar24 15 in Software Development ()
Member Avatar
Hey guys, I have this script that does count one year of files, 2014, but when it comes to this year, everything messes up. How could I count properly for each year in the same script ? ...
by Szabi Zsoldos 26 in Software Development ()
Member Avatar
I am working on a shell script that takes a single command line parameter, a file path (might be relative or absolute). The script should examine that file and print a single line consisting of the phrase: Windows ASCII if the files is an ASCII text file with CR/LF line …
by kww228 in Software Development ()
Member Avatar
How to read oracle control file's data using a shell script? Shell script is in Unix.
by nravhad in Software Development ()
Member Avatar
Write a shell script that will take a filepath and a string as command line arguments. The script should find lines which contain the given 'string' in the given file. It should create an output file in "/tmp" directory with the name in the pattern as below. "NN_15Nov2013_12Hrs_32Minutes_20Seconds.txt"
by Alan_4 in Software Development ()
Member Avatar
Hi, I need to monitor the ip addresses in a server. whenever there is a fluctuation, i need to do some clean up (like restart the server/ reboot the machine) I was able to get a sample cpp program & was able to enhance it to suit my needs. But …
by srinivas88 in Software Development ()
Member Avatar
I want to find common line in two files and replace the next line of first file with the next line of second file. (sed,awk,perl,bash any solution is welcomed ) Case Ignored. Multiple Occurrence of same line. File 1: file 2: Later File 1 should be:
by Madira in Software Development ()
Member Avatar
By examining the first, third and last (seventh) fields of the /etc/passwd file, determine the userid and login shell for your username, the user root, and the user nobody (yes, there is a system user with the username "nobody"). Create simple files in your home directory, called my.uid, my.shell, root.uid, …
by theashman88 36 in Linux and Unix ()
Member Avatar
I have no clue to why this isn't working but when I try creating a shell path variable in . This is my variable When I type into the terminal I get
by singularity~ in Software Development ()
Member Avatar
Hello, I have one big XML file (600 MB - 850 MB) in format "cells_yyyymmdd_hhmi.xml" I would like to specify that everyday i will have new file with new date. So, there should be general way to read it and cut it. For exmaple, i have file of 7th January. …
by PriteshP23 in Linux and Unix ()
Member Avatar
Hello, I have one tar.Z file. I have to run shell script daily as it is required to update the database. I have made small part of XML file. There are 4 parts. There is PHP Script which is working but i need to change each time file like PART1.xml, …
by PriteshP23 in Software Development ()
Member Avatar
hello, I created a awk program to work witha data file to output a table and subtotal the rows and total up the collums and average I got it to work but when i added a presentation header before my totals go away. working code so far can be viewed …
by William_6 in Software Development ()
Member Avatar
Hi, Im working on a PHP script in which I have to run shell script, I have 2 option , If im able to send php veriable value to shell Or i can write shell directly in PHP I used for execute shell .... Now the problem is .. if …
by pawan768 in Web Development ()
Member Avatar
I am trying to modify my shell sort algorithm to use Hibbard's increments rather than n/2. I know that Hibbard's increments are 2k - 1, but I can't figure out how to incorporate that into my algorithm. Any suggestions to help me move forward with this? I feel like I …
by seacase in Software Development ()
Member Avatar
Hi all I want to login a machine remotely and doing some operation on the remote machine and then exit the remote machine by a unix shell script. I can login these two machines without passward. How can I do that? For example, my script is on machine1. that script …
by sudipta.mml in Linux and Unix ()
Member Avatar
occasionally I run a backup of my phpbb forum files from the Shell command line: I'd like to add date elements to the file name, so that the zip file created is automatically formed as or something similar Thanks
by techman41973 in Software Development ()
Member Avatar
Hi I am trying to run a python script which has this code snippet: The perl script started changes environmental variables and enters into new subshell. After entering into new subshell, the commands below script goes unnoticed.They get executed only if i exit from subshell(created by pl script). The system …
by Meena Yegappan in Software Development ()
Member Avatar
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. …
by chriswelborn 48 in Software Development ()
Member Avatar
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. …
by chriswelborn 48 in Software Development ()
Member Avatar
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 …
by chriswelborn 48 in Software Development ()
Member Avatar
Hi guys I try to run this shell in java but it never works. when I change the cmd to something like "ls" or "open foo.java" the code will works. Any idea why?
by yue.sun.35 in Software Development ()
Member Avatar
i have 2 files, one file created on Windows and another was made on Ubuntu, i want to use this command: how do i do that?
by old_apache 15 in Software Development ()
Member Avatar
i got a string var=96.33% from 120 how do i get 96.33 from $var?
by old_apache 15 in Software Development ()