Sponsored Content
Full Discussion: editing files with script
Operating Systems Solaris editing files with script Post 302280116 by incredible on Monday 26th of January 2009 02:30:45 AM
Old 01-26-2009
Quote:
Originally Posted by Asteroid
We have to implement new local (/etc/default/login) USER security policy on almost 50 stations.
Are all the 50 stations are of the same OS version?
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Editing files

hi i would like to know whether i can delete a part of a file in C for eg. if my file contained 1234567890 and i want to delete 456 so that it becomes 1237890 is there a way i can do this. well, one way i can achieve this is by creating a new file, copy whatever i want, then... (2 Replies)
Discussion started by: sameersbn
2 Replies

2. Shell Programming and Scripting

Script for editing column files

Hi, I have been doing files editing (using "vi") to change the period (e.g. 0902 to 0903) for 100 files each week as shown in the example below. I would like to have a script to solve this manual files editing. Please advice. Example: Change from: ... (2 Replies)
Discussion started by: JunZ
2 Replies

3. Web Development

bash script editing my apache config files

okay i'm going to try to say this uber-simple: I use dropbox (file-sync service). in order for dropbox sync files, they must be its children eg. somewhere under /home/jzacsh/Dropbox]. I want to now use it to keep my development files in sync across my machines: easy: just move my dev. files... (2 Replies)
Discussion started by: jzacsh
2 Replies

4. Shell Programming and Scripting

editing files

Is there any command which I can apply from the command line to find and replace a particular text say "00:00:00:00" with "00" from all the files( where ever this text exists) of the current directory? (17 Replies)
Discussion started by: cobroraj
17 Replies

5. Shell Programming and Scripting

Editing files to add some thing in all the files in a folder

Hi All, I have a folder that contains 100's of files and each file have a similar content like the following format: ((STBJa:200.0,((STBTz:200.0,(STSwe:200.0,(STDUw:200.0,(ST4Bu:200.0,STL2b:200.0):127.0):86.0):80.0):120.0, STAHr:200.0):134.0):200.0,STuNg:200.0);What I need is to do is add "#1"... (2 Replies)
Discussion started by: Lucky Ali
2 Replies

6. Shell Programming and Scripting

How to make an editing script work for multiple files?

Hey everybody, I have a script for making a string substitution in a file. I am trying to modify it in order to make the same modifcation to multiples files. here is what I have so far. #!/bin/csh set p1="$1" shift set p2="$1" shift foreach x ($*) if ( { grep -w -c "$p1" $x } ) then mv... (7 Replies)
Discussion started by: iwatk003
7 Replies

7. Shell Programming and Scripting

Simple script editing text files and running commands

Okay this will probably have multiple parts to it but I don't really want to trouble you guys with more help because I'm a total noob so I can just do the first part by hand (it's just editing a few hundred lines of text in a file; I have to do the same thing on each line and I'm sure there's a... (2 Replies)
Discussion started by: guitarscn
2 Replies

8. Shell Programming and Scripting

editing files.

hello, i have a problem. suppose file.txt i want to add lines over those lines in a file if it starts and ends with how and "?" respectively. i want output like output file.txt thanks (4 Replies)
Discussion started by: yashwantkumar
4 Replies

9. Shell Programming and Scripting

Bash script deleting my files, and editing files in subdirectories question

#!/bin/bash # name=$1 type=$2 number=1 for file in ./** do if then filenumber=00$number elif then filenumber=0$number fi tempname="$name""$filenumber"."$type" if (4 Replies)
Discussion started by: TheGreatGizmo
4 Replies

10. UNIX for Dummies Questions & Answers

Editing files

This is a smallpart of my input file.I want to change the ID values of entries having CMW as an entry. Cont_1.266 . CMW 2958 3269 . - 0 PARENT=t:UM06506T0;ID=UM06506P0;rank=6 Cont_1.266 . CMW 3394 3505 . - 0 ... (3 Replies)
Discussion started by: sasdf
3 Replies
radio(1)						      General Commands Manual							  radio(1)

NAME
radio - console radio application SYNOPSIS
radio [ options ] DESCRIPTION
radio is a interactive, ncurses-bases console radio application. OPTIONS
-h print a short help text. -d enable debug output. -q quit after processing the cmd line options, don't enter interactive ncurses mode. Only useful together with other options for obvi- ous reasons ... -m mute radio. -f freq tune the specified radio frequency (and unmute the radio). -c dev specify radio device (default is /dev/radio). -s Do a scan for radio stations. -S Same as above + write a radio.fmmap with the signal for every frequency. You can get a graph for it with gnuplot (plot "radio.fmmap" w lin). -i Scan, write a initial ~/.radio file to stdout and quit. So you can create a config file where you only have to fill in the correct station names later this way: "radio -i > ~/.radio". See below for the config file syntax. CONFIGURATION
radio picks up station names and present stations from a config file. It can parse kradio (KDE radio app) config files, therefore it first tries the usual KDE config file location: ~/.kde/share/config/kradiorc. Failing that, radio tries ~/.radio (which makes things a bit easier for people who don't use kradio). The format looks like this: # KDE Config File [Buttons] 1=95800000 2=91400000 [Stations] 100600000=Hundert,6 95800000=Radio eins 102600000=Fritz 94300000=r.s.2 91400000=Berliner Rundfunk The [Buttons] section can have up to eight entries. That are the present stations, they get mapped to F1-F8. The [Stations] section maps frequencies to station names. The frequencies in both sections are specified in Hz. KEYS
X exit ESC,Q,E mute and exit. up/down inc/dec frequency pgup/pgdown next/previous station. This one uses the stations from the config file by default. When started with the -s option these keys will cycle througth the stations found during the scan. F1-F8, 1-8 preset buttons. Ctrl+L redraw screen. AUTHOR
Gerd Knorr <kraxel@bytesex.org> COPYRIGHT
Copyright (C) 1997-2001 Gerd Knorr This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MER- CHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. (c) 1998-2001 Gerd Knorr radio(1)
All times are GMT -4. The time now is 12:45 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy