Hi
I want to insert a space between the result of the following command.
day=$(date %d)
i get the result as ------- Sep 2
i want to get the result as Sep 2(two space between Sep and 2)
how can i get this...
is this possible wid awk??:confused: (12 Replies)
Hello
I have a file with data something like this in it :
texttexttext "text .lst" TEXT=" text "
texttexttext "moretext .lst" TEXT=" text "
Question is how do I get rid of space so that the files looks like this :
texttexttext "text.lst" TEXT="text"
texttexttext... (8 Replies)
I have a customer file now and would like to separate the names into two cells in a spreadsheet. Here is my data as an example:
SHAWN R KEEGAN
shawn r scroggin
Shawn Regan
Shawn Reilly
The first two have the middle initial so I'd like to include them in the "first name" field and the last... (11 Replies)
Hi
I am trying to remove trailing space from a string.
value=${value%% }
It is not working. What might be the issue with the above snippet. (7 Replies)
I created a awk state to calculate the number of success however when the query runs it has a leading zero. Any ideas on how to remove the leading zero from the calculation?
Here is my query:
cat myfile.log | grep | awk '{print $2,$3,$7,$11,$15,$19,$23,$27,$31,$35($19/$15*100)}'
02:00:00... (1 Reply)
Hi All,
When i do find command i am getting result which append ./ before the file name. For example if i am trying to search aaa.txt in current directory i am using find like this:
$ find . -name aaa.txt
result:
./aaa.txt
Now i want to remove "./" from the file name. Can some body... (5 Replies)
I am reading lines from a file that contain a number sign (#) before a three or four digit number:
#1043
#677
I can remove the '#' and get just the number. However, I then want to assign that number to a variable and use it as part of a path further on in my program:
/mydir/10/1043 for... (5 Replies)
using python 3 when i run this code to get the urls i get a space in the url
how do i remove the space after the last /
thanks
# Import libraries
import requests
from bs4 import BeautifulSoup
# Connect to the URL
page = requests.get('https://www.meihoski.co.jp/movie/')
soup... (3 Replies)
Discussion started by: bob123
3 Replies
LEARN ABOUT ULTRIX
ar
ar(5) File Formats Manual ar(5)Name
ar - archive (library) file format
Syntax
#include <ar.h>
Description
The archive command, combines several files into one. Archives are used mainly as libraries to be searched by the link-editor,
A file produced by has a magic string at the start, followed by the constituent files, each preceded by a file header. The magic number
and header layout as described in the include file are:
#define ARMAG "!<arch>
"
#define SARMAG 8
#define ARFMAG "`
"
struct ar_hdr {
char ar_name[16];
char ar_date[12];
char ar_uid[6];
char ar_gid[6];
char ar_mode[8];
char ar_size[10];
char ar_fmag[2];
};
The name is a blank-padded string. The ar_fmag field contains ARFMAG to help verify the presence of a header. The other fields are left-
adjusted, blank-padded numbers. They are decimal except for ar_mode, which is octal. The date is the modification date of the file at the
time of its insertion into the archive.
Each file begins on an even (0 mod 2) boundary; a new-line is inserted between files if necessary. The size given reflects the actual size
of the file exclusive of padding.
Provisions are not made for empty areas in an archive file.
The encoding of the header is portable across machines. If an archive contains printable files, the archive itself is printable.
Restrictions
A filename loses trailing blanks. Most software dealing with archives takes an included blank as a name terminator.
See Alsoar(1), ld(1), nm(1)
RISC ar(5)