Sponsored Content
Top Forums UNIX for Dummies Questions & Answers Script to delete files line by line in .txt document Post 302909373 by dagamier on Wednesday 16th of July 2014 12:34:35 PM
Old 07-16-2014
deleted post

Last edited by dagamier; 07-16-2014 at 01:36 PM.. Reason: deleting post
 

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Command to delete numbers at beginning of txt file line

Hello. I have the following issue: my txt file has the following format: train/dr4/fklc0/sx175.txt 0 80282 Severe myopia contributed to Ron's inferiority complex. train/dr4/fklc0/sx355.txt 0 42906 Dolphins are intelligent marine mammals. train/dr4/fklc0/sa2.txt awk 'NR%2==0' test1.txt >... (4 Replies)
Discussion started by: li_bi
4 Replies

2. Shell Programming and Scripting

linux shell script to take variables from two different files line by line

Friends I need to have a shell script which will feed variables from two different files line-by-line. For example, I have two files - permission and file_name. Contents of permission is - 644 755 .... contents of file_name /file1 /file2 ..... Now I want 644 permission will be... (4 Replies)
Discussion started by: atanubanerji
4 Replies

3. Shell Programming and Scripting

Create different txt files per line

Hi All, I have a text file1.txt which looks like a9 a3 a4 ... and i want to create a seperate .txt files per each line. For example, output1.txt will have only one element "a9" output2.txt will have only one element "a3" ... Thanks, (1 Reply)
Discussion started by: senayasma
1 Replies

4. UNIX for Dummies Questions & Answers

shell script : log to txt and insert new line everytime

Hi, I have this script, while do ps ax|grep 5060 > log.txt echo " " sleep 1 done } I want to actually put a new line everytime the loop is executed in log.txt , but I do not know how to "embed" the echo " " inside the log.txt. (so to say... (1 Reply)
Discussion started by: peuceul
1 Replies

5. Shell Programming and Scripting

how to read the contents of two files line by line and compare the line by line?

Hi All, I'm trying to figure out which are the trusted-ips and which are not using a script file.. I have a file named 'ip-list.txt' which contains some ip addresses and another file named 'trusted-ip-list.txt' which also contains some ip addresses. I want to read a line from... (4 Replies)
Discussion started by: mjavalkar
4 Replies

6. Shell Programming and Scripting

Need to append the date | abcddate.txt to the first line of my txt file

I want to add/append the info in the following format to my.txt file. 20130702|abcd20130702.txt FN|SN|DOB I tried the below script but it throws me some exceptions. <#!/bin/sh dt = date '+%y%m%d'members; echo $dt+|+members+$dt; /usr/bin/awk -f BEGIN { FS="|"; OFS="|"; } { print... (6 Replies)
Discussion started by: harik1982
6 Replies

7. Shell Programming and Scripting

How to read a two files, line by line in UNIX script and how to assign shell variable to awk ..?

Input are file and file1 file contains store.bal product.bal category.bal admin.bal file1 contains flip.store.bal ::FFFF:BADC:CD28,::FFFF:558E:11C5,6,8,2,1,::FFFF:81C8:CA8B,::FFFF:BADC:CD28,1,0,0,0,::FFFF:81C8:11C5,2,1,0,0,::FFFF:81DC:3111,1,0,1,0 store.bal.... (2 Replies)
Discussion started by: veeruasu
2 Replies

8. UNIX for Dummies Questions & Answers

Split Every Line In Txt Into Separate Txt File, Named Same As The Line

Hi All Is there a way to export every line into new txt file where by the title of each txt output are same as the line ? I have this txt files containing names: Kandra Vanhooser Rhona Menefee Reynaldo Hutt Houston Rafferty Charmaine Lord Albertine Poucher Juana Maes Mitch Lobel... (2 Replies)
Discussion started by: Nexeu
2 Replies

9. UNIX for Beginners Questions & Answers

How can i add each line from a txt file to different files in the same directory?

Hello, this is my first thread here :) So i have a text file that contains words in each line like abcd efgh ijkl mnop and i have 4 txt files, i want to add each line to each file, like file 1 gets abcd at the end; file 2 gets efgh at the end .... I tried with: cat test | while read -r... (6 Replies)
Discussion started by: azaiiez
6 Replies
SNAPPER-CONFIGS(5)					  Filesystem Snapshot Management					SNAPPER-CONFIGS(5)

NAME
snapper-configs - Configuration files for snapper configs DESCRIPTION
Each file /etc/snapper/configs/* describes a snapper config. VARIABLES
The following is a list of variables that can be present in the configuration file. Boolean values must be "yes" or "no". SUBVOLUME=path Path of the subvolume or mount point. There is no default value. The value must always be specified. FSTYPE=value Filesystem type for the subvolume. Default value is "btrfs" but it's recommended to always specify the filesystem type. ALLOW_USERS=users List of users allowed to operate with the config. The user-names must be separated by spaces. Spaces in usernames can be escaped with a "". Default value is "" but "root" is always implicitly included. ALLOW_GROUPS=groups List of groups allowed to operate with the config. The group-names must be separated by spaces. Spaces in group-names can be escaped with a "". Default value is "". BACKGROUND_COMPARISON=boolean Defines whether pre and post snapshots should be compared in the background after creation. Default value is "no". NUMBER_CLEANUP=boolean Defines whether the number cleanup algorithm should be run for the config. Default value is "no". NUMBER_MIN_AGE=seconds Minimal age for snapshots to be deleted by the number cleanup algorithm. Default value is "1800". NUMBER_LIMIT=number Defines how many snapshots the number cleanup algorithm should keep. The youngest snapshots will be kept. Default value is "50". TIMELINE_CREATE=boolean Defines whether hourly snapshots should be created. Together with the timeline cleanup algorithm this will create a collection of snapshots with more snapshots is the near past and less snapshots in the far past. Default value is "no". TIMELINE_CLEANUP=boolean Defines whether the timeline cleanup algorithm should be run for the config. Default value is "no". TIMELINE_MIN_AGE=seconds Minimal age for snapshots to be deleted by the timeline cleanup algorithm. Default value is "1800". TIMELINE_LIMIT_HOURLY=number Defines how many hourly snapshots the timeline cleanup algorithm should keep. An hourly snapshots is the first snapshot in an hour. The youngest hourly snapshots will be kept. Default value is "10". TIMELINE_LIMIT_DAILY=number Defines how many daily snapshots the timeline cleanup algorithm should keep. A daily snapshots is the first snapshot in a day. The youngest daily snapshots will be kept. Default value is "10". TIMELINE_LIMIT_MONTHLY=number Defines how many daily snapshots the timeline cleanup algorithm should keep. A daily snapshots is the first snapshot in a day. The youngest daily snapshots will be kept. Default value is "10". TIMELINE_LIMIT_YEARLY=number Defines how many daily snapshots the timeline cleanup algorithm should keep. A daily snapshots is the first snapshot in a day. The youngest daily snapshots will be kept. Default value is "10". EMPTY_PRE_POST_CLEANUP=boolean Defines whether the empty-pre-post cleanup algorithm should be run for the config. Default value is "no". EMPTY_PRE_POST_MIN_AGE=seconds Minimal age for snapshots to be deleted by the empty-pre-post cleanup algorithm. Default value is "1800". HOMEPAGE
http://snapper.io/ AUTHORS
Arvin Schnell <aschnell@suse.de> SEE ALSO
snapper(8), snapperd(8) 0.1.7 2013-07-09 SNAPPER-CONFIGS(5)
All times are GMT -4. The time now is 11:30 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy