Ok, open the file "css2.sh" in your favorite text editor and edit it so that it looks like this -
The text in bold, red color are the differences from your current "css2.sh" script. I have also removed the redundant semi-colons at the end of a few lines.
You could wipe out your entire script and copy/paste it from here.
Or you could update just the individual lines.
How would I delete white spaces in a specified file?
Also, I'd like to know what command I would use to take something off a regular expression, and put it onto another.
ie.
.
.
.
expression1 <take_off>
.
.
.
expression2 (put here)
.
.
.
Any help would be great, thanks! (10 Replies)
hi all...
i have the next question:
i have a flat file with a lot of records (lines). Each record has 10 fields, which are separated by pipe (|). My problem is what sometimes, in the first record, there are white spaces (no values, nothing) in the beginning of the record, like this:
ws ws... (2 Replies)
I have a variable that calls in a string from txt file. Problem is the string comes with an abundance of white spaces trailing it. Is there any easy way to trim the tailing white spaces off at the end? Thanks in advance. (9 Replies)
Hi,
Can anybody suggest me how to combine two strings with two or more white spaces and assign it to a variable?
E.g.
first=HAI
second=HELLO
third="$first $second" # appending strings with more than one white spaces
echo $third
this would print
HAI HELLO
Output appears... (2 Replies)
Hi
I have a shell script that looks for running processes in order to kill them. The script (ksh) gets the PID of these processes using the following:
PROCS=`ps -fu ${USERID} | egrep "MONITOR" | grep -v grep | cut -d" " -f4`
However, I spotted an issue where PID's of different lengths... (3 Replies)
SHELL SCRIPT
Hi
I have a file in the following format
Mayank Sushant
Dheeraj Kunal
ARUN Samir
How can i replace the white space in between and replace them with a comma?? The resultant output should be
Mayank,Sushant
Dheeraj,Kunal
ARUN,Samir
i tried using
sed -e... (8 Replies)
Hi everyone
I have a file looks like this
X01 1 JOE 20100312
X02 TOD 20100312
X03 3 SAM 20100312
I wrote a script to assign the values in 5 columns to 5 variables. When I use cut command to assign column 2 or 3, it skips it if it is a space (see below)
... (3 Replies)
Hi,
I am having problem in deleting the leading spaces:-
cat x.csv
baseball,NULL,8798765,Most played
baseball,NULL,8928192,Most played
baseball,NULL,5678945,Most played
cricket,NOTNULL,125782,Usually played
cricket,NOTNULL,678921,Usually played
$ nawk 'BEGIN{FS=","}!a... (2 Replies)
Hello,
I have a Comma separated input file with one of the sample records as below:
-9223372036854477528,"834","834003325515BXNI00101012013C","5","PLAN_VALUE","PPO, General
Cable","C",20130101,99991231,"A","2012-12-25-13.58.14.434000","ZPL2 ","2012-12-25-13.58.14.434000","ZPL2 ... (4 Replies)
I need to change the order of the columns of data that looks like this:
The original data is in 6 tab-separated columns.
FACTSHEET factsheet NN 1 5 DEP
WHAT what WP 2 3 SBJ
IS be VBZ 3 1 NMOD
AIDS AIDS NP ... (1 Reply)
Discussion started by: owwow14
1 Replies
LEARN ABOUT DEBIAN
bup-tag
bup-tag(1) General Commands Manual bup-tag(1)NAME
bup-tag - tag a commit in the bup repository
SYNOPSIS
bup tag
bup tag <tag name> <committish>
bup tag -d <tag name>
DESCRIPTION
bup tag lists, creates or deletes a tag in the bup repository.
A tag is an easy way to retreive a specific commit. It can be used to mark a specific backup for easier retrieval later.
When called without any arguments, the command lists all tags that can be found in the repository. When called with a tag name and a com-
mit ID or ref name, it creates a new tag with the given name, if it doesn't already exist, that points to the commit given in the second
argument. When called with '-d' and a tag name, it removes the given tag, if it exists.
bup exposes the contents of backups with current tags, via any command that lists or shows backups. They can be found under the /.tag
directory. For example, the 'ftp' command will show the tag named 'tag1' under /.tag/tag1.
Tags are also exposed under the branches from which they can be reached. For example, if you create a tag named 'important' under branch
'computerX', you will also be able to retrieve the contents of the backup that was tagged under /computerX/important. This is done as a
convenience, and should the branch 'computerX' be deleted, the contents of the tagged backup will be available through /.tag/important as
long as the tag is not deleted.
OPTIONS -d, --delete
delete a tag
EXAMPLE
$ bup tag new-puppet-version hostx-backup
$ bup tag
new-puppet-version
$ bup ftp "ls /.tag/new-puppet-version"
files..
$ bup tag -d new-puppet-version
SEE ALSO bup-save(1), bup-split(1), bup-ftp(1), bup-fuse(1), bup-web(1)BUP
Part of the bup(1) suite.
AUTHORS
Gabriel Filion <lelutin@gmail.com>.
Bup unknown-bup-tag(1)