08-12-2010
more info on cat files post
Hi Corona688--
Thanks for your reply. To be more specific, p030.mp is the name of a station for GPS data. So, in each subdirectory by year, I have probably 50 different station names with the .mp extension. The only thing the station names (filenames) have in common, besides the .mp extension, is that they can only be 4 letter/number combos in length proceeding the .mp extension:
so they could be:
p030.mp
abcd.mp
abc0.mp
iid2.mp
To make it more confusing, I have data from 2006-2010 but some stations only have data from 2008-onward.
In terms of actual content within the station files, they may have different lines (different days of year present). Not sure if that matters.
Thanks for your help! I really appreciate it.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
how I can display a file with cat and printing the filename before each line.
e.g.
file1 {
one
two
three
four
five
}
Output:
file1:one
file2:two
file1:three
file1:four
file1:five (12 Replies)
Discussion started by: Timmää
12 Replies
2. Shell Programming and Scripting
Hi all,
I have a list of xml file. I need to split the files to a different files when see the <ko> tag.
The list of filename are
B20090908.1100-20090908.1200_CDMA=1,NO=2,SITE=3.xml
B20090908.1200-20090908.1300_CDMA=1,NO=2,SITE=3.xml
B20090908.1300-20090908.1400_CDMA=1,NO=2,SITE=3.xml
... (3 Replies)
Discussion started by: natalie23
3 Replies
3. Shell Programming and Scripting
I would like to wget a file "index.html" from a site which is lies in different subdirectories and is different in size. The index.html shall be concatenated or renamed to index01.html index02.html .... I would like to store this file in just one directory and use the option -nd. Though i can't get... (0 Replies)
Discussion started by: sdf
0 Replies
4. Shell Programming and Scripting
I want to recursively cat the content of files in a directory e.g.
find /etc -type f -exec cat {} \;
But I want it to print the file name first and then the content. For example let's say /etc/statetab and /etc/colord.conf will be printed first then I want the output to look something like;
... (6 Replies)
Discussion started by: lewk
6 Replies
5. Shell Programming and Scripting
I have a file
# cat /root/llll
11
22
33
44
When I cat this file content to a variable inside a shell script and echo that shell script, it does not show up as separate lines. I need echo output similar to cat.
cat /root/shell_script.sh
#!/bin/bash
var=`cat /root/llll`
echo $var (2 Replies)
Discussion started by: anil510
2 Replies
6. Shell Programming and Scripting
#!/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
7. Shell Programming and Scripting
Hii,
Could someone help me to append string to the starting of all the filenames inside a directory but it should exclude .zip files and subdirectories.
Eg.
file1: test1.log
file2: test2.log
file3 test.zip
After running the script
file1: string_test1.log
file2: string_test2.log
file3:... (4 Replies)
Discussion started by: Ravi Kishore
4 Replies
8. Shell Programming and Scripting
I have a directory that is restricted and I cannot just copy the files need, but I can cat them and redirect them to a new directory. The files all have the date listed in them. If I perform a long listing and grep for the date (150620) I can redirect that output to a text file. Now I need to... (5 Replies)
Discussion started by: trigger467
5 Replies
9. UNIX for Dummies Questions & Answers
This should recursively walk through all dirictories and
search for a specified string in all present files, if found
output manicured content (eg some regex) with CAT into
a specified directory (eg /tmp/)
one by one, keeping the original names
This is what I have so far, which seems to... (1 Reply)
Discussion started by: lowmaster
1 Replies
10. Shell Programming and Scripting
I am trying to use awk to calculate the average of all lines in $2 for every file in a directory. The below bash seems to do that, but I cannot figure out how to capture the string before the _ as the output file name and have it be tab-delimeted. Thank you :).
Filenames in... (3 Replies)
Discussion started by: cmccabe
3 Replies
LEARN ABOUT CENTOS
ieee80211_sta_block_awake
IEEE80211_STA_BLOCK_(9) Advanced driver interface IEEE80211_STA_BLOCK_(9)
NAME
ieee80211_sta_block_awake - block station from waking up
SYNOPSIS
void ieee80211_sta_block_awake(struct ieee80211_hw * hw, struct ieee80211_sta * pubsta, bool block);
ARGUMENTS
hw
the hardware
pubsta
the station
block
whether to block or unblock
DESCRIPTION
Some devices require that all frames that are on the queues for a specific station that went to sleep are flushed before a poll response or
frames after the station woke up can be delivered to that it. Note that such frames must be rejected by the driver as filtered, with the
appropriate status flag.
This function allows implementing this mode in a race-free manner.
To do this, a driver must keep track of the number of frames still enqueued for a specific station. If this number is not zero when the
station goes to sleep, the driver must call this function to force mac80211 to consider the station to be asleep regardless of the
station's actual state. Once the number of outstanding frames reaches zero, the driver must call this function again to unblock the
station. That will cause mac80211 to be able to send ps-poll responses, and if the station queried in the meantime then frames will also be
sent out as a result of this. Additionally, the driver will be notified that the station woke up some time after it is unblocked,
regardless of whether the station actually woke up while blocked or not.
AUTHOR
Johannes Berg <johannes@sipsolutions.net>
Author.
COPYRIGHT
Kernel Hackers Manual 3.10 June 2014 IEEE80211_STA_BLOCK_(9)