Modify files


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users Modify files
# 8  
Old 12-12-2005
I should have noticed that..

Change the sed delimiter from _ to any other character.

Code:
sed -e 's#.*#is_client retry_archive_job &#' input.txt > output.txt

Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Modify csv-files with awk

Hello everyone! I have thousands of csv files I have to import into a Database table. As usually the files aren't perfect. For example they have a different number of columns and some weird columns. The second problem is, that I have to add 3 parts of the filename into 3 rows in the... (6 Replies)
Discussion started by: elRonaldo
6 Replies

2. Shell Programming and Scripting

Find modify and delete files

hi every one. one of my friends has writen this script and send it to me. this script can find files that add-delete-modify and also send an alert by email i'm not catch all part of it. can anyone explain me how this work #!/bin/bash START="a.txt" END="b.txt" DIFF="c.txt" mv ${START}... (4 Replies)
Discussion started by: nimafire
4 Replies

3. Shell Programming and Scripting

Need to modify a lot of html files

Hello, I have about 3400 files in a tree structure (about 80% are html files). 1. I need to modify every html file to remove <p> style and old things like font attribute and add another style. 2. I need to change the root of all links that are in the html. e.g. change /old/path/ to /new/path... (1 Reply)
Discussion started by: Yaazkal
1 Replies

4. Shell Programming and Scripting

Modify different files at the same time

Hi, I'm having the following problem. I have some files to modify, between a large number of files. I thought the following code aux2=`grep -l 2.2.17 *` print "$aux2" aux3=`ls -l *.ksh | wc -l` print "$aux3" while ; do print "The counter is $aux3" #Add the sed here ... (3 Replies)
Discussion started by: radicaled
3 Replies

5. Shell Programming and Scripting

PHP script to modify .forward files

Hi. I've been racking my brain on a project I've been working on for work, and hope someone here might be of assistance. Basically I'm trying to create dynamically generated .forward files for users/aliases on my email server. The intent is for these files to be generated automatically any time... (3 Replies)
Discussion started by: adotte
3 Replies

6. Shell Programming and Scripting

sed: How to modify files in a complex way

Hello, I am new to sed and hope that someone can help me with the following task. I need to modify a txt file which has format like this: xy=CreateDB|head.queue|head.source|head.definition|rtf.edit|rtf.task|rft.cut abc|source|divine|line4|5|true into something like: head.queue=abc... (19 Replies)
Discussion started by: pinkypunky
19 Replies

7. Shell Programming and Scripting

Modify log files to get uniq data

Hello, I have a log file that has following output as below. LAP.sun5 CC LAP.sun5 CQ perl.sun5 CC perl.sun5 CQ TSLogger.sun5 CC TSLogger.sun5 CQ TSLogger.sun5 KR WAS.sun5 CC WAS.sun5 MT WAS.sun5 CQ I want to output to be in the way below, i tried using awk but could not do it. ... (12 Replies)
Discussion started by: asirohi
12 Replies

8. Shell Programming and Scripting

looking for files and modify if size matches

hi there. I'm at SunOS 5.9 At my new job i'm using UNIX, and it's my first time. i'm trying to make a script for: -find files with a name passed to it as parameter -compare results with file size passed as parameter too -when comparison's true --> move file -if not--> make nothing ... (3 Replies)
Discussion started by: viko
3 Replies

9. UNIX for Advanced & Expert Users

Modify files through scripts

Hello, all I want to implement some actions on the specified files, to modify some contents in the files, as follows: File1: **** name carol birthday 830319 ******* name billy birthday 831001 *************** ____________________________ The... (3 Replies)
Discussion started by: tpltp
3 Replies

10. UNIX for Dummies Questions & Answers

how to permanently modify the open files

hi all, any ideas how we can permanently modify the open files? bash-2.03$ ulimit -a core file size (blocks) 0 data seg size (kbytes) unlimited file size (blocks) unlimited open files 256 <--------------- pipe size (512 bytes) 10 stack size... (2 Replies)
Discussion started by: 3rr0r_3rr0r
2 Replies
Login or Register to Ask a Question
CMUS-REMOTE(1)						      General Commands Manual						    CMUS-REMOTE(1)

NAME
cmus-remote - control cmus SYNOPSIS
cmus-remote [OPTION]... [FILE|DIR|PLAYLIST]... cmus-remote -C COMMAND... cmus-remote DESCRIPTION
Add FILE/DIR/PLAYLIST to playlist, library (-l) or play queue (-q). If no arguments are given cmus-remote reads raw commands from stdin (one command per line). Raw commands are cmus' command mode commands. These same commands are used in configuration files and key bindings. cmus(1) contains full list of commands. For consistency also searching is supported: -C /text. When -C is given all command line arguments are treated as raw commands. OPTIONS
--server SOCKET Connect using socket SOCKET instead of ~/.cmus/socket. --help Display usage information and exit. --version Display version information and exit. -p, --play Start playing. -u, --pause Toggle pause. -s, --stop Stop playing. -n, --next Skip forward in playlist. -r, --prev Skip backward in playlist. -R, --repeat Toggle repeat. -S, --shuffle Toggle shuffle. -v, --volume VOL Change volume. See vol command in cmus(1). -k, --seek SEEK Seek. See seek command in cmus(1). -Q Get player status information. Same as -C status. Note that status is a special command only available to cmus-remote. -l, --library Modify library instead of playlist. -P, --playlist Modify playlist (default). -q, --queue Modify play queue instead of playlist. -c, --clear Clear playlist, library (-l) or play queue (-q). -C, --raw Treat arguments (instead of stdin) as raw commands. EXAMPLES
Add playlists/files/directories/URLs to library view (1 & 2): $ cmus-remote -l music.m3u http://live.urn1350.net:8080/urn_high.ogg Load (clear and add) playlist to playlist view (3): $ cmus-remote -c music.m3u Three different ways to toggle repeat: $ cmus-remote -R $ cmus-remote -C "toggle repeat" $ cmus-remote toggle repeat ^D Query settings or key bindings: $ cmus-remote -C "set repeat?" setting: 'repeat=false' $ cmus-remote -C "showbind common a" bind common a win-add-l Dump the playlist to stdout: $ cmus-remote -C "save -p -" [...] Search works too: $ cmus-remote -C /beatles SEE ALSO
cmus(1) AUTHOR
Written by Timo Hirvonen <tihirvon@gmail.com> cmus 05/11/2006 CMUS-REMOTE(1)