1,817 Topics

Member Avatar for
Member Avatar for codester

I'm new at scripting and I need help with converting multiple ".TXT" files to one ".CSV" file. Each file will have a different number of lines, then after the last line there is a blank line then more data, I don't want to use the data after the blank line. …

Member Avatar for codester
0
181
Member Avatar for deathknell

Hi all, I try to make a system where client can send their sms (contained contact file in it that compressed) to server using sms gateway concept. In this case, server must handle 3 condition : registration, request sending file to server (by client), and request take file in server …

Member Avatar for deathknell
0
611
Member Avatar for pixiewolfe

Hello, I would like to download a compiler that works with max os x MacBook Pro that when doing my Unix homework I can compile and then know it works before I go to the University's website to log in and run the program. Or do I have to use …

Member Avatar for sknake
0
33
Member Avatar for biobee07

Hello, I am trying to write a bash shell script that does the following: I would really appreciate if someone can help me correct my code that i have written below: 1.Finds all *.txt files within my directory of interest (files are in sub-directories) 2. reads each of the files …

Member Avatar for sknake
0
187
Member Avatar for krishnendhu
Member Avatar for jchilley

I am attempting to set a ulimit inside of a script to be run by TWS/Maestro. Can't figure it out. Does anyone have any ideas? :-/

Member Avatar for Fernando3
0
1K
Member Avatar for AshokConcord

Hi, I want to upload a file recursively using curl command, the file is in the directory where i am running the script here is the details 1) The file rss.txt is in this directory [ashok@qa-adm-001 rss]$ pwd /home/ashok/rss 2) If i run POST request as a command, the file …

Member Avatar for sknake
0
167
Member Avatar for karpaklu

hai dani, pls anyone help me how to add data into filename actually i tried like this: $str|cat >> EmpFile for the above statement im not able to do coz even $str is also considere as command. how to insert the value?

Member Avatar for sknake
0
63
Member Avatar for Assaulter of Bu

I have a directory called "images" filled with about one million images. Yep. I want to write a shell command to rename all of those images into the following format: original: filename.jpg new: /f/i/l/filename.jpg Any suggestions? Thanks, Dan

Member Avatar for sknake
0
83
Member Avatar for shekarls

Hi guys, I have the following information in a text file, which looks like this: -rw-rw-r-- 1 user user 12203 Aug 6 01:02 app1.sql -rw-rw-r-- 1 user user 12343 Aug 6 01:02 app2.sql -rw-rw-r-- 1 user user 12238 Aug 6 01:02 app3.sql I need to Trim the unwanted strings and …

Member Avatar for sknake
0
91
Member Avatar for bhas85

Hi all, I am very new to shell scripting.I have the requirement like one program is there, if it is running leave like that only and if it is stopped it has to be restart and once again keep watching and it is stopped we a have to restart once …

Member Avatar for bhas85
0
145
Member Avatar for b1ue

Hi. iv'e been looking around the web trying to find a suitable script to use with my hltv servers , unfortunately to no avail :( . I'm just wondering if anyone here could perhaps help me out with a shell script to do what i need it to , i …

Member Avatar for Fest3er
0
157
Member Avatar for lehe

Hi, I call "set -o notify" to notify me when my background jobs finish. I find that the messages upon finishing are different: for some job, it starts sometimes with "[jobID]", sometimes with "[jobID]+" and sometimes "[jobID]-". I wonder what they mean actually? Do they mean the jobs are finished …

Member Avatar for sknake
0
254
Member Avatar for herms14

hey there...could I please ask for some help for my programming assignment. I having a problem in assigning values to a variables inside a function. I don't know what im doing wrong...any suggestions could be a great help..here is my code [CODE] a = 0 myfunc(){ echo $1 "Computation" a …

Member Avatar for sknake
0
88
Member Avatar for fallopiano

Hi all. I'm not sure if this is the correct place to post this, but whatever. I have a simple .reg file that adds the command 'Open Dos Box' to the menu that pops up when you right click a file (on windows) I want it to open a DOS …

Member Avatar for fallopiano
0
287
Member Avatar for networkingnub

I just need help understanding how DOS and BASH handle globs. All I ever see is the output but it's not giving me any knowledge on the whole process. How does dir * interpret the wildcard differently then ls *?

Member Avatar for sknake
0
94
Member Avatar for alvingo

Hi All, Second time to post on this group :) I'm pulling my hair now 'coz I'm so dumb to produce this requirement. Requirement: I want to run a utility by limiting the no. inside my process (mov##) to be able to use in multi streaming. Here is my script: …

0
63
Member Avatar for alvingo

Hi Guys, First time user & new to scripting. :) I have my shell script like this: [CODE] #!/usr/bin/sh e_id=`sqlplus -s scott/tiger@DB<<eof SET PAGESIZE 0 FEEDBACK OFF VERIFY OFF HEADING OFF ECHO OFF; select emp_id from employee; quit ` echo "Employee ID's $e_id" group=GROUP1 # Getting the sss_no for each …

Member Avatar for alvingo
0
127
Member Avatar for ViLeNT

I want to write a script that makes sure users' home directories don't contain world writable directories, directories owned by other users, or other potential security problems. I'd like to echo any directory where one user's home directory can be modified some by another user. Can someone help me with …

Member Avatar for sknake
0
464
Member Avatar for ViLeNT

Hello, I'm still fairly new at shell scripting, can someone please show me how I would go about accomplishing a script to tackle these tasks? I've got a server setup. I want to find duplicate files that are taking up all the space on the hard drive. I want to …

Member Avatar for ViLeNT
0
198
Member Avatar for maresi

Hi! I run Linux (easy peasy) on my netbook and have decided to encrypt the folder of my mail-client (in this case: evolution) via encfs. So I wrote a little shell-script that does all the necessary steps: [LIST] [*]ask for the password [*]decrypt and mount the directory [*]start evolution [*]umount …

Member Avatar for maresi
0
205
Member Avatar for friiday

Hi all :) I am new to the batch file, never heard it before and thus need help from all of your. I need to create a batch file (.bat) that will execute a C# application which is written in Visual Studio 2008. Someone please assist me and give me …

Member Avatar for sknake
0
108
Member Avatar for prashanth s j

Hi all, I need to create thousands of directories in a single parent directory using shell scripting code. One problem would be to generate the unique directory name for each of the 1000 iterations to create a directory every time. ie first time the directory name needs to be subdir1 …

Member Avatar for Dream2code
0
194
Member Avatar for shawnk

hi, I have created a script that has some sql queries in it. It seem to work fine and e-mails me the output file but when i use this command [COLOR="Red"]'col email format a20'[/COLOR] it creates a dead.letter file and i never get the e-mail. Any help would be appreciated. …

Member Avatar for shawnk
0
51
Member Avatar for Thireus

Hi guys, I have a simple question, I want to store the output of the following command: [QUOTE]sudo iotop -t 0 -C 3 | grep "load: "[/QUOTE] As you can see it is running all the time, and we get a new line every 3sec. I just want to store …

Member Avatar for Thireus
0
188
Member Avatar for ermithun

i have a file, say , abc.log which contains data like, [code] 123_1 123_2 123_3 123_4 123_5 123_6 123_7 123_8 123_9 123_3 123_5 123_3 123_7 123_6 123_1 123_3 [/code] [COLOR="Red"]As we can see, there are 16 rows. Now i need to grep for a pattern like '123_*' but want to …

Member Avatar for Dream2code
0
92
Member Avatar for emarcel

Hi Guys, I've got a small issue passing the string from command line parameter into the variable within the script. An issue is when the parameter contains an equal mark in the string that brakes the line and the everything after an equal mark is missing. See an example: script.bat …

Member Avatar for hkansal
0
74
Member Avatar for daprezjer

Pretty new at shell scripting. My server was hacked and instances of links for viagra were placed in it. I have lots of sites, so I need to search for all instances of "viagra" and list the files, so I can go remove the intrusions. Can this be done using …

Member Avatar for Fest3er
0
113
Member Avatar for serkan sendur
Member Avatar for JohnE1

O/S: Linux Shell: BASH I know of 4 different ways to use a for loop: 1. for I in {1..10}; do echo $I; done| 2. for I in 1 2 3 4 5 6 7 8 9 10; do echo $I; done| 3. for I in $(seq 1 10); do …

Member Avatar for sknake
0
89

The End.